1042 lines
23 KiB
CSS
1042 lines
23 KiB
CSS
/* BASICS */
|
|
|
|
.CodeMirror {
|
|
/* Set height, width, borders, and global font properties here */
|
|
font-family: monospace;
|
|
height: 300px;
|
|
color: black;
|
|
}
|
|
|
|
/* PADDING */
|
|
|
|
.CodeMirror-lines {
|
|
padding: 4px 0; /* Vertical padding around content */
|
|
}
|
|
.CodeMirror pre {
|
|
padding: 0 4px; /* Horizontal padding of content */
|
|
}
|
|
|
|
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
|
background-color: white; /* The little square between H and V scrollbars */
|
|
}
|
|
|
|
/* GUTTER */
|
|
|
|
.CodeMirror-gutters {
|
|
border-right: 1px solid #ddd;
|
|
background-color: #f7f7f7;
|
|
white-space: nowrap;
|
|
}
|
|
.CodeMirror-linenumbers {}
|
|
.CodeMirror-linenumber {
|
|
padding: 0 3px 0 5px;
|
|
min-width: 20px;
|
|
text-align: right;
|
|
color: #999;
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
.CodeMirror-guttermarker { color: black; }
|
|
.CodeMirror-guttermarker-subtle { color: #999; }
|
|
|
|
/* CURSOR */
|
|
|
|
.CodeMirror div.CodeMirror-cursor {
|
|
border-left: 1px solid black;
|
|
}
|
|
/* Shown when moving in bi-directional text */
|
|
.CodeMirror div.CodeMirror-secondarycursor {
|
|
border-left: 1px solid silver;
|
|
}
|
|
.CodeMirror.cm-fat-cursor div.CodeMirror-cursor {
|
|
width: auto;
|
|
border: 0;
|
|
background: #7e7;
|
|
}
|
|
.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {
|
|
z-index: 1;
|
|
}
|
|
|
|
.cm-animate-fat-cursor {
|
|
width: auto;
|
|
border: 0;
|
|
-webkit-animation: blink 1.06s steps(1) infinite;
|
|
-moz-animation: blink 1.06s steps(1) infinite;
|
|
animation: blink 1.06s steps(1) infinite;
|
|
}
|
|
@-moz-keyframes blink {
|
|
0% { background: #7e7; }
|
|
50% { background: none; }
|
|
100% { background: #7e7; }
|
|
}
|
|
@-webkit-keyframes blink {
|
|
0% { background: #7e7; }
|
|
50% { background: none; }
|
|
100% { background: #7e7; }
|
|
}
|
|
@keyframes blink {
|
|
0% { background: #7e7; }
|
|
50% { background: none; }
|
|
100% { background: #7e7; }
|
|
}
|
|
|
|
/* Can style cursor different in overwrite (non-insert) mode */
|
|
div.CodeMirror-overwrite div.CodeMirror-cursor {}
|
|
|
|
.cm-tab { display: inline-block; text-decoration: inherit; }
|
|
|
|
.CodeMirror-ruler {
|
|
border-left: 1px solid #ccc;
|
|
position: absolute;
|
|
}
|
|
|
|
/* DEFAULT THEME */
|
|
|
|
.cm-s-default .cm-keyword {color: #708;}
|
|
.cm-s-default .cm-atom {color: #219;}
|
|
.cm-s-default .cm-number {color: #164;}
|
|
.cm-s-default .cm-def {color: #00f;}
|
|
.cm-s-default .cm-variable,
|
|
.cm-s-default .cm-punctuation,
|
|
.cm-s-default .cm-property,
|
|
.cm-s-default .cm-operator {}
|
|
.cm-s-default .cm-variable-2 {color: #05a;}
|
|
.cm-s-default .cm-variable-3 {color: #085;}
|
|
.cm-s-default .cm-comment {color: #a50;}
|
|
.cm-s-default .cm-string {color: #a11;}
|
|
.cm-s-default .cm-string-2 {color: #f50;}
|
|
.cm-s-default .cm-meta {color: #555;}
|
|
.cm-s-default .cm-qualifier {color: #555;}
|
|
.cm-s-default .cm-builtin {color: #30a;}
|
|
.cm-s-default .cm-bracket {color: #997;}
|
|
.cm-s-default .cm-tag {color: #170;}
|
|
.cm-s-default .cm-attribute {color: #00c;}
|
|
.cm-s-default .cm-header {color: blue;}
|
|
.cm-s-default .cm-quote {color: #090;}
|
|
.cm-s-default .cm-hr {color: #999;}
|
|
.cm-s-default .cm-link {color: #00c;}
|
|
|
|
.cm-negative {color: #d44;}
|
|
.cm-positive {color: #292;}
|
|
.cm-header, .cm-strong {font-weight: bold;}
|
|
.cm-em {font-style: italic;}
|
|
.cm-link {text-decoration: underline;}
|
|
.cm-strikethrough {text-decoration: line-through;}
|
|
|
|
.cm-s-default .cm-error {color: #f00;}
|
|
.cm-invalidchar {color: #f00;}
|
|
|
|
/* Default styles for common addons */
|
|
|
|
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
|
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
|
|
.CodeMirror-activeline-background {background: #e8f2ff;}
|
|
|
|
/* STOP */
|
|
|
|
/* The rest of this file contains styles related to the mechanics of
|
|
the editor. You probably shouldn't touch them. */
|
|
|
|
.CodeMirror {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: white;
|
|
}
|
|
|
|
.CodeMirror-scroll {
|
|
overflow: scroll !important; /* Things will break if this is overridden */
|
|
/* 30px is the magic margin used to hide the element's real scrollbars */
|
|
/* See overflow: hidden in .CodeMirror */
|
|
margin-bottom: -30px; margin-right: -30px;
|
|
padding-bottom: 30px;
|
|
height: 100%;
|
|
outline: none; /* Prevent dragging from highlighting the element */
|
|
position: relative;
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
}
|
|
.CodeMirror-sizer {
|
|
position: relative;
|
|
border-right: 30px solid transparent;
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
|
before actuall scrolling happens, thus preventing shaking and
|
|
flickering artifacts. */
|
|
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
|
position: absolute;
|
|
z-index: 6;
|
|
display: none;
|
|
}
|
|
.CodeMirror-vscrollbar {
|
|
right: 0; top: 0;
|
|
overflow-x: hidden;
|
|
overflow-y: scroll;
|
|
}
|
|
.CodeMirror-hscrollbar {
|
|
bottom: 0; left: 0;
|
|
overflow-y: hidden;
|
|
overflow-x: scroll;
|
|
}
|
|
.CodeMirror-scrollbar-filler {
|
|
right: 0; bottom: 0;
|
|
}
|
|
.CodeMirror-gutter-filler {
|
|
left: 0; bottom: 0;
|
|
}
|
|
|
|
.CodeMirror-gutters {
|
|
position: absolute; left: 0; top: 0;
|
|
z-index: 3;
|
|
}
|
|
.CodeMirror-gutter {
|
|
white-space: normal;
|
|
height: 100%;
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
display: inline-block;
|
|
margin-bottom: -30px;
|
|
/* Hack to make IE7 behave */
|
|
*zoom:1;
|
|
*display:inline;
|
|
}
|
|
.CodeMirror-gutter-wrapper {
|
|
position: absolute;
|
|
z-index: 4;
|
|
height: 100%;
|
|
}
|
|
.CodeMirror-gutter-elt {
|
|
position: absolute;
|
|
cursor: default;
|
|
z-index: 4;
|
|
}
|
|
.CodeMirror-gutter-wrapper {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.CodeMirror-lines {
|
|
cursor: text;
|
|
min-height: 1px; /* prevents collapsing before first draw */
|
|
}
|
|
.CodeMirror pre {
|
|
/* Reset some styles that the rest of the page might have set */
|
|
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
|
|
border-width: 0;
|
|
background: transparent;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
margin: 0;
|
|
white-space: pre;
|
|
word-wrap: normal;
|
|
line-height: inherit;
|
|
color: inherit;
|
|
z-index: 2;
|
|
position: relative;
|
|
overflow: visible;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.CodeMirror-wrap pre {
|
|
word-wrap: break-word;
|
|
white-space: pre-wrap;
|
|
word-break: normal;
|
|
}
|
|
|
|
.CodeMirror-linebackground {
|
|
position: absolute;
|
|
left: 0; right: 0; top: 0; bottom: 0;
|
|
z-index: 0;
|
|
}
|
|
|
|
.CodeMirror-linewidget {
|
|
position: relative;
|
|
z-index: 2;
|
|
overflow: auto;
|
|
}
|
|
|
|
.CodeMirror-widget {}
|
|
|
|
.CodeMirror-code {
|
|
outline: none;
|
|
}
|
|
|
|
.CodeMirror-measure {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 0;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
}
|
|
.CodeMirror-measure pre { position: static; }
|
|
|
|
.CodeMirror div.CodeMirror-cursor {
|
|
position: absolute;
|
|
border-right: none;
|
|
width: 0;
|
|
}
|
|
|
|
div.CodeMirror-cursors {
|
|
visibility: hidden;
|
|
position: relative;
|
|
z-index: 3;
|
|
}
|
|
.CodeMirror-focused div.CodeMirror-cursors {
|
|
visibility: visible;
|
|
}
|
|
|
|
.CodeMirror-selected { background: #d9d9d9; }
|
|
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
|
.CodeMirror-crosshair { cursor: crosshair; }
|
|
.CodeMirror ::selection { background: #d7d4f0; }
|
|
.CodeMirror ::-moz-selection { background: #d7d4f0; }
|
|
|
|
.cm-searching {
|
|
background: #ffa;
|
|
background: rgba(255, 255, 0, .4);
|
|
}
|
|
|
|
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
|
|
.CodeMirror span { *vertical-align: text-bottom; }
|
|
|
|
/* Used to force a border model for a node */
|
|
.cm-force-border { padding-right: .1px; }
|
|
|
|
@media print {
|
|
/* Hide the cursor when printing */
|
|
.CodeMirror div.CodeMirror-cursors {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
|
|
/* See issue #2901 */
|
|
.cm-tab-wrap-hack:after { content: ''; }
|
|
|
|
/* Help users use markselection to safely style text background */
|
|
span.CodeMirror-selectedtext { background: none; }
|
|
|
|
/* The lint marker gutter */
|
|
.CodeMirror-lint-markers {
|
|
width: 16px;
|
|
}
|
|
|
|
.CodeMirror-lint-tooltip {
|
|
background-color: infobackground;
|
|
border: 1px solid black;
|
|
border-radius: 4px 4px 4px 4px;
|
|
color: infotext;
|
|
font-family: monospace;
|
|
font-size: 10pt;
|
|
overflow: hidden;
|
|
padding: 2px 5px;
|
|
position: fixed;
|
|
white-space: pre;
|
|
white-space: pre-wrap;
|
|
z-index: 100;
|
|
max-width: 600px;
|
|
opacity: 0;
|
|
transition: opacity .4s;
|
|
-moz-transition: opacity .4s;
|
|
-webkit-transition: opacity .4s;
|
|
-o-transition: opacity .4s;
|
|
-ms-transition: opacity .4s;
|
|
}
|
|
|
|
.CodeMirror-lint-mark-error, .CodeMirror-lint-mark-warning {
|
|
background-position: left bottom;
|
|
background-repeat: repeat-x;
|
|
}
|
|
|
|
.CodeMirror-lint-mark-error {
|
|
background-image:
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==")
|
|
;
|
|
}
|
|
|
|
.CodeMirror-lint-mark-warning {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=");
|
|
}
|
|
|
|
.CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning {
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
height: 16px;
|
|
width: 16px;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
}
|
|
|
|
.CodeMirror-lint-message-error, .CodeMirror-lint-message-warning {
|
|
padding-left: 18px;
|
|
background-position: top left;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=");
|
|
}
|
|
|
|
.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=");
|
|
}
|
|
|
|
.CodeMirror-lint-marker-multiple {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");
|
|
background-repeat: no-repeat;
|
|
background-position: right bottom;
|
|
width: 100%; height: 100%;
|
|
}
|
|
|
|
.CodeMirror-hints {
|
|
position: absolute;
|
|
z-index: 10;
|
|
overflow: hidden;
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
padding: 2px;
|
|
|
|
-webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
-moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
border-radius: 3px;
|
|
border: 1px solid silver;
|
|
|
|
background: white;
|
|
font-size: 90%;
|
|
font-family: monospace;
|
|
|
|
max-height: 20em;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.CodeMirror-hint {
|
|
margin: 0;
|
|
padding: 0 4px;
|
|
border-radius: 2px;
|
|
max-width: 19em;
|
|
overflow: hidden;
|
|
white-space: pre;
|
|
color: black;
|
|
cursor: pointer;
|
|
}
|
|
|
|
li.CodeMirror-hint-active {
|
|
background: #08f;
|
|
color: white;
|
|
}
|
|
|
|
/*! JointJS v0.9.6 - JavaScript diagramming library 2015-12-19
|
|
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
/*
|
|
A complete list of SVG properties that can be set through CSS is here:
|
|
http://www.w3.org/TR/SVG/styling.html
|
|
|
|
Important note: Presentation attributes have a lower precedence over CSS style rules.
|
|
*/
|
|
|
|
|
|
/* .viewport is a <g> node wrapping all diagram elements in the paper */
|
|
.viewport {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
/*
|
|
1. IE can't handle paths without the `d` attribute for bounding box calculation
|
|
2. IE can't even handle 'd' attribute as a css selector (e.g path[d]) so the following rule will
|
|
break the links rendering.
|
|
|
|
path:not([d]) {
|
|
display: none;
|
|
}
|
|
|
|
*/
|
|
|
|
/* .magnet is an element that can be either source or a target of a link */
|
|
/*
|
|
.magnet {
|
|
fill: black;
|
|
fill-opacity: 0;
|
|
stroke: black;
|
|
stroke-width: 15;
|
|
stroke-opacity: 0;
|
|
pointer-events: visibleStroke;
|
|
cursor: crosshair;
|
|
vector-effect: non-scaling-stroke;
|
|
}
|
|
|
|
.magnet:hover {
|
|
stroke-opacity: .5;
|
|
}
|
|
*/
|
|
|
|
[magnet=true]:not(.element) {
|
|
cursor: crosshair;
|
|
}
|
|
[magnet=true]:not(.element):hover {
|
|
opacity: .7;
|
|
}
|
|
|
|
/*
|
|
|
|
Elements have CSS classes named by their types. E.g. type: basic.Rect has a CSS class "element basic Rect".
|
|
This makes it possible to easilly style elements in CSS and have generic CSS rules applying to
|
|
the whole group of elements. Each plugin can provide its own stylesheet.
|
|
|
|
*/
|
|
|
|
.element {
|
|
/* Give the user a hint that he can drag&drop the element. */
|
|
cursor: move;
|
|
}
|
|
|
|
.element * {
|
|
/* The default behavior when scaling an element is not to scale the stroke in order to prevent the ugly effect of stroke with different proportions. */
|
|
vector-effect: non-scaling-stroke;
|
|
user-drag: none;
|
|
}
|
|
|
|
|
|
/*
|
|
|
|
connection-wrap is a <path> element of the joint.dia.Link that follows the .connection <path> of that link.
|
|
In other words, the `d` attribute of the .connection-wrap contains the same data as the `d` attribute of the
|
|
.connection <path>. The advantage of using .connection-wrap is to be able to catch pointer events
|
|
in the neighborhood of the .connection <path>. This is especially handy if the .connection <path> is
|
|
very thin.
|
|
|
|
*/
|
|
|
|
.connection-wrap {
|
|
fill: none;
|
|
stroke: black;
|
|
stroke-width: 15;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
opacity: 0;
|
|
cursor: move;
|
|
}
|
|
.connection-wrap:hover {
|
|
opacity: .4;
|
|
stroke-opacity: .4;
|
|
}
|
|
|
|
|
|
.connection {
|
|
/* stroke: black; */
|
|
/* stroke width cannot be overriden by attribute? */
|
|
/* stroke-width: 1; */
|
|
fill: none;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.marker-source, .marker-target {
|
|
/* Cannot be in CSS otherwise it could not be overruled by attributes.
|
|
fill: black;
|
|
stroke: black;
|
|
*/
|
|
/* This makes the arrowheads point to the border of objects even though the transform: scale() is applied on them. */
|
|
vector-effect: non-scaling-stroke;
|
|
}
|
|
|
|
/*
|
|
|
|
Vertex markers are `<circle>` elements that appear at connection vertex positions.
|
|
|
|
*/
|
|
|
|
/* <g> element wrapping .marker-vertex-group. */
|
|
.marker-vertices {
|
|
opacity: 0;
|
|
cursor: move;
|
|
}
|
|
.marker-arrowheads {
|
|
opacity: 0;
|
|
cursor: move;
|
|
cursor: -webkit-grab;
|
|
cursor: -moz-grab;
|
|
/* display: none; */ /* setting `display: none` on .marker-arrowheads effectivelly switches of links reconnecting */
|
|
}
|
|
.link-tools {
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
}
|
|
.link-tools .tool-options {
|
|
display: none; /* by default, we don't display link options tool */
|
|
}
|
|
.link-tools .tool-remove circle {
|
|
fill: red;
|
|
}
|
|
.link-tools .tool-remove path {
|
|
fill: white;
|
|
}
|
|
.link:hover .marker-vertices,
|
|
.link:hover .marker-arrowheads,
|
|
.link:hover .link-tools {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* <circle> element inside .marker-vertex-group <g> element */
|
|
.marker-vertex {
|
|
fill: #1ABC9C;
|
|
}
|
|
.marker-vertex:hover {
|
|
fill: #34495E;
|
|
stroke: none;
|
|
}
|
|
|
|
.marker-arrowhead {
|
|
fill: #1ABC9C;
|
|
}
|
|
.marker-arrowhead:hover {
|
|
fill: #F39C12;
|
|
stroke: none;
|
|
}
|
|
|
|
/* <circle> element used to remove a vertex */
|
|
.marker-vertex-remove {
|
|
cursor: pointer;
|
|
opacity: .1;
|
|
fill: white;
|
|
}
|
|
|
|
.marker-vertex-group:hover .marker-vertex-remove {
|
|
opacity: 1;
|
|
}
|
|
|
|
.marker-vertex-remove-area {
|
|
opacity: .1;
|
|
cursor: pointer;
|
|
}
|
|
.marker-vertex-group:hover .marker-vertex-remove-area {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Cell highlighting - e.g a cell underneath the dragged link get highlighted.
|
|
See joint.dia.cell.js highlight(); */
|
|
.highlighted {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* For some reason, CSS `outline` property
|
|
does not work on `<text>` elements. */
|
|
text.highlighted {
|
|
fill: #FF0000;
|
|
}
|
|
|
|
/* `outline` doesn't work in Firefox, Opera and IE9+.
|
|
The only engine supporting outlines on SVG elements is Webkit. */
|
|
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
|
.highlighted {
|
|
outline: 2px solid #FF0000;
|
|
opacity: initial;
|
|
}
|
|
}
|
|
|
|
/*
|
|
Example of custom changes (in pure CSS only!):
|
|
|
|
Do not show marker vertices at all: .marker-vertices { display: none; }
|
|
Do not allow adding new vertices: .connection-wrap { pointer-events: none; }
|
|
*/
|
|
|
|
/* foreignObject inside the elements (i.e joint.shapes.basic.TextBlock) */
|
|
.element .fobj {
|
|
overflow: hidden;
|
|
}
|
|
.element .fobj body {
|
|
background-color: transparent;
|
|
margin: 0px;
|
|
}
|
|
.element .fobj div {
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
display: table-cell;
|
|
padding: 0px 5px 0px 5px;
|
|
}
|
|
|
|
.flo-view {
|
|
width:100%;
|
|
height:100%;
|
|
margin: 0;
|
|
background-color: #eeeeee;
|
|
font-family: "Varela Round",sans-serif;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.canvas {
|
|
border: 1px solid;
|
|
border-color: #6db33f;
|
|
border-radius: 2px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
/* Canvas contains the palette on the left and the paper on the right */
|
|
|
|
.paper {
|
|
padding: 0px;
|
|
background-color: #ffffff;
|
|
/* height: 100%;
|
|
width: 100%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
*//* margin-left: 400px; */
|
|
}
|
|
|
|
#sidebar-resizer {
|
|
background-color: #34302d;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 6px;
|
|
cursor: e-resize;
|
|
}
|
|
|
|
#palette-container {
|
|
background-color: #EEE;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
#paper-container {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
overflow: hidden;
|
|
color: #FFF;
|
|
}
|
|
|
|
/* Joint JS paper for drawing palette -> canvas DnD visual feedback START */
|
|
|
|
#palette-floater {
|
|
/* TODO size relative to paper that goes on it? */
|
|
width:170px;
|
|
height:60px;
|
|
opacity: 0.75;
|
|
/*
|
|
background-color: #6db33f;
|
|
*/
|
|
float:left;
|
|
position: absolute;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Joint JS paper for drawing palette -> canvas DnD visual feedback END */
|
|
|
|
/* Palette START */
|
|
|
|
.palette-filter {
|
|
border: 3px solid #6db33f;
|
|
}
|
|
|
|
.palette-filter-textfield {
|
|
width: 100%;
|
|
font-size:24px;
|
|
/* border: 3px solid #6db33f;
|
|
*/ font-family: "Varela Round",sans-serif;
|
|
/* padding: 2px; */
|
|
}
|
|
|
|
.palette-paper {
|
|
background-color: #eeeeee;
|
|
/*
|
|
border-right: 7px solid;
|
|
*/
|
|
border-color: #6db33f;
|
|
/* width: 170px;
|
|
height:100%;
|
|
float: left;
|
|
*/
|
|
}
|
|
|
|
/* Palette END */
|
|
|
|
/* Tooltip START */
|
|
|
|
.node-tooltip .tooltip-description {
|
|
margin-top: 5px;
|
|
margin-left: 0px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.node-tooltip {
|
|
display:none;
|
|
position:absolute;
|
|
border:1px solid #333;
|
|
background-color:#34302d;/*#161616;*/
|
|
border-radius:5px;
|
|
padding:5px;
|
|
color:#fff;
|
|
/* font-size:12px Arial;*/
|
|
font-family: "Varela Round",sans-serif;
|
|
font-size: 19px;
|
|
z-index: 100;
|
|
}
|
|
|
|
.tooltip-title-type {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.tooltip-title-group {
|
|
padding-left: 5px;
|
|
font-size: 20px;
|
|
font-style: italic;
|
|
}
|
|
|
|
.node-tooltip-option-name {
|
|
font-family: monospace;/*"Varela Round",sans-serif;*/
|
|
font-size: 17px;
|
|
font-weight: bold;
|
|
padding-right: 20px;
|
|
|
|
}
|
|
|
|
.node-tooltip-option-description {
|
|
font-family: "Varela Round",sans-serif;
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* Tooltip END */
|
|
|
|
/* Properties DIV Start */
|
|
|
|
.properties td {
|
|
border-top: 1px solid #34302d;
|
|
}
|
|
|
|
.properties {
|
|
/* opacity: 0.5; */
|
|
border: 8px #eeeeee;
|
|
/* border-radius: 2px;*/
|
|
/* border: 2px solid;
|
|
*/ border-color: #6db33f;
|
|
margin-top: 3px;
|
|
background-color: #eeeeee;
|
|
/* height: 115px;
|
|
*/ font-family: monospace;
|
|
z-index: 2;
|
|
/* padding-top:1px; */
|
|
position: absolute;
|
|
/* left: 850px;
|
|
top: 386px;
|
|
width:360px;
|
|
height:0px;
|
|
overflow-y:auto;
|
|
*/}
|
|
.properties-node-name {
|
|
|
|
width: 100%;
|
|
/* background-color: #eeeeee; */
|
|
background: #34302d;
|
|
color: #ffffff;
|
|
padding-left:2px;
|
|
border:0px;
|
|
font-size: 18px;
|
|
font-family: "Varela Round",sans-serif;
|
|
font-weight: bold;
|
|
}
|
|
.properties-node-name-row {
|
|
/*
|
|
background: #34302d;
|
|
color: #ffffff;
|
|
*/background: #34302d;
|
|
width: 100%;
|
|
padding-left:2px;
|
|
}
|
|
|
|
.properties-row-even {
|
|
width: 100%;
|
|
border-top: 1px #34302d;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
|
|
.properties-row-odd {
|
|
width: 100%;
|
|
border-top: 1px #34302d;
|
|
background-color: #eeeeee;
|
|
}
|
|
|
|
.properties-row-text-even {
|
|
background-color: #ffffff;
|
|
border-left:0px;
|
|
border-right:0px;
|
|
border-bottom:0px;
|
|
border-top:1px #34302d;
|
|
}
|
|
|
|
.properties-row-text-odd {
|
|
background-color: #eeeeee;
|
|
border-left:0px;
|
|
border-right:0px;
|
|
border-bottom:0px;
|
|
border-top:1px #34302d;
|
|
}
|
|
|
|
.properties-input {
|
|
width: 100%;
|
|
font-size: 18px;
|
|
font-family: "Varela Round",sans-serif;
|
|
}
|
|
|
|
.properties-key {
|
|
width: 30%;
|
|
padding-left:2px;
|
|
padding-right:4px;
|
|
}
|
|
|
|
.properties-value {
|
|
width: 70%;
|
|
padding-left:2px;
|
|
padding-right:2px;
|
|
}
|
|
|
|
.properties-table {
|
|
border: 1px solid #d1d1d1;
|
|
padding: 3px;
|
|
}
|
|
|
|
.properties-new-property {
|
|
color: #888888;
|
|
}
|
|
|
|
/* Properties DIV END */
|
|
|
|
/* Validation Error Marker on Canvas START */
|
|
|
|
.error-tooltip p {
|
|
margin-top: 5px;
|
|
margin-left: 0px;
|
|
margin-bottom: 5px;
|
|
color:#fff;
|
|
}
|
|
.error-tooltip {
|
|
display:none;
|
|
position:absolute;
|
|
border:1px solid #333;
|
|
background-color:red;/*#161616;*/
|
|
border-radius:5px;
|
|
padding:5px;
|
|
color:#fff;
|
|
/* font-size:12px Arial;*/
|
|
font-family: "Varela Round",sans-serif;
|
|
font-size: 20px;
|
|
z-index: 100;
|
|
}
|
|
|
|
/* Validation Error Marker on Canvas END */
|
|
|
|
/* Controls on Canvas START */
|
|
|
|
.canvas-controls-container {
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 5px;
|
|
}
|
|
|
|
.canvas-control {
|
|
background: transparent;
|
|
font-family: "Varela Round",sans-serif;
|
|
font-size: 11px;
|
|
vertical-align: middle;
|
|
margin: 0px;
|
|
}
|
|
|
|
.zoom-canvas-control {
|
|
border: 0px;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
outline: none;
|
|
}
|
|
|
|
.zoom-canvas-input {
|
|
text-align: right;
|
|
font-weight:bold;
|
|
}
|
|
|
|
.zoom-canvas-label {
|
|
padding-right: 4px;
|
|
}
|
|
|
|
/* Controls on Canvas END */
|
|
|
|
/* Code Mirror related styles START */
|
|
|
|
.CodeMirror {
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
height: 100%;
|
|
}
|
|
.CodeMirror-hint {
|
|
max-width: 38em;
|
|
}
|
|
|
|
/* Code Mirror related styles END */
|
|
|
|
|
|
/* START - FLO CANVAS STYLES - override joint js styles */
|
|
|
|
.highlighted {
|
|
outline: none;
|
|
}
|
|
|
|
.element.highlighted rect {
|
|
stroke: #34302d;
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.handle {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.available-magnet {
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.link {
|
|
fill: none;
|
|
stroke: #ccc;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.link-tools .tool-options {
|
|
display: none; /* by default, we don't display link options tool */
|
|
}
|
|
|
|
/* END - FLO CANVAS STYLES */
|
|
|