Files
gf-core/src/www/syntax-editor/editor.css
john.j.camilleri 58c3e3db85 Syntax editor: in-place replacement of functions
When at a non-leaf node, refinements with identical type signatures
are highlighting and can re placed without destroying the children.
If not, the refinement is greyed and the user is asked to clear
the current subtree first if they wish to replace it.
This aspect of the UI should be polished, but at least it is obvious.
Also, some substantial optimizations can still be made to cache
the processed type signatures (which determine what can be replaced
in-place)
2012-11-30 10:56:42 +00:00

91 lines
1.2 KiB
CSS

body.syntax-editor {
background: #ccc url("../minibar/brushed-metal.png");
}
.hidden
{
display:none;
}
.editor select#to_menu
{
height: 10em;
position: absolute;
min-width: 5em;
}
#tree
{
white-space:pre;
font-family: monospace;
background: rgba(238, 238, 238, 0.6);
padding:0.5em;
margin:0.5em 0;
}
#tree .node
{
margin: 0.4em 0 0.4em 1.5em;
}
#tree .node a
{
cursor: pointer;
}
#tree .node a:hover
{
text-decoration: underline;
}
#tree .node a.current
{
font-weight: bold;
}
#linearisations
{
/* background: rgba(170, 170, 170, 0.5); */
padding:0.5em;
margin:0.5em 0;
}
#linearisations div
{
padding:0.2em;
}
#linearisations .lang
{
display: inline-block;
margin-right: 0.5em;
width: 3em;
font-weight: bold;
text-align: center;
}
#linearisations .lin
{
}
.refinement
{
margin: 0 0.1em;
display: inline-block;
cursor: pointer;
border: 1px solid;
padding: 0.2em;
font: 0.9em sans-serif;
background: white;
}
.refinement.disabled
{
opacity: 0.5;
}
#debug
{
font: 10px monospace;
white-space: pre;
color: #333;
margin: 1em 0;
border: 1px dashed #999;
padding: 1em;
}