-
Notifications
You must be signed in to change notification settings - Fork 3
/
aDnD-2e-MM-v1.css
296 lines (223 loc) · 6.62 KB
/
aDnD-2e-MM-v1.css
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
/*
- Works best on Chrome.
- Made by John Jones /u/Gazook89 - [Github](https://github.com/Gazook89/Homebrewery-Snippets/blob/main/aDnD-2e-MM.css) - 2/6/2021
- Support/Appreciation can be given via [Ko-fi](https://ko-fi.com/johnj)
- The real font for titles and headers is Friz Quadrata, but it is pricey so a substitution has been made.
- I recommend [TablesGenerator.com](https://www.tablesgenerator.com/markdown_tables#) for making your tables.
- Help can be found on [r/homebrewery](https://www.reddit.com/r/homebrewery)
- Template/Theme free for personal and commercial use, with attribution for commercial use. No guarantees.
*/
/* The real font is Friz Quadrata Bold, but it is pricey and I couldn't find an open source version of it. Below is a compromise font */
@import url('https://fonts.googleapis.com/css2?family=Expletus+Sans:ital,wght@0,700;1,700&display=swap');
/* Below are the ROOT variables that can be included in the Homebrewery editor to make some simple changes.
Note, there are nested css comments here, and if included in the brew, the space between / and * needs to be removed.
:root {
--punch-hole-color:whitesmoke;
/ * #1B2631 is blue background.
Takes a web, hex, or rgb/rgba value. * /
--main-color:#4F7FAC;
/ * #4F7FAC is standard light blue.
Takes a web, hex, or rgb/rgba value. * /
--table-row-color:#C5C2BF;
/ * #C5C2BF is standard gray.
Takes a web, hex, or rgb/rgba value. * /
}
*/
/*
█▀█ ▄▀█ █▀▀ █▀▀
█▀▀ █▀█ █▄█ ██▄
*/
.phb {
background:#fdfdfd;
column-gap:25px;
color:#212121;
padding:20px 70px 50px 30px;
}
.phb:nth-of-type(2n) {
padding:20px 30px 50px 70px;
}
.phb:after {
background-image:url('https://i.imgur.com/U5Cr0T4.png');
left:unset;
right:20px;
bottom:unset;
top:0;
width:50px;
height:100%;
mix-blend-mode:darken;
background-color:var(--punch-hole-color);
transform:scaleX(1);
}
.phb:nth-of-type(2n):after {
left:15px;
right:unset;
transform:scaleX(1);
}
.flexbox {
display:flex;
flex-wrap:wrap;
}
/* COVER PAGE */
.phb .cover ~ h1 {
border:none;
text-align:center;
font-size:40px;
color:white;
width:70%;
margin:auto auto;
background:var(--main-color);
border-radius:25px;
border:4px double white;
}
/* TEXT */
.phb p {
text-align:justify;
-webkit-column-break-inside:unset;
break-inside:unset;
page-break-inside:unset;
padding-bottom:.7em;
}
.phb p strong:first-child {
color:var(--main-color);
margin-right:.8em;
}
.phb h1 + p:first-letter {
all:unset;
}
.phb h1 {
color:var(--main-color);
border-bottom:3px solid #212121;
font-family:'Expletus Sans';
font-size:30px;
padding:3px;
margin: 0px 0px 35px 5px;
}
.phb h1 + hr {
visibility:visible;
column-span:all;
color:var(--main-color);
height:8px;
background:var(--main-color);
border:none;
margin-top:-20px;
}
.phb h2 {
font-size:1em;
font-family:'booksanity';
color:var(--main-color);
letter-spacing:.05em;
line-height:2.6em;
margin-top:0;
}
/* IMAGES */
.sticky:before {
content:'';
display:block;
float:left;
height:var(--position-px);
}
.main-image .frame {
position:relative;
overflow:hidden;
float:right;
width:100%;
height:300px;
clear:both;
margin:0px 0px 9px 0px;
mix-blend-mode:darken;
border:2px solid #212121;
filter:grayscale(100%) contrast(120%) brightness(120%);
background-repeat:no-repeat;
box-shadow:inset 0px 0px 1px 2px white;
}
/* TABLES */
.phb table {
font-family:'booksanity';
font-size:1em;
}
.phb table tbody tr:nth-child(odd) {
background:none;
}
.phb table tbody td {
width:500px;
}
.phb table tbody tr:first-child td {
padding-top:0px;
}
.phb table thead th {
padding:12px 5px 2px 5px;
text-transform:capitalize;
}
.phb table thead th:empty {
visiblity:hidden;
padding:2px 5px
}
.phb table tbody tr td {
padding: 1px 5px;
}
/* Stats Table */
.phb .stats table {
}
.phb .stats table + table:before {
content:'';
display:table-caption;
height:1px;
background:#212121;
margin-bottom:2px;
margin-left:5px;
margin-right:0px;
}
.phb .stats table tbody tr:first-child td {
padding-top: 6px;
}
.phb .stats table tbody tr:nth-child(2n+1) {
background:none;
}
.phb .stats table tbody tr:nth-child(n+1):nth-child(-n+4) {
background:var(--table-row-color);
}
.phb .stats table:nth-of-type(2) tbody tr:nth-child(n+1):nth-child(-n+7) {
background:var(--table-row-color);
}
.phb .stats table tbody tr td:nth-of-type(1) {
text-transform:uppercase;
font-weight:bold;
width:240px;
}
.phb .stats table tbody td:nth-of-type(1):after {
content:':'
}
/* Roll Tables */
.phb .rolltable1 {
border-top:1px solid #212121;
border-bottom:1px solid #212121;
margin:2px 5px;
padding:0 5px;
flex:1 1;
}
.phb .rolltable1 h2 + table thead th {
margin-top:0;
padding-top:0;
}
.phb .rolltable1 h2 {
line-height:1.5em;
}
/* Table Variations */
.phb .alternating1 table tbody tr:nth-child(2n+1) {
background-color:var(--table-row-color);
}
.phb .alternating2 table tbody tr:nth-child(4n+1),.phb .alternating2 table tbody tr:nth-child(4n+2) {
background-color:var(--table-row-color);
}
.phb .alternating3 table tbody tr:nth-child(6n+1),.phb .alternating3 table tbody tr:nth-child(6n+2),.phb .alternating3 table tbody tr:nth-child(6n+3) {
background-color:var(--table-row-color);
}
.phb .alternating4 table tbody tr:nth-child(8n+1),.phb .alternating4 table tbody tr:nth-child(8n+2),.phb .alternating4 table tbody tr:nth-child(8n+3),.phb .alternating4 table tbody tr:nth-child(8n+4) {
background-color:var(--table-row-color);
}
.phb .alternating5 table tbody tr:nth-child(10n+1),.phb .alternating5 table tbody tr:nth-child(10n+2),.phb .alternating5 table tbody tr:nth-child(10n+3),.phb .alternating5 table tbody tr:nth-child(10n+4),.phb .alternating5 table tbody tr:nth-child(10n+5) {
background-color:var(--table-row-color);
}
.phb .alternating6 table tbody tr:nth-child(12n+1),.phb .alternating6 table tbody tr:nth-child(12n+2),.phb .alternating6 table tbody tr:nth-child(12n+3),.phb .alternating6 table tbody tr:nth-child(12n+4),.phb .alternating6 table tbody tr:nth-child(12n+5),.phb .alternating6 table tbody tr:nth-child(12n+6) {
background-color:var(--table-row-color);
}