diagram-js-code-editor/assets/diagram-js-code-editor.css

263 lines
4.1 KiB
CSS
Raw Normal View History

2021-06-03 05:45:51 +00:00
.djs-editor {
2021-06-03 14:12:32 +00:00
position: absolute;
top: 90px;
right: 20px;
background-color: rgba(255, 255, 255, 0.9);
2021-06-04 18:35:18 +00:00
color: rgb(0, 0, 0);
2021-06-03 14:12:32 +00:00
border: solid 1px #CCC;
border-radius: 2px;
box-sizing: border-box;
user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
}
2021-06-03 06:56:11 +00:00
2021-06-03 14:12:32 +00:00
.djs-editor:not(.enabled) {
color: #CCC;
pointer-events: none;
}
2021-06-03 05:45:51 +00:00
2021-06-03 14:12:32 +00:00
.djs-editor:not(.open) {
overflow: hidden;
}
2021-06-03 05:45:51 +00:00
2021-06-04 18:35:18 +00:00
.toolbar {
display: none;
width: 50%;
list-style-type: none;
padding: 0;
2021-06-03 14:12:32 +00:00
}
2021-06-03 05:45:51 +00:00
2021-06-04 18:35:18 +00:00
.djs-editor.open .toolbar {
2021-06-10 03:57:05 +00:00
display: block;
text-align: left;
line-height: 35px;
}
.toolbar {
width: 100%;
float: left;
margin: 0;
padding: 0;
background-color: #f2f2f2;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
position: relative;
z-index: 1;
text-decoration: none;
font-weight: bold;
color: #069;
}
/* Pure CSS DropDown Multilabil DropDown Menu */
nav {
display: block;
width: 100%;
}
nav ul {
padding: 0;
margin: 0;
list-style: none;
}
nav ul li {
position: relative;
}
nav ul a {
text-decoration: none;
color: #000;
}
nav>ul>li {
float: left;
margin-right: 1px;
}
nav>ul>li>a {
display: inline-block;
padding: 4px 10px 0;
height: 25px;
}
nav>ul>li.submenu>a {
padding-right: 5px;
}
nav>ul>li.submenu>.description {
padding-right: 5px;
}
nav>ul>li:hover {
background: #000;
}
nav li.submenu {
padding-right: 22px;
}
nav li.submenu:before {
content: "☞";
display: block;
position: absolute;
/* top:4px; */
right: 0;
color: #000;
width: 16px;
}
nav ul ul {
position: absolute;
left: 0;
/* top:29px; */
width: 180px;
filter: alpha(opacity="0");
opacity: 0;
background: #666;
font-size: 12px;
border: 1px solid #000;
border-bottom: 0;
border-top: 0;
}
.description {
display: none
}
/* nav > ul > ul {
height: 200px;
}
nav > ul > ul {
overflow: hidden;
overflow-y: scroll;
} */
nav ul ul li {
display: none;
}
nav ul li.submenu:hover>ul>li {
display: block;
}
nav ul li.submenu:hover {
color: #fff;
}
nav ul li.submenu:hover>ul {
filter: alpha(opacity="100");
opacity: 1;
}
nav ul li.submenu:hover>ul ul {
filter: alpha(opacity="0");
opacity: 0;
}
nav ul li.submenu:hover>ul li.submenu:hover>ul {
filter: alpha(opacity="100");
opacity: 1;
}
nav ul li.submenu:hover>ul li.submenu:hover>ul>li {
display: block;
}
nav ul ul li {
border-bottom: 1px solid #000;
background: #565656;
}
nav ul ul li:first-child {
border-top: 1px solid #000;
}
nav ul ul li a {
padding: 4px 10px;
display: block;
}
nav ul ul li:hover {
background: #000;
}
nav ul ul li:hover>a {
padding-left: 15px;
color: #fff;
}
nav ul ul ul {
left: 180px;
top: 0;
margin-top: -1px;
}
/* */
2021-06-04 18:35:18 +00:00
#run_btn {
font-family: "Material Icons", sans-serif;
}
#run_btn:before {
content: "build";
2021-06-03 14:12:32 +00:00
}
2021-06-03 05:45:51 +00:00
2021-06-10 03:57:05 +00:00
#run_btn.passing {
color: green;
}
#run_btn.failing {
color: red;
}
#run_btn.unknown {
color: rgba(207, 168, 10, 0.842);
}
2021-06-03 14:12:32 +00:00
.djs-editor .ide {
2021-06-10 03:57:05 +00:00
position: relative;
z-index: 0;
2021-06-03 14:12:32 +00:00
display: none;
2021-06-04 18:35:18 +00:00
width: 100%;
min-width: 420px;
2021-06-03 14:12:32 +00:00
height: 280px;
}
2021-06-03 09:34:26 +00:00
2021-06-03 14:12:32 +00:00
.djs-editor.open .ide {
display: block;
}
.djs-editor:not(.open) .toggle {
width: 46px;
height: 46px;
line-height: 46px;
content: "dvr" !important;
text-align: center;
}
.djs-editor.open .toggle:before {
font-family: "Material Icons", sans-serif;
content: "close" !important;
font-size: 24px;
}
.djs-editor:not(.open) .toggle:before {
font-family: "Material Icons", sans-serif;
content: "dvr" !important;
font-size: 24px;
}
.djs-editor .toggle:before {
content: attr(title);
}
.djs-editor.open .toggle {
position: absolute;
right: 0;
padding: 6px;
z-index: 1;
2021-06-10 03:57:05 +00:00
}