-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
299 lines (276 loc) · 7.09 KB
/
style.css
File metadata and controls
299 lines (276 loc) · 7.09 KB
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
/* === Yellow legal pad sheet === */
.legalpad {
--label-col: 180px; /* tweak label column width */
--input-width: 220px; /* tweak input column width */
position: relative;
border-radius: 8px;
background: #fdf3b2; /* paper yellow */
box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06);
overflow: hidden;
border: 1px solid #e9df9a;
}
/* red margin line */
.legalpad::before {
content: "";
position: absolute;
top: 0; bottom: 0;
left: 72px; /* margin width */
width: 2px;
background: #d04545; /* red rule */
opacity: .75;
z-index: 0; /* <-- send behind */
}
/* --- Leather/mottled binding strip at the top --- */
.legalpad-binding {
/* sits where the old .legalpad-header was */
position: relative;
height: 48px;
padding: 8px 16px 8px 28px; /* indent past red margin */
display: flex;
align-items: center;
gap: 10px;
/* mottled brown: layered gradients for a “leather” vibe */
background:
radial-gradient(18px 22px at 20% 30%, rgba(255,255,255,0.06), transparent 60%),
radial-gradient(16px 16px at 70% 60%, rgba(0,0,0,0.08), transparent 60%),
radial-gradient(20px 14px at 40% 50%, rgba(255,255,255,0.04), transparent 60%),
linear-gradient(180deg, #835b3b 0%, #704d30 48%, #503520 100%);
border-bottom: 1px solid rgba(0,0,0,0.25);
box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}
/* Title printed in black on the binding */
.legalpad-binding-title {
font-weight: 700;
font-size: 26px;
color: #000000;
line-height: 1.2;
text-shadow: 0 -1px 0 #ffffff8d; /* highlight above */
margin: 0;
user-select: none;
}
/* Keep the status icon visible on the darker binding */
.legalpad-binding .status-icon {
width: 14px;
height: 14px;
border-radius: 50%;
display: inline-block;
background: #dc2626; /* red (not complete) */
}
.status-icon[data-complete="1"] {
background: #22c55e; /* green (complete) */
}
/* If you were showing a .legalpad-desc under the title, tuck it into the paper, not the binding */
.legalpad-desc {
margin-top: 2px;
font-size: 12px;
color: #6b7280;
}
/* Remove old header look if it still exists */
.legalpad-header { display: none; }
.legalpad-title { font-weight: 700; font-size: 24px; color: #1f2937; line-height: 1.2; }
.legalpad-desc { margin-top: 2px; font-size: 12px; color: #6b7280; }
/* body with blue ruling every 40px */
.legalpad-body {
position: relative;
padding: 24px 16px 8px 88px;
background-image: repeating-linear-gradient(
to bottom,
transparent 0px,
transparent 38px,
#a2c5ff 40px
);
background-position-y: 24px;
z-index: 1; /* <-- blue lines above red */
}
/* === PERFECT 2-COLUMN ALIGNMENT === */
.legalpad-row {
display: grid;
grid-template-columns: var(--label-col) var(--input-width);
column-gap: 12px;
align-items: center;
justify-items: start;
height: 40px; /* match ruling step */
line-height: 40px;
}
/* Label column */
.legalpad-label {
font-size: 18px;
font-weight: 600; /* slightly heavier */
color: #2d2d2d;
white-space: nowrap;
padding-right: 10px;
justify-self: start;
}
/* Input column */
.legalpad-input {
width: var(--input-width);
max-width: var(--input-width);
display: flex;
align-items: center;
justify-content: flex-start;
}
.legalpad-input > input,
.legalpad-input > select {
width: var(--input-width);
max-width: var(--input-width);
height: 38px;
line-height: 32px;
padding: 0 8px;
border: 1.5px solid #a29653;
border-radius: 0;
background: #fdf3b2;
margin-bottom: 1px;
font-size: 18px;
color: #2d2d2d;
font-weight: 500;
letter-spacing: 0.3px;
}
/* Checkboxes */
.legalpad-input > input[type="checkbox"] {
width: 16px; height: 16px; margin: 0; line-height: 1;
}
/* action area */
.legalpad-actions {
padding: 10px 16px 12px 88px;
border-top: 1px dashed #e2d68c;
display: grid;
gap: 8px;
}
/* buttons with “paper” vibe */
.btn-paper {
appearance: none;
border: 1px solid #c6b96d;
background: #fff8d6;
padding: 8px 10px;
border-radius: 6px;
font-size: 13px;
}
.btn-paper:hover { background: #fff2b8; }
.btn-primary {
border-color: #01ee34;
background: #01ee34; color: #000000;
}
.btn-primary:hover { background: #276749; }
/* === Typography overrides for old-school look === */
.legalpad,
.legalpad-label,
.legalpad-input input,
.legalpad-input select,
.legalpad-title,
.legalpad-desc {
font-family: "Segoe UI Historic", "Segoe UI", "Courier New", Courier, serif;
-webkit-font-smoothing: none;
-moz-osx-font-smoothing: grayscale;
font-smooth: never;
text-rendering: optimizeSpeed;
}
/* === Legal pad corner fold === */
.legalpad-corner {
position: absolute;
bottom: 0;
left: 0;
width: 80px;
height: 80px;
overflow: hidden;
pointer-events: none;
}
.legalpad-corner::before {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 0;
border-bottom: 60px solid #fdf3b2;
border-right: 60px solid transparent;
z-index: 1;
}
.legalpad-corner::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 0;
border-bottom: 60px solid rgba(0,0,0,0.15);
border-right: 60px solid transparent;
transform: translate(3px, -3px);
filter: blur(4px);
z-index: 0;
}
/* Reset button */
.legalpad-reset {
position: absolute;
bottom: 8px;
left: 12px;
z-index: 2;
appearance: none;
border: none;
background: none;
padding: 0;
border-radius: 4px;
font-size: 14px;
color: blue;
font-family: "Segoe UI", serif;
cursor: pointer;
}
.legalpad-reset:hover { color: red; }
/* Status icon */
.status-icon {
width: 22px; height: 22px;
display: inline-block;
border-radius: 999px;
background: #e5e7eb;
position: relative;
box-shadow: inset 0 0 0 2px #cbd5e1;
}
.status-icon[data-complete="1"] {
background: #22c55e;
box-shadow: inset 0 0 0 2px #16a34a, 0 0 6px rgba(34,197,94,0.4);
}
.status-icon[data-complete="1"]::after {
content: "";
position: absolute;
left: 5px; top: 3px;
width: 10px; height: 6px;
border: 3px solid #ffffff;
border-top: 0; border-right: 0;
transform: rotate(-45deg);
}
/* ===== Split layout (editor ⇄ legalpad) ===== */
.split-resizable{
position:relative;
display:flex;
flex-wrap:nowrap;
align-items:stretch;
gap:0;
width:100%;
min-height:60vh;
box-sizing:border-box;
}
.pane{
display:flex;
flex-direction:column;
min-width:0;
min-height:0;
overflow:hidden;
box-sizing:border-box;
}
.divider{
width:6px;
cursor:col-resize;
background:linear-gradient(180deg,#e5e7eb,#cbd5e1);
position:relative;
z-index:2;
}
.divider::after{
content:"";
position:absolute; inset:0;
border-left:1px solid #cbd5e1;
border-right:1px solid #cbd5e1;
opacity:.6;
}
.pane-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem 0;}
.chev{font-weight:700;line-height:1;padding:2px 6px;border-radius:6px;border:1px solid #e5e7eb;background:#353366;color:#fff;}
.chev:hover{background:#eef2f7;color:#000;}
.edge-tab{position:absolute;top:6px;padding:4px 8px;border-radius:6px;background:#f8fafc;border:1px solid #e5e7eb;z-index:3;}