-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
202 lines (191 loc) · 6.8 KB
/
Copy pathstyles.css
File metadata and controls
202 lines (191 loc) · 6.8 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
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');
:root {
--ink: #241a16;
--muted: #75665d;
--paper: #f7f0e3;
--paper-2: #fffaf0;
--line: #cbbba5;
--accent: #7d2e2e;
--accent-2: #b8894b;
--shadow: 0 12px 35px rgba(45, 30, 20, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
color: var(--ink);
background:
radial-gradient(circle at 15% 0%, rgba(184,137,75,.12), transparent 28rem),
linear-gradient(135deg, #eee4d3, #f9f5ed 55%, #e9decc);
font-family: Inter, system-ui, sans-serif;
}
.site-header {
max-width: 1280px;
margin: auto;
padding: 42px 28px 24px;
display: flex;
justify-content: space-between;
gap: 24px;
align-items: end;
}
h1, h2 { font-family: Cinzel, Georgia, serif; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
letter-spacing: .18em;
font-size: .72rem;
font-weight: 700;
color: var(--accent);
margin-bottom: 8px;
}
.site-header p { margin: 8px 0 0; color: var(--muted); }
main { max-width: 1280px; margin: auto; padding: 0 28px 48px; }
.panel, .character-panel, .toolbar {
background: rgba(255,250,240,.88);
border: 1px solid rgba(203,187,165,.85);
border-radius: 18px;
box-shadow: var(--shadow);
}
.panel { padding: 24px; }
.panel h2 { margin-bottom: 8px; }
.muted { color: var(--muted); line-height: 1.55; }
.input-row { display: flex; gap: 10px; margin: 18px 0 12px; }
input, select, textarea {
width: 100%;
border: 1px solid var(--line);
background: #fffdf8;
color: var(--ink);
border-radius: 10px;
padding: 11px 13px;
font: inherit;
}
textarea { margin-top: 12px; resize: vertical; }
button {
border: 0; border-radius: 10px; padding: 11px 15px;
font: 700 .9rem Inter, sans-serif; cursor: pointer;
}
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--accent); color: white; }
.secondary { background: #e9decc; color: var(--ink); }
.link-button {
padding: 0; background: transparent; color: var(--accent);
text-decoration: underline; font-weight: 600;
}
.dropzone {
min-height: 110px; border: 2px dashed var(--line); border-radius: 14px;
display: grid; place-content: center; text-align: center; gap: 6px;
background: rgba(247,240,227,.55);
}
.dropzone.dragover { border-color: var(--accent); background: rgba(125,46,46,.06); }
.status { min-height: 24px; margin-top: 12px; color: var(--accent); font-weight: 600; }
details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 700; }
.character-panel {
margin-top: 22px; padding: 18px 22px; display: flex;
justify-content: space-between; align-items: center; gap: 20px;
}
.character-panel h2 { font-size: 1.65rem; }
.stats { display: flex; gap: 12px; }
.stats div {
min-width: 90px; padding: 10px 14px; border-radius: 12px;
background: #eee3d2; text-align: center;
}
.stats span { display: block; font-size: .72rem; color: var(--muted); }
.stats strong { font-size: 1.25rem; }
.toolbar {
margin-top: 22px; padding: 16px 18px; display: flex;
align-items: center; justify-content: space-between; gap: 18px;
}
.toolbar-title { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.toolbar-title span { color: var(--muted); font-size: .85rem; }
.filters { display: flex; gap: 8px; align-items: center; }
.filters input { width: 220px; }
.filters select { width: 150px; }
.cards {
margin-top: 22px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 18px;
}
.card-wrap { position: relative; }
.spell-card {
min-height: 365px;
padding: 15px;
border: 5px double var(--accent-2);
border-radius: 15px;
background:
radial-gradient(circle at 90% 0%, rgba(184,137,75,.16), transparent 10rem),
linear-gradient(145deg, var(--paper-2), var(--paper));
box-shadow: 0 8px 20px rgba(45,30,20,.14);
display: flex; flex-direction: column;
cursor: pointer;
transition: transform .12s ease, box-shadow .12s ease;
}
.spell-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(45,30,20,.18); }
.card-wrap.selected .spell-card { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-check {
position: absolute; top: 12px; right: 12px; z-index: 2;
width: 22px; height: 22px; accent-color: var(--accent);
}
.card-head { padding-right: 30px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.card-head h3 { font-family: Cinzel, Georgia, serif; font-size: 1.18rem; margin: 0 0 4px; }
.subtitle { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card-meta {
margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr;
gap: 7px; font-size: .76rem;
}
.meta-box { padding: 7px 8px; background: rgba(233,222,204,.55); border-radius: 7px; }
.meta-box b { display: block; font-size: .65rem; color: var(--muted); text-transform: uppercase; }
.card-desc {
font-family: Georgia, serif; font-size: .82rem; line-height: 1.38;
overflow: hidden; flex: 1;
}
.card-desc p { margin: 0 0 7px; }
.card-desc ul, .card-desc ol { margin: 5px 0 8px 18px; padding: 0; }
.card-foot {
margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line);
font-size: .68rem; color: var(--muted); display: flex; justify-content: space-between;
}
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-icon { font-size: 2.5rem; color: var(--accent-2); }
.hidden { display: none !important; }
footer { max-width: 1280px; margin: auto; padding: 0 28px 35px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
@media (max-width: 900px) {
.site-header, .toolbar, .character-panel { flex-direction: column; align-items: stretch; }
.filters { flex-wrap: wrap; }
.filters input, .filters select { flex: 1 1 160px; width: auto; }
}
@media (max-width: 600px) {
main, .site-header { padding-left: 14px; padding-right: 14px; }
.input-row { flex-direction: column; }
.cards { grid-template-columns: 1fr; }
}
@media print {
@page { size: Letter portrait; margin: .28in; }
body { background: white; }
.no-print, footer, .toolbar, .empty { display: none !important; }
main { max-width: none; padding: 0; }
.cards {
display: grid;
grid-template-columns: repeat(3, 2.48in);
gap: .14in;
margin: 0;
}
.card-wrap { break-inside: avoid; }
.spell-card {
width: 2.48in;
min-height: 3.38in;
height: 3.38in;
padding: .11in;
border-width: 3px;
border-radius: 7px;
box-shadow: none;
}
.card-wrap:not(.selected) { display: none; }
.card-head h3 { font-size: 10.5pt; }
.subtitle { font-size: 6pt; }
.card-meta { font-size: 6.1pt; gap: 3px; margin: 5px 0; }
.meta-box { padding: 3px 4px; }
.meta-box b { font-size: 5pt; }
.card-desc { font-size: 6.8pt; line-height: 1.22; }
.card-desc p { margin-bottom: 4px; }
.card-foot { font-size: 5.2pt; margin-top: 4px; padding-top: 4px; }
}