grid-apps-cmms/web/mesh/index.css

746 lines
12 KiB
CSS
Raw Normal View History

2021-12-16 19:11:52 -05:00
:root {
--fg-gray: #495057;
--bg-gray: rgba(0,0,0,0.25);
--gradbar: linear-gradient(to right, #ddd, #666, #ddd);
--holdbar: linear-gradient(to top, rgba(100,100,100,0.1), rgba(255,255,255,1), rgba(100,100,100,0.1));
--holdbar-sf: linear-gradient(to top, rgba(200,200,200,0.1), rgba(255,255,255,1), rgba(200,200,200,0.1)) !important;
--highlight: rgba(126,153,183,0.4);
--main-color: rgba(126,153,183,1);
}
2021-12-26 20:01:56 -05:00
2021-12-16 19:11:52 -05:00
@font-face {
font-family: 'Russo One';
2021-12-26 22:00:31 -05:00
src: url('/moto/russo-one.ttf');
2021-12-16 19:11:52 -05:00
}
2021-12-26 20:01:56 -05:00
2021-12-16 19:11:52 -05:00
a, a:hover, a:visited {
border: none;
color: inherit;
text-decoration: none;
}
2021-12-26 20:01:56 -05:00
2021-12-26 22:00:31 -05:00
body, div {
2021-12-26 20:01:56 -05:00
position: relative;
display: flex;
padding: 0;
border: 0;
margin: 0;
}
2022-02-25 15:09:05 -05:00
input {
background-color: #eee;
border-radius: 3px;
border: 1px solid black;
}
2021-12-16 19:11:52 -05:00
#app {
position: fixed;
overflow: hidden;
2021-12-26 22:00:31 -05:00
flex-direction: column;
2021-12-16 19:11:52 -05:00
font-family: sans-serif;
2021-12-26 22:00:31 -05:00
font-weight: normal;
2021-12-16 19:11:52 -05:00
font-size: larger;
bottom: 0;
2021-12-26 22:00:31 -05:00
right: 0;
left: 0;
top: 0;
2021-12-16 19:11:52 -05:00
}
2021-12-26 20:01:56 -05:00
#app-info {
2021-12-26 22:00:31 -05:00
z-index: 50;
2021-12-16 19:11:52 -05:00
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
2022-01-14 20:23:57 -05:00
user-select: none;
2021-12-26 22:00:31 -05:00
flex-direction: column;
align-items: center;
2021-12-16 19:11:52 -05:00
}
2021-12-26 20:01:56 -05:00
#app-info:hover #app-vers {
2021-12-26 19:43:48 -05:00
display: flex;
2021-12-16 19:11:52 -05:00
}
2021-12-26 20:01:56 -05:00
#app-vers {
2021-12-26 19:43:48 -05:00
display: none;
position: absolute;
white-space: nowrap;
font-size: smaller;
2022-01-14 09:53:36 -05:00
font-family: monospace;
transform: translate(5px,-50%);
2021-12-26 19:43:48 -05:00
color: var(--fg-gray);
2022-01-14 09:53:36 -05:00
margin: 0;
padding: 2px 3px 2px 3px;
border: 1px solid rgba(0,0,0,0.25);
2021-12-26 19:43:48 -05:00
border-radius: 3px;
2022-01-14 09:53:36 -05:00
left: 100%;
top: 50%;
2021-12-26 19:43:48 -05:00
}
2021-12-26 20:01:56 -05:00
2021-12-26 22:00:31 -05:00
#app-body {
2021-12-16 19:11:52 -05:00
flex-grow: 1;
}
2021-12-26 22:00:31 -05:00
#app-body > div {
z-index: 2;
2021-12-16 19:11:52 -05:00
}
#curtain {
2021-12-26 22:00:31 -05:00
z-index: 50000;
2021-12-16 19:11:52 -05:00
top: 0;
left: 0;
right: 0;
bottom: 0;
position: fixed;
background-color: #fff;
font-family: 'Russo One', sans-serif;
2021-12-26 22:00:31 -05:00
justify-content: center;
align-items: center;
2021-12-16 19:11:52 -05:00
}
#container {
2021-12-26 22:00:31 -05:00
z-index: 1;
2021-12-16 19:11:52 -05:00
position: fixed;
width: 100%;
height: 100%;
}
2021-12-26 20:01:56 -05:00
2021-12-16 19:11:52 -05:00
#container canvas {
width: 100%;
height: 100%;
overflow: hidden;
}
#top {
2021-12-26 22:00:31 -05:00
z-index: 2;
2022-01-09 10:13:09 -05:00
padding: 3px 0 3px 0;
2021-12-26 22:00:31 -05:00
flex-direction: row;
2021-12-16 19:11:52 -05:00
font-family: 'Russo One', sans-serif;
2022-01-18 16:34:42 -05:00
background-color: rgba(255,255,255,0.55);
2021-12-16 19:11:52 -05:00
}
2021-12-26 20:01:56 -05:00
2021-12-26 22:00:31 -05:00
#top-sep {
z-index: 2;
height: 1px;
background-image: var(--gradbar);
}
.noselect {
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
:-moz-any() {
overflow-x: hidden !important;
overflow-y: hidden !important;
}
:-moz-any() {
overflow-x: scroll !important;
overflow-y: scroll !important;
margin-right: -14px !important;
margin-bottom: -14px !important;
}
2022-01-02 16:30:05 -05:00
button {
padding: 2px 3px 2px 3px;
border: 1px solid rgba(150,150,150,0.5);
2022-01-07 21:32:53 -05:00
background-color: rgba(220,220,220,0.75);
user-select: none;
2022-01-14 16:45:40 -05:00
outline: none;
}
button:hover {
2022-01-21 11:51:38 -05:00
background-color: rgba(210,210,210,1);
}
2022-01-06 17:28:57 -05:00
/** misc ui **/
.hide {
display: none;
}
.pad3 {
width: 3px;
height: 3px;
}
.pad5 {
width: 5px;
height: 5px;
}
2022-01-09 10:13:09 -05:00
#top-right {
position: absolute;
padding: 3px;
bottom: 0;
2022-01-18 16:34:42 -05:00
right: 3px;
2022-01-09 10:13:09 -05:00
top: 0;
2022-02-25 14:06:28 -05:00
gap: 8px;
2022-01-18 16:34:42 -05:00
}
#top-right > div {
2022-02-25 14:06:28 -05:00
flex-direction: column;
justify-content: center;
align-items: center;
2022-01-18 16:34:42 -05:00
flex-direction: row;
color: #888;
}
#top-right > div:hover {
color: black;
2022-01-09 10:13:09 -05:00
}
.dark #top-right > div {
color: black;
}
.dark #top-right > div:hover {
color: white;
}
2022-04-19 16:51:55 -04:00
/** specific modal dialogs */
.export {
flex-direction: column;
font-family: monospace;
}
2022-01-09 14:43:20 -05:00
.export, .export div {
gap: 4px;
2022-01-09 15:10:55 -05:00
align-items: center;
justify-content: center;
}
.export input, .export button {
2022-01-09 15:10:55 -05:00
font-family: monospace;
padding: 3px;
2022-01-09 15:10:55 -05:00
}
.export button {
padding: 4px;
2022-01-09 14:43:20 -05:00
}
.addact {
2022-04-19 16:51:55 -04:00
gap: 4px;
}
.addact input {
2022-04-19 16:51:55 -04:00
text-align: center;
}
.image-import {
flex-direction: column;
gap: 3px;
}
.image-import label {
padding-right: 5px;
flex-grow: 1;
}
.image-import input {
text-align: center;
}
.image-import button {
margin: 10px 20px 1px 20px;
flex-grow: 1;
}
2022-04-19 16:51:55 -04:00
/** generic modal dialogs **/
2022-01-06 15:10:03 -05:00
#modal_page {
2022-01-07 14:39:32 -05:00
background-color: rgba(0,0,0,0.25);
2022-01-06 15:10:03 -05:00
justify-content: center;
align-items: center;
position: absolute;
z-index: 50 !important;
bottom: 0;
right: 0;
left: 0;
top: 0;
display: none;
}
#modal_frame {
border-radius: 4px !important;
2022-02-25 15:09:05 -05:00
background-color: #fff !important;
2022-01-06 15:10:03 -05:00
flex-direction: column;
2022-01-07 01:18:35 -05:00
padding: 0 !important; /* override common below */
2022-01-06 15:10:03 -05:00
z-index: 51;
gap: 2px;
}
#modal_frame > div {
flex-direction: column;
2022-01-09 14:43:20 -05:00
padding: 5px; /* compensate for removing padding above */
2022-01-06 15:10:03 -05:00
}
#modal_title {
2022-01-09 15:10:55 -05:00
border-top-left-radius: 4px;
border-top-right-radius: 4px;
2022-01-06 15:10:03 -05:00
border-bottom: 1px solid gray;
background-color: rgba(0,0,0,0.2);
2022-01-18 16:34:42 -05:00
font-family: 'Russo One', monospace;
font-size: smaller;
2022-01-09 15:10:55 -05:00
justify-content: center;
align-items: center;
2022-01-06 15:10:03 -05:00
}
#modal_title_close {
2022-01-09 15:10:55 -05:00
position: absolute;
2022-01-06 15:10:03 -05:00
color: #555;
2022-04-19 16:51:55 -04:00
right: 3px;
2022-01-20 15:42:28 -05:00
top: 2px;
2022-01-06 15:10:03 -05:00
}
#modal_title_close:hover {
color: black;
}
2022-02-25 15:09:05 -05:00
/** welcome dialog **/
.welcome {
flex-direction: column;
align-items: center;
padding: 5px;
gap: 5px;
font-size: smaller;
}
.welcome a {
color: #038;
border-radius: 3px;
padding: 0 10px 0 10px;
}
.welcome a:hover {
background-color: #ddd;
}
.welcome .choice {
gap: 5px
}
/** settings dialog **/
.settings {
2022-02-25 13:56:09 -05:00
gap: 5px;
}
2022-04-18 22:02:36 -04:00
.settings {
gap: 5px;
display: grid;
background-color: #fff;
grid: min-content 1fr / min-content 1fr;
}
2022-02-25 13:56:09 -05:00
.settings > div {
display: grid;
2022-04-18 22:02:36 -04:00
background-color: #f5f5f5;
grid: min-content 1fr / min-content 1fr;
white-space: nowrap;
align-items: center;
2022-04-18 22:02:36 -04:00
border: 1px solid #ddd;
border-radius: 3px;
padding: 3px;
}
.settings .header {
grid-column: 1 / 3;
text-align: center;
margin-bottom: 5px;
border-radius: 3px;
background-color: #ccc;
padding: 0;
}
2022-02-25 13:56:09 -05:00
.settings label {
padding: 0 5px 0 3px;
}
.settings input {
font-family: monospace;
text-align: center;
2022-04-18 22:02:36 -04:00
background: #fff;
2022-02-25 13:56:09 -05:00
}
2022-01-07 01:18:35 -05:00
/** spinner animation **/
@keyframes spinner {
0% {
transform: translate3d(-50%, -50%, 0) rotate(0deg);
}
100% {
transform: translate3d(-50%, -50%, 0) rotate(360deg);
}
}
.spin::before {
position: absolute;
animation: 2.0s linear infinite spinner;
animation-play-state: inherit;
border: solid 10px #cfd0d1;
border-bottom-color: #1c87c9;
border-radius: 50%;
content: "";
height: 50px;
width: 50px;
top: 10%;
left: 10%;
transform: translate3d(-50%, -50%, 0);
will-change: transform;
2022-01-06 15:10:03 -05:00
}
/** common look & feel */
2022-01-06 11:46:52 -05:00
2022-04-21 19:52:59 -04:00
.dark #logger, .dark #modal_frame, .dark #actions > div, .dark #grouplist > div, .dark #actions .pop {
2022-04-21 20:53:37 -04:00
border: 1px solid #999;
2022-04-21 20:16:05 -04:00
}
.dark #actions > div {
background-color: rgba(255,255,255,0.6);
2022-04-21 19:52:59 -04:00
}
2022-01-07 14:39:32 -05:00
#logger, #modal_frame, #actions > div, #grouplist > div {
2022-01-06 11:46:52 -05:00
border: 1px solid gray;
border-radius: 3px;
margin: 0 0 2px 0;
padding: 3px;
2022-01-07 21:32:53 -05:00
background-color: rgba(255,255,255,0.5);
2022-01-06 11:46:52 -05:00
}
#actions .vsep, #grouplist .vsep {
margin: 1px 0 1px 0;
border-bottom: 1px dashed gray;
}
button.selected {
background-color: rgba(0,255,0,0.5);
}
button.selected:hover {
background-color: rgba(0,255,0,0.8);
}
2022-01-19 14:04:04 -05:00
.dark .head {
color: #000 !important;
}
/** modes menu top/center **/
2022-01-13 17:01:35 -05:00
#modes {
position: absolute;
gap: 2px;
top: 0;
left: 50%;
transform: translateX(-50%);
}
#modes > div {
align-items: center;
justify-content: center;
2022-01-18 16:41:53 -05:00
background-color: rgba(255,255,255,0.5);
border: 1px solid rgba(0,0,0,0.5);
2022-01-18 16:41:53 -05:00
border-radius: 3px;
margin-top: 2px;
padding: 3px;
gap: 2px;
}
2022-01-07 14:39:32 -05:00
/** slide in/out logging window **/
#logger {
display: none;
color: #88ff88;
min-width: 300px;
flex-direction: column;
background-color: rgba(0,0,0,0.5);
position: absolute;
margin: 0 0 3px 3px;
bottom: 0;
left: 0;
}
#logtext {
flex-direction: column;
font-family: monospace;
font-size: smaller;
max-height: 5em;
min-height: 1em;
overflow-y: auto;
}
#logtext::-webkit-scrollbar {
width: 6px;
}
#logtext::-webkit-scrollbar-track {
background: transparent;
}
#logtext::-webkit-scrollbar-thumb {
border-radius: 3px;
background-color: #ddd;
border: 3px solid rgba(255,255,255,0.1);
}
2022-01-06 11:46:52 -05:00
/** action and keyboard menu **/
#actions {
flex-direction: column;
position: absolute;
margin: 3px 0 0 3px;
left: 0;
top: 0;
2022-01-14 20:38:18 -05:00
gap: 1px;
2022-01-06 11:46:52 -05:00
}
2022-04-21 19:52:59 -04:00
#actions .pop {
display: none;
position: absolute;
align-items: center;
justify-content: center;
flex-direction: column;
transform: translateX(100%);
right: -3px;
2022-04-21 19:52:59 -04:00
top: -1px;
gap: 3px;
margin: 0;
padding: 3px;
border-radius: 3px;
border: 1px solid gray;
background-color: rgba(255,255,255,0.5);
}
#actions .back {
position: absolute;
top: 0;
left: 0;
right: -4px;
bottom: 0;
}
2022-04-21 19:52:59 -04:00
.pop button {
width: 100%;
}
2022-04-21 21:37:55 -04:00
.pop span {
margin: 1px;
height: 1px;
width: 80%;
background-color: rgba(0,0,0,0.5);
}
2022-04-21 19:52:59 -04:00
.dark #actions > div:hover {
2022-04-21 20:16:05 -04:00
background-color: #bbb;
2022-04-21 19:52:59 -04:00
}
#actions > div:hover {
background-color: #eee;
}
#actions > div:hover .pop {
display: flex;
}
2022-01-06 11:46:52 -05:00
#actions > div {
flex-direction: column;
2022-04-21 20:59:33 -04:00
padding: 5px;
2022-01-06 11:46:52 -05:00
gap: 2px;
}
2022-01-14 18:42:02 -05:00
#actions .head {
color: #444;
2022-01-14 18:42:02 -05:00
align-items: center;
justify-content: center;
font-family: 'Russo One', monospace;
font-weight: lighter;
2022-01-14 18:42:02 -05:00
font-size: smaller;
border-radius: 3px;
}
2022-01-14 20:23:57 -05:00
#actions .head:hover {
user-select: none;
}
2022-01-06 15:10:03 -05:00
/** group/model buttons top/right of workspace **/
2022-01-05 15:58:11 -05:00
2022-01-02 16:30:05 -05:00
#grouplist {
position: absolute;
margin: 3px 3px 0 0;
right: 0;
top: 0;
}
#grouplist, #grouplist div {
flex-direction: column;
2022-01-06 11:46:52 -05:00
gap: 2px;
}
#grouplist .group {
font-weight: bold;
2022-01-02 16:30:05 -05:00
padding: 3px;
}
2022-01-06 11:46:52 -05:00
#grouplist .models {
display: grid;
2022-04-20 11:13:52 -04:00
grid-template-columns: auto min-content;
2022-01-06 20:22:50 -05:00
max-height: 200px;
overflow-y: auto;
2022-04-20 11:13:52 -04:00
gap: 1px;
2022-01-06 11:46:52 -05:00
}
#grouplist .models .square {
display: flex;
align-items: center;
justify-content: center;
2022-04-20 11:13:52 -04:00
margin: 0;
}
.dark #grouplist .models .square > svg {
color: #333;
2022-01-02 16:30:05 -05:00
}
#grouplist .models .square > svg {
aspect-ratio: 1;
2022-04-20 11:13:52 -04:00
height: 90%;
color: #666;
2022-01-12 00:28:33 -05:00
}
#grouplist .models > div {
flex-direction: row;
}
#grouplist .models button {
text-align: left;
2022-01-12 00:28:33 -05:00
}
2022-01-06 15:10:03 -05:00
/** selection info bottom/right of workspace **/
2022-01-05 15:58:11 -05:00
#selectlist {
font-size: smaller;
2022-01-05 15:58:11 -05:00
position: absolute;
margin: 0 3px 3px 0;
bottom: 0;
right: 0;
gap: 2px;
2022-01-05 15:58:11 -05:00
}
2022-01-07 23:30:19 -05:00
#selectlist > .side {
position: relative;
width: 1.75em;
display: none;
}
#selectlist > .side > div {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(-90deg);
padding-bottom: 2px;
}
2022-01-05 15:58:11 -05:00
#selectlist > div {
flex-direction: column;
gap: 2px;
}
2022-04-19 23:03:58 -04:00
#selectlist > button, #selectlist > div > button {
border-radius: 3px;
}
#selectlist label {
border-radius: 3px;
font-family: monospace;
text-align: right;
padding: 2px;
background-color: rgba(0,0,0,0.05);
}
#selectlist .top {
display: block;
font-weight: bold;
font-size: smaller;
text-align: center;
2022-01-05 15:58:11 -05:00
}
#selectlist .side {
font-weight: bold;
font-size: smaller;
align-items: center;
justify-content: flex-end;
}
#selectlist .grid {
2022-01-06 09:38:04 -05:00
background-color: rgba(255,255,255,0.8);
border: 1px solid rgba(0,0,0,0.15);
border-radius: 3px;
padding: 3px;
2022-01-05 15:58:11 -05:00
display: grid;
gap: 2px 2px;
grid: min-content 1fr 1fr / min-content 1fr 1fr 1fr;
2022-01-05 15:58:11 -05:00
}
2022-04-19 23:03:58 -04:00
#selectlist .grid1 {
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5px;
}
#selectlist .grid2 {
grid: min-content 1fr / min-content 1fr;
}
2022-01-20 15:42:28 -05:00
.grid .ungrouped {
background-color: rgba(128,128,128,0.5) !important;
}
.grid .ungrouped:hover {
color: #fff !important;
}
2022-01-20 17:40:10 -05:00
.tempedit, .rename {
2022-01-20 15:42:28 -05:00
gap: 3px;
}
.tempedit input {
text-align: center;
}
.editable {
color: #05a;
cursor: default;
2022-01-20 15:42:28 -05:00
}
.editable:hover {
color: #000;
2022-01-20 15:42:28 -05:00
background-color: rgba(0,128,255,0.5) !important;
}
2022-03-31 20:45:49 -04:00
2022-04-05 16:29:33 -07:00
#pinner-box {
2022-03-31 20:45:49 -04:00
position: absolute;
2022-04-05 16:29:33 -07:00
z-index: 5000;
left: 50%;
bottom: 50%;
2022-04-05 16:29:33 -07:00
transform: translate(-50%, 50%);
}
#pinner {
z-index: 5000;
display: none;
2022-03-31 20:45:49 -04:00
width: 25px;
height: 25px;
border: 6px solid rgba(0,0,0,0.1);
border-radius: 50%;
border-top-color: rgba(0,0,0,0.5);
animation: spin 1.5s linear infinite;
}
@keyframes spin {
2022-04-05 16:29:33 -07:00
to { transform: rotate(360deg) }
2022-03-31 20:45:49 -04:00
}