123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- @import url('./themes/index');
- .noScalingStroke() {
- vector-effect: non-scaling-stroke;
- }
- .@{x6-prefix}-graph {
- position: relative;
- overflow: hidden;
- outline: none;
- touch-action: none;
- &-background,
- &-grid,
- &-svg {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- &-stage {
- user-select: none;
- }
- }
- &&-pannable {
- cursor: grab;
- cursor: -moz-grab;
- cursor: -webkit-grab;
- }
- &&-panning {
- cursor: grabbing;
- cursor: -moz-grabbing;
- cursor: -webkit-grabbing;
- user-select: none;
- }
- }
- .@{x6-prefix}-node {
- cursor: move;
- &&-immovable {
- cursor: default;
- }
- * {
- -webkit-user-drag: none;
- }
- .scalable * {
- .noScalingStroke();
- }
- [magnet='true'] {
- cursor: crosshair;
- transition: opacity 0.3s;
- &:hover {
- opacity: 0.7;
- }
- }
- /* stylelint-disable-next-line */
- foreignObject {
- display: block;
- overflow: visible;
- background-color: transparent;
- & > body {
- position: static;
- width: 100%;
- height: 100%;
- margin: 0;
- padding: 0;
- overflow: visible;
- background-color: transparent;
- }
- }
- }
- .@{x6-prefix}-edge {
- .source-marker,
- .target-marker {
- .noScalingStroke();
- }
- .connection {
- stroke-linejoin: round;
- fill: none;
- }
- .connection-wrap {
- cursor: move;
- opacity: 0;
- fill: none;
- stroke: #000;
- stroke-width: 15;
- stroke-linecap: round;
- stroke-linejoin: round;
- &:hover {
- opacity: 0.4;
- stroke-opacity: 0.4;
- }
- }
- .vertices {
- cursor: move;
- opacity: 0;
- .vertex {
- fill: #1abc9c;
- :hover {
- fill: #34495e;
- stroke: none;
- }
- }
- .vertex-remove {
- cursor: pointer;
- fill: #fff;
- }
- .vertex-remove-area {
- cursor: pointer;
- opacity: 0.1;
- }
- .vertex-group:hover .vertex-remove-area {
- opacity: 1;
- }
- }
- .arrowheads {
- cursor: move;
- opacity: 0;
- .arrowhead {
- fill: #1abc9c;
- :hover {
- fill: #f39c12;
- stroke: none;
- }
- }
- }
- .tools {
- cursor: pointer;
- opacity: 0;
- .tool-options {
- display: none;
- }
- .tool-remove circle {
- fill: #f00;
- }
- .tool-remove path {
- fill: #fff;
- }
- }
- &:hover {
- .vertices,
- .arrowheads,
- .tools {
- opacity: 1;
- }
- }
- }
- .@{x6-prefix}-highlight-opacity {
- opacity: 0.3;
- }
|