1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-11-13 17:31:00 +01:00
slidershim/public/global.css

312 lines
4.1 KiB
CSS
Raw Normal View History

2022-02-05 11:00:06 +01:00
html,
body {
2022-01-27 17:31:41 +01:00
position: relative;
width: 100%;
height: 100%;
font-size: 16px;
background-color: #222;
}
* {
box-sizing: border-box;
color: #ddd;
2022-02-05 11:00:06 +01:00
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2022-02-06 19:01:34 +01:00
/* font-size: 1rem; */
2022-01-27 17:31:41 +01:00
user-select: none;
2022-01-27 12:37:27 +01:00
}
body {
2022-01-27 17:31:41 +01:00
margin: 0;
padding: 1rem;
2022-02-06 19:01:34 +01:00
border: 0.125rem solid #333;
2022-01-27 12:37:27 +01:00
}
2022-02-06 19:01:34 +01:00
/* titlebar */
.titlebar {
user-select: none;
background: #333;
2022-01-27 17:31:41 +01:00
display: flex;
2022-02-06 19:01:34 +01:00
align-items: center;
2022-02-07 03:10:36 +01:00
justify-content: space-between;
2022-02-06 19:01:34 +01:00
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 0.25rem 0.5rem;
height: 2rem;
}
2022-02-07 03:10:36 +01:00
.titlebar-front {
background: #0000;
}
2022-02-06 19:01:34 +01:00
.header-icon {
max-height: 100%;
2022-02-07 03:10:36 +01:00
flex: 0 0 auto;
2022-02-06 19:01:34 +01:00
}
.header-icon img {
max-height: 1.5rem;
pointer-events: none;
2022-01-27 12:37:27 +01:00
}
2022-01-27 17:31:41 +01:00
.header {
2022-02-06 19:01:34 +01:00
font-size: 1.5rem;
2022-01-27 17:31:41 +01:00
font-weight: 500;
2022-02-07 03:10:36 +01:00
flex: 0 0 auto;
}
.header-space {
flex: 1 0 auto;
}
.header-timer {
flex: 0 0 auto;
2022-02-07 04:47:11 +01:00
font-family: monospace;
2022-01-27 12:37:27 +01:00
}
2022-02-06 19:01:34 +01:00
/* main */
.main {
margin-top: 2rem;
2022-03-22 18:42:14 +01:00
height: calc(100% - 2rem);
2022-02-06 19:01:34 +01:00
display: flex;
flex-flow: column nowrap;
align-items: stretch;
justify-content: flex-start;
width: 100%;
2022-02-06 19:01:34 +01:00
}
2022-03-22 18:42:14 +01:00
.preview-row {
flex: 0 1;
}
.options {
padding: 0.5rem 0.25rem;
2022-03-22 18:42:14 +01:00
flex: 1 1;
display: flex;
flex-flow: column nowrap;
align-items: stretch;
justify-content: flex-start;
overflow-y: auto;
}
.buttons-row {
flex: 0 1;
}
2022-02-05 11:00:06 +01:00
.row,
.row-2 {
2022-01-27 17:31:41 +01:00
margin: 0 0 0.5rem 0;
display: flex;
flex-flow: row nowrap;
align-items: flex-start;
justify-content: stretch;
2022-01-27 12:37:27 +01:00
}
2022-01-27 17:31:41 +01:00
.row .label {
flex: 1 1 0;
2022-01-27 12:37:27 +01:00
}
2022-02-06 19:01:34 +01:00
.row .label[title] {
text-decoration: underline dotted;
}
.row .label[title]:hover {
text-decoration: underline;
}
2022-01-27 17:31:41 +01:00
.row .input {
flex: 2 2 0;
2022-01-27 12:37:27 +01:00
}
2022-03-22 18:42:14 +01:00
.comment {
font-size: 0.75rem;
}
2022-02-06 10:56:50 +01:00
.serverlist {
width: 100%;
max-height: 5rem;
overflow-x: auto;
2022-02-06 19:01:34 +01:00
font-size: 0.75rem;
2022-02-06 10:56:50 +01:00
}
2022-03-22 18:15:38 +01:00
.iplist {
font-family: monospace;
white-space: pre;
}
2022-02-05 11:00:06 +01:00
input,
select {
2022-01-27 17:31:41 +01:00
width: 100%;
background-color: #444;
color: #ddd;
border: none;
2022-02-06 19:01:34 +01:00
font-size: 1rem;
2022-01-27 12:37:27 +01:00
}
button {
2022-01-27 17:31:41 +01:00
font-size: 1rem;
margin: 0.25rem;
padding: 0.5rem;
border-radius: 0.25rem;
border: none;
background-color: #444;
}
button:hover {
background: #555;
}
button:active {
background: #777;
}
2022-02-05 11:00:06 +01:00
button.primary {
background: rgb(35, 67, 211);
}
2022-02-06 19:01:34 +01:00
/* Preview */
2022-01-27 17:31:41 +01:00
.preview {
width: 100%;
display: flex;
flex-flow: column nowrap;
align-items: stretch;
justify-content: flex-start;
2022-02-06 10:56:50 +01:00
/* border: 0.125rem solid white; */
}
.air {
height: 2rem;
2022-07-24 17:11:29 +02:00
position: relative;
border-radius: 0.5rem 0.5rem 0 0;
overflow: clip;
background: #000;
}
.air-btn, .air-led {
height: 2rem;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
align-items: stretch;
justify-content: flex-start;
}
.air-led {
flex-flow: row nowrap;
}
.air-led-left, .air-led-right {
2022-02-06 10:56:50 +01:00
display: flex;
flex-flow: column-reverse nowrap;
align-items: stretch;
justify-content: flex-start;
2022-07-24 17:11:29 +02:00
flex: 1;
}
.air-led-data {
flex: 1 0;
}
2022-02-06 19:01:34 +01:00
2022-07-24 17:11:29 +02:00
.air-led-space {
flex: 14;
}
.air-btn {
background: #0008;
flex-flow: column-reverse nowrap;
2022-02-06 10:56:50 +01:00
}
2022-07-24 17:11:29 +02:00
2022-02-06 10:56:50 +01:00
.air-data {
flex: 1 0;
}
.air-data-1 {
background: #0aa;
2022-01-27 17:31:41 +01:00
}
.ground {
position: relative;
height: 3rem;
2022-02-06 19:01:34 +01:00
border-radius: 0 0 0.5rem 0.5rem;
overflow: clip;
2022-01-27 12:37:27 +01:00
}
2022-02-05 11:00:06 +01:00
.ground-btn,
.ground-led {
2022-01-27 17:31:41 +01:00
height: 3rem;
2022-02-05 11:00:06 +01:00
position: absolute;
2022-01-27 17:31:41 +01:00
top: 0;
left: 0;
width: 100%;
display: flex;
flex-flow: column nowrap;
align-items: stretch;
justify-content: flex-start;
2022-01-27 12:37:27 +01:00
}
2022-01-27 17:31:41 +01:00
.ground-row {
flex: 1;
width: 100%;
display: flex;
flex-flow: row nowrap;
align-items: stretch;
justify-content: space-between;
2022-01-27 12:37:27 +01:00
}
2022-01-27 17:31:41 +01:00
.ground-btn > .ground-row > div {
text-align: center;
flex: 1 0 0;
2022-01-27 12:37:27 +01:00
}
2022-01-27 17:31:41 +01:00
.ground-led-0 {
flex: 1 0 0;
}
.ground-led-1 {
flex: 0.4rem 0 0;
}
.ground-led-2 {
flex: 0.2rem 0 0;
}
.ground-btn {
background-color: #0008;
}
.ground-data {
padding: 0.1rem 0;
font-size: 0.8rem;
2022-02-05 11:00:06 +01:00
}
2022-02-06 10:56:50 +01:00
.extra {
height: 2rem;
display: flex;
flex-flow: row nowrap;
align-items: stretch;
2022-02-06 19:01:34 +01:00
justify-content: center;
2022-02-06 10:56:50 +01:00
}
.extra-data {
width: 1rem;
height: 1rem;
border-radius: 1rem;
margin: 0.5rem;
}
.extra-data-0 {
background: #000;
}
.extra-data-1 {
background: #aaa;
}