refactor(rollup): create new css file on build
This commit is contained in:
Vendored
+68
-9
@@ -47,15 +47,34 @@
|
|||||||
|
|
||||||
.react-flow__edge {
|
.react-flow__edge {
|
||||||
fill: none;
|
fill: none;
|
||||||
stroke: #333;
|
stroke: #bbb;
|
||||||
stroke-width: 2;
|
stroke-width: 2;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-flow__edge.selected {
|
.react-flow__edge.selected {
|
||||||
stroke: #ff5050;
|
stroke: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.react-flow__edge.animated {
|
||||||
|
stroke-dasharray: 5;
|
||||||
|
-webkit-animation: dashdraw 0.5s linear infinite;
|
||||||
|
animation: dashdraw 0.5s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.react-flow__edge.connection {
|
||||||
|
stroke: '#ddd';
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes dashdraw {
|
||||||
|
from {stroke-dashoffset: 10}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes dashdraw {
|
||||||
|
from {stroke-dashoffset: 10}
|
||||||
|
}
|
||||||
|
|
||||||
.react-flow__nodes {
|
.react-flow__nodes {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -86,19 +105,43 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.react-flow__node.selected > * {
|
.react-flow__node.selected > * {
|
||||||
box-shadow: 0 0 0 2px #000;
|
box-shadow: 0 0 0 2px #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-flow__handle {
|
.react-flow__handle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 12px;
|
width: 10px;
|
||||||
height: 12px;
|
height: 8px;
|
||||||
transform: translate(-50%, -50%);
|
background: rgba(255, 255, 255, 0.4);
|
||||||
background: #222;
|
cursor: crosshair;
|
||||||
left: 50%;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.react-flow__handle.bottom {
|
||||||
|
top: auto;
|
||||||
|
left: 50%;
|
||||||
|
bottom: 0;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.react-flow__handle.top {
|
||||||
|
left: 50%;
|
||||||
|
top: 0;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.react-flow__handle.left {
|
||||||
|
top: 50%;
|
||||||
|
left: 0;
|
||||||
|
transform: translate(0, -50%);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.react-flow__handle.right {
|
||||||
|
right: 0;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(0, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
.react-flow__nodesselection {
|
.react-flow__nodesselection {
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -114,4 +157,20 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
background: rgba(0, 89, 220, 0.08);
|
background: rgba(0, 89, 220, 0.08);
|
||||||
border: 1px dotted rgba(0, 89, 220, 0.8);
|
border: 1px dotted rgba(0, 89, 220, 0.8);
|
||||||
|
pointer-events: all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.react-flow__controls-button {
|
||||||
|
background: #f8f8f8;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.react-flow__controls-button:hover {
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "react-flow",
|
"name": "react-flow",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"module": "dist/ReactGraph.esm.js",
|
"module": "dist/ReactFlow.esm.js",
|
||||||
"browser": "dist/ReactGraph.js",
|
"browser": "dist/ReactFlow.js",
|
||||||
"main": "dist/ReactGraph.js",
|
"main": "dist/ReactFlow.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@welldone-software/why-did-you-render": "^3.3.6",
|
"@welldone-software/why-did-you-render": "^3.3.6",
|
||||||
|
|||||||
+3
-1
@@ -31,7 +31,9 @@ export default [{
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
bundleSize(),
|
bundleSize(),
|
||||||
postcss(),
|
postcss({
|
||||||
|
extract: isProd
|
||||||
|
}),
|
||||||
resolve(),
|
resolve(),
|
||||||
babel({
|
babel({
|
||||||
exclude: 'node_modules/**'
|
exclude: 'node_modules/**'
|
||||||
|
|||||||
Reference in New Issue
Block a user