89 lines
3.7 KiB
CSS
89 lines
3.7 KiB
CSS
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0;
|
|
font: 14px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
background: #eceff1;
|
|
color: #263238;
|
|
}
|
|
|
|
/* toolbar */
|
|
.toolbar {
|
|
display: flex; align-items: center; gap: 14px;
|
|
background: #263238; color: #eceff1;
|
|
padding: 0 16px; height: 52px;
|
|
}
|
|
.brand { font-weight: 700; color: #26c6da; letter-spacing: .5px; font-size: 16px; }
|
|
.toolbar label { font-size: 13px; color: #b0bec5; display: flex; gap: 6px; align-items: center; }
|
|
.toolbar select {
|
|
background: #37474f; color: #fff; border: 1px solid #455a64;
|
|
border-radius: 4px; padding: 5px 8px; font-size: 13px;
|
|
}
|
|
.layers { display: flex; gap: 4px; }
|
|
.layer {
|
|
background: #37474f; color: #cfd8dc; border: 1px solid #455a64;
|
|
border-radius: 4px; padding: 5px 14px; cursor: pointer; font-size: 13px;
|
|
}
|
|
.layer.active { background: #26c6da; color: #06343b; border-color: #26c6da; font-weight: 600; }
|
|
.spacer { flex: 1; }
|
|
.toolbar button {
|
|
background: #37474f; color: #eceff1; border: 1px solid #455a64;
|
|
border-radius: 4px; padding: 6px 12px; cursor: pointer; font-size: 13px;
|
|
}
|
|
.toolbar button:hover { background: #455a64; }
|
|
.toolbar button.primary { background: #26c6da; color: #06343b; border-color: #26c6da; font-weight: 600; }
|
|
.toolbar button.primary:hover { background: #4dd0e1; }
|
|
|
|
/* banners */
|
|
.banner {
|
|
background: #fff3cd; border: 1px solid #ffe69c; color: #664d03;
|
|
padding: 10px 16px; margin: 12px 16px; border-radius: 6px;
|
|
white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 12px;
|
|
}
|
|
.hint { margin: 14px 16px 6px; color: #546e7a; font-size: 13px; min-height: 18px; }
|
|
.recv { margin: 0 16px 8px; color: #00695c; font-size: 13px; font-weight: 600; }
|
|
|
|
/* keyboard */
|
|
.board {
|
|
position: relative; margin: 4px 16px 24px;
|
|
background: #cfd8dc; border-radius: 10px; padding: 10px;
|
|
box-shadow: inset 0 0 0 1px #b0bec5;
|
|
}
|
|
.key {
|
|
position: absolute;
|
|
background: linear-gradient(#ffffff, #eceff1);
|
|
border: 1px solid #b0bec5; border-bottom-width: 2px;
|
|
border-radius: 5px; cursor: pointer;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 11px; color: #37474f; text-align: center;
|
|
overflow: hidden; user-select: none; padding: 0 2px;
|
|
}
|
|
.key:hover { border-color: #26c6da; }
|
|
.key.selected { outline: 2px solid #26c6da; outline-offset: -1px; z-index: 2; box-shadow: 0 0 0 3px rgba(38,198,218,.25); }
|
|
.key.changed { background: linear-gradient(#fff6e6, #ffe2b3); border-color: #e0a040; }
|
|
|
|
/* palette */
|
|
.palette { margin: 0 16px 48px; display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
|
|
.group { background: #fff; border: 1px solid #cfd8dc; border-radius: 8px; padding: 10px 12px; }
|
|
.ghead { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #78909c; margin-bottom: 8px; }
|
|
.gkeys { display: flex; flex-wrap: wrap; gap: 5px; max-width: 330px; }
|
|
.cap {
|
|
min-width: 38px; height: 34px; padding: 0 7px;
|
|
background: linear-gradient(#ffffff, #eceff1);
|
|
border: 1px solid #b0bec5; border-bottom-width: 2px;
|
|
border-radius: 5px; cursor: pointer; font-size: 11px; color: #37474f;
|
|
}
|
|
.cap:hover { background: #e0f7fa; border-color: #26c6da; }
|
|
|
|
/* key-test highlight + toggled buttons */
|
|
.key.pressed { background: linear-gradient(#b9f6ca, #69f0ae); border-color: #00c853; color: #064d2e; box-shadow: 0 0 0 3px rgba(0,200,83,.25); z-index: 1; }
|
|
.toolbar button.active { background: #26c6da; color: #06343b; border-color: #26c6da; font-weight: 600; }
|
|
|
|
/* toast */
|
|
.toast {
|
|
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
|
|
background: #263238; color: #fff; padding: 10px 18px; border-radius: 6px;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,.25); white-space: pre-wrap; max-width: 80vw;
|
|
}
|
|
|
|
[hidden] { display: none !important; }
|