aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/jta/style.css
blob: ec09ca990326aa0e051521e23ac208cc0ea6bd92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --accent: #22c55e;
  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --border: #334155;

  --font-body: "Avenir Next", "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --step--1: clamp(0.88rem, 0.86rem + 0.12vw, 0.96rem);
  --step-0: clamp(1rem, 0.98rem + 0.16vw, 1.08rem);
  --step-1: clamp(1.14rem, 1.08rem + 0.26vw, 1.28rem);
  --step-2: clamp(1.3rem, 1.2rem + 0.45vw, 1.56rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.1vw, 2.25rem);
}

/* Base layout */
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  background: var(--bg);
  color: var(--text);
  max-width: 850px;
  margin: 2rem auto;
  padding: 1.5rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

/* Headings */
h1 {
  font-family: var(--font-heading);
  font-size: var(--step-3);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 1.25rem;
}

h2 {
  font-family: var(--font-heading);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--text-soft);
}

/* Text */
p {
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 65ch;
}

/* Ordered list (questions) */
ol {
  padding-left: 1.2rem;
  max-width: 65ch;
}

/* Answer list */
ul {
  list-style: none;
  padding-left: 1.2rem;
  max-width: 65ch;
}

ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

/* Checkbox styling */
input[type="checkbox"] {
  accent-color: var(--accent);
  transform: scale(1.2);
  margin-top: 0.2rem;
  pointer-events: none;
}

/* Correct answers */
li:has(input[type="checkbox"]:checked) {
  color: #86efac;
  font-weight: 500;
}

/* Code blocks */
pre {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  line-height: 1.6;
  background: #020617;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1rem 0;
  max-width: 65ch;
}

code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: #020617;
  padding: 2px 6px;
  border-radius: 6px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 10px;
}

p > img,
li > img {
  margin: 0.75rem 0;
}

a > img {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a:hover > img {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
}

img[width],
img[height] {
  width: auto;
  height: auto;
  max-width: 100%;
}

/* Links */
a {
  color: #93c5fd;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
  text-decoration-color: rgba(147, 197, 253, 0.45);
}

a:hover {
  text-decoration-color: currentColor;
}

/* Optional: make everything feel tighter and nicer */
* {
  box-sizing: border-box;
}