style.css (5035B)
1 :root { 2 --bg: #15161a; 3 --fg: #e8e6e0; 4 --muted: #a7a49c; 5 --accent: #d9312f; 6 --key: #262830; 7 --key-edge: #0c0d10; 8 --key-fg: #f2f0ea; 9 --paper: #e4e4e0; 10 --ink: #101010; 11 color-scheme: dark; 12 } 13 * { box-sizing: border-box; } 14 html, body { margin: 0; padding: 0; } 15 body { 16 background: var(--bg); 17 color: var(--fg); 18 font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; 19 padding: 0 16px 40px; 20 } 21 a { color: #8fb8ff; } 22 header { max-width: 900px; margin: 24px auto 12px; } 23 h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 6px; letter-spacing: .01em; } 24 .logo { font-weight: 800; color: #fff; } 25 .logo span { color: var(--accent); } 26 .sub { color: var(--muted); margin: 0; } 27 main { max-width: 900px; margin: 0 auto; } 28 kbd { 29 font: 0.85em ui-monospace, SFMono-Regular, Menlo, monospace; 30 background: #2b2d35; border: 1px solid #3c3f49; border-bottom-width: 2px; 31 border-radius: 4px; padding: 0 5px; color: #fff; white-space: nowrap; 32 } 33 code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; } 34 .inv { background: #fff; color: #000; padding: 0 3px; font-family: ui-monospace, monospace; font-style: normal; } 35 36 /* Téléviseur */ 37 .tv { margin: 0 auto; max-width: 840px; } 38 .bezel { 39 background: #050505; 40 border-radius: 14px; 41 padding: 4%; 42 box-shadow: 0 10px 40px rgba(0,0,0,.6), inset 0 0 0 2px #222; 43 } 44 #screen { 45 display: block; 46 width: 100%; 47 aspect-ratio: 4 / 3; 48 background: var(--paper); 49 image-rendering: pixelated; 50 image-rendering: crisp-edges; 51 border-radius: 4px; 52 outline: none; 53 } 54 .status { 55 text-align: center; color: var(--muted); font-size: .85rem; margin: 8px 0 0; 56 font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 1.4em; 57 } 58 59 /* Barre d'outils */ 60 .toolbar { 61 display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; 62 margin: 14px auto 18px; max-width: 840px; 63 } 64 .toolbar button, .toolbar select { 65 background: #2b2d35; color: #fff; border: 1px solid #40434e; border-radius: 6px; 66 padding: 7px 14px; font: inherit; font-size: .95rem; cursor: pointer; 67 } 68 .toolbar button:hover { background: #363946; } 69 .toolbar button:active, .toolbar button.on { background: var(--accent); border-color: var(--accent); } 70 .toolbar .speed { color: var(--muted); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; } 71 72 /* Clavier ZX81 */ 73 .keyboard { 74 background: #0e0f12; 75 border-radius: 12px; 76 padding: 12px 10px 14px; 77 margin: 0 auto; 78 max-width: 840px; 79 display: grid; 80 grid-template-columns: repeat(10, 1fr); 81 gap: 6px 5px; 82 user-select: none; 83 -webkit-user-select: none; 84 touch-action: manipulation; 85 } 86 .key { 87 position: relative; 88 aspect-ratio: 1 / 1.15; 89 background: var(--key); 90 border: 1px solid var(--key-edge); 91 border-bottom-width: 3px; 92 border-radius: 6px; 93 color: var(--key-fg); 94 display: grid; 95 grid-template-rows: 1fr auto 1fr; 96 padding: 3px 4px 2px; 97 cursor: pointer; 98 font-family: ui-monospace, SFMono-Regular, Menlo, monospace; 99 transition: background .05s; 100 } 101 .key.down { background: #4a4d5a; border-bottom-width: 1px; transform: translateY(2px); } 102 .key.sticky { background: var(--accent); } 103 .key .kw { font-size: clamp(7px, 1.15vw, 10px); color: #fff; letter-spacing: -.02em; line-height: 1; white-space: nowrap; overflow: hidden; } 104 .key .sh { font-size: clamp(7px, 1.15vw, 10px); color: #ff6b66; line-height: 1; text-align: right; white-space: nowrap; } 105 .key .top { display: flex; justify-content: space-between; align-items: start; gap: 2px; } 106 .key .main { font-size: clamp(14px, 2.6vw, 24px); font-weight: 700; text-align: center; line-height: 1; } 107 .key .main.small { font-size: clamp(8px, 1.4vw, 12px); font-weight: 600; } 108 .key .fn { font-size: clamp(7px, 1.15vw, 10px); color: #ff6b66; text-align: center; align-self: end; line-height: 1; white-space: nowrap; overflow: hidden; } 109 .key .g { display: inline-block; width: .9em; height: .9em; vertical-align: -0.1em; background: 110 conic-gradient(from 0deg at 50% 50%, #fff 0 25%, #000 0 50%, #fff 0 75%, #000 0); } 111 .key .g[data-g="1"] { background: linear-gradient(to bottom, transparent 50%, #fff 50%) , linear-gradient(to right, #fff 50%, transparent 50%); background-size: 50% 50%; } 112 113 /* Aide */ 114 .help { max-width: 900px; margin: 28px auto 0; color: #d4d2cc; } 115 .help h2 { font-size: 1.15rem; margin: 0 0 8px; } 116 .help h3 { font-size: 1rem; margin: 0 0 6px; color: #fff; } 117 .help .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; } 118 .help p { margin: 0 0 10px; font-size: .95rem; } 119 .help table { border-collapse: collapse; font-size: .9rem; margin-bottom: 10px; } 120 .help td { padding: 3px 10px 3px 0; vertical-align: top; border-bottom: 1px solid #2a2c33; } 121 footer { max-width: 900px; margin: 30px auto 0; color: var(--muted); font-size: .8rem; } 122 123 @media (max-width: 480px) { 124 .key .kw, .key .fn { display: none; } 125 .key { aspect-ratio: 1 / 1.2; grid-template-rows: auto 1fr; } 126 .toolbar button, .toolbar select { padding: 6px 10px; font-size: .85rem; } 127 }