Commit b9303c94 authored by Jérome Perrin's avatar Jérome Perrin

graph_editor: CSS improvements

 - make the gadget full page, this is better when using in an iframe
 - "highlight" the currently hover edge, which makes the graph more readable
 when there are overlapping edges.
 - user helvetica font every where
parent 99225a63
body {
margin: 0px;
}
.graph_container { .graph_container {
position: relative; position: relative;
font-size: 80%; font-size: 0.8em;
border: 1px solid #999; width: 100vw;
height: 100vh;
min-width: 400px;
min-height: 400px;
overflow: hidden; overflow: hidden;
background-color: #eaedef; background-color: #eaedef;
text-align: center; text-align: center;
font-family: helvetica;
} }
.window, .window,
...@@ -22,6 +25,7 @@ ...@@ -22,6 +25,7 @@
-webkit-box-shadow: 2px 2px 19px #aaa; -webkit-box-shadow: 2px 2px 19px #aaa;
-moz-box-shadow: 2px 2px 19px #aaa -moz-box-shadow: 2px 2px 19px #aaa
} }
path, path,
._jsPlumb_endpoint { ._jsPlumb_endpoint {
cursor: pointer cursor: pointer
...@@ -42,6 +46,11 @@ path, ...@@ -42,6 +46,11 @@ path,
._jsPlumb_overlay { ._jsPlumb_overlay {
z-index: 23 z-index: 23
} }
._jsPlumb_overlay._jsPlumb_hover {
z-index: 25!important;
font-size: 1.2em;
font-weight: bold;
}
._jsPlumb_connector._jsPlumb_hover { ._jsPlumb_connector._jsPlumb_hover {
z-index: 21!important z-index: 21!important
} }
...@@ -54,8 +63,7 @@ path, ...@@ -54,8 +63,7 @@ path,
filter: alpha(opacity=80); filter: alpha(opacity=80);
background-color: #fff; background-color: #fff;
color: #000; color: #000;
font-family: helvetica; padding: .5em;
padding: .5em
} }
.window, .window,
.dummy_window { .dummy_window {
...@@ -65,12 +73,9 @@ path, ...@@ -65,12 +73,9 @@ path,
box-sizing: border-box; box-sizing: border-box;
position: absolute; position: absolute;
color: #000; color: #000;
font-family: serif;
font-style: italic;
padding-top: .9em; padding-top: .9em;
font-size: .9em; font-size: .9em;
cursor: move; cursor: move;
font-size: 11px;
-webkit-transition: background-color .1s ease-in; -webkit-transition: background-color .1s ease-in;
-moz-transition: background-color .1s ease-in; -moz-transition: background-color .1s ease-in;
transition: background-color .1s ease-in; transition: background-color .1s ease-in;
...@@ -79,13 +84,15 @@ path, ...@@ -79,13 +84,15 @@ path,
.window:hover { .window:hover {
background-color: #5c96bc; background-color: #5c96bc;
background-image: none; background-image: none;
color: #fff color: #fff;
font-weight: bold;
} }
.dummy_window { .dummy_window {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
visibility: hidden visibility: hidden;
z-index: -1;
} }
.ep { .ep {
position: absolute; position: absolute;
...@@ -105,8 +112,10 @@ path, ...@@ -105,8 +112,10 @@ path,
.dragHover { .dragHover {
background-color: #1e8151; background-color: #1e8151;
background-image: none; background-image: none;
color: #fff color: #fff;
font-weight: bold;
} }
path { path {
cursor: pointer cursor: pointer
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment