-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.css
396 lines (322 loc) · 8.46 KB
/
theme.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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
/* base variables */
/* Edit the CSS properties in this file to create a custom
Distill theme. Only edit values in the right column
for each row; values shown are the CSS defaults.
To return any property to the default,
you may set its value to: unset
All rows must end with a semi-colon. */
/* Optional: embed custom fonts here with `@import` */
/* This must remain at the top of this file.
@import url('https://fonts.googleapis.com/css2?family=Amiri');
@import url('https://fonts.googleapis.com/css2?family=Bitter');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono');*/
@import url('https://fonts.googleapis.com/css2?family=Lato');
/* alternative to proxima nova
@import url('https://fonts.googleapis.com/css2?family=Montserrat'
);
*/
/*
Rojo: #ed1651
naranja: #f15a22
*/
html {
/*-- Main font sizes --*/
--title-size: 50px;
--body-size: 1.06rem;
--code-size: 14px;
--aside-size: 13px;
--fig-cap-size: 13px;
/*-- Main font colors --*/
/*-- Main font colors --*/
--title-color: #000000;
--header-color: rgba(0, 0, 0, 0.8);
--body-color: rgba(0, 0, 0, 0.8);
--aside-color: rgba(0, 0, 0, 0.6);
--fig-cap-color: rgba(0, 0, 0, 0.6);
/*-- Specify custom fonts ~~~ must be imported above
--heading-font: sans-serif;
--mono-font: monospace;
--body-font: sans-serif;
--navbar-font: sans-serif; --*/ /* websites + blogs only */
--heading-font: "Lato", Arial, sans-serif;
--mono-font: "Lato", Arial, sans-serif;
--body-font: "Lato", Arial, sans-serif;
--navbar-font: "Lato", Arial, sans-serif;
}
/*-- ARTICLE METADATA --*/
d-byline {
--heading-size: 0.6rem;
--heading-color: #f15a22;
/* --heading-color: rgba(0, 0, 0, 0.5);*/
--body-size: 0.8rem;
--body-color: rgba(0, 0, 0, 0.8);
}
/*-- ARTICLE TABLE OF CONTENTS --*/
.d-contents {
--heading-size: 18px;
--contents-size: 13px;
}
/*-- ARTICLE APPENDIX --*/
d-appendix {
--heading-size: 15px;
--heading-color: rgba(0, 0, 0, 0.65);
--text-size: 0.8em;
--text-color: rgba(0, 0, 0, 0.5);
}
/*-- WEBSITE HEADER + FOOTER --*/
/* These properties only apply to Distill sites and blogs */
.distill-site-header {
--title-size: 18px;
/* --text-color: rgba(255, 255, 255, 0.8);
--bkgd-color: #0072bc;*/
--text-color: black;
--bkgd-color: white;
--text-size: 15px;
--hover-color: grey;
}
.distill-site-footer {
/* --text-color: rgba(255, 255, 255, 0.8);
--bkgd-color: #0072bc;*/
--text-color: white;
--text-size: 15px;
--hover-color: white;
--bkgd-color: black;
}
/*-- Additional custom styles --*/
/* Add any additional CSS rules below */
.distill-site-header .logo {
float: left;
}
.distill-site-header .logo img {
/*
display: inline-block;
Add any additional CSS rules below
max-width: 100%;
max-height: 100%;
height: auto;
width: 100%; !important
height: auto; !important */
width: 384px;
height: 100px;
max-height: 100px;
}
.distill-site-header {
height: 100px;
}
.distill-site-header .title {
position: relative;
/*transform: translateY(-70%); */
}
.distill-site-header .nav-right {
top: 25%;
position: relative;
}
/*-- subheaders --*/
/*-- For mobile:--*/
@media (max-width: 480px) {
d-title {
background-image: url(images/para/header_m.jpg);
background-repeat: no-repeat;
background-size:cover;
background-position:center;
}
}
/*-- For tablets:--*/
@media (min-width: 481px) and (max-width: 1024px) {
d-title {
background-image: url(images/para/header.jpg);
background-repeat: no-repeat;
background-size:cover;
background-position:center;
}
}
/*-- For desktop devices:--*/
@media (min-width: 1025px) {
d-title {
background-image: url(images/para/header.jpg);
background-repeat: no-repeat;
background-size:cover;
background-position:center;
}
}
d-title h1 {
padding-top: 25rem;
padding-bottom: 1rem;
/*-- font-weight: 700; --*/
font-size: 6.6rem;
color: #ffffff !important;
line-height: 0.9em;
text-shadow: 2px 2px 4px #000000;
}
d-title p {
/*-- font-weight: 700; --*/
font-size: 2.1rem;
color: #faeb00 !important;
line-height: 1.1em;
text-shadow: 2px 2px 4px #000000;
}
/*-- Highlighting elements --*/
d-article aside {
background: rgb(204, 227, 242);
border-radius: 5px;
padding: 10px 10px 10px 10px;
}
d-article blockquote {
border-left: 3px solid #0072bc;
padding-left: 0.8em;
margin-left: 2em;
font-style: italic;
}
.tweetable {
background: url(images/Twitter_logo_blue.png) 1% 10% no-repeat ;
padding: 1em 1em;
max-width: 800px;
margin: 5px auto; /**/
font-family: sans-serif;
font-weight: lighter;
font-size: 1.1em;
}
.tweetable:before {
text-decoration: none;
display: inline-block;
/*
below is the small arrow...
content: ' \21e8'; */
content: ' ';
padding-left: 18px;
padding-right: 10px;
}
a.tweet-link {
/*color: white; */
color:#0072bc;
}
.story{
background-color: #f4f4f4!important;
padding: 2em 2em;
}
.story h3 {
/*-- font-weight: 700; --*/
font-size: 1.6rem;
color: #18375F !important;
line-height: 1.1em;
text-shadow: 1px 1px 2px #808080;
}
/*-- putting some parallax effect --*/
/*-- list of background image for chapter transition --*/
/*-- For mobile:--*/
@media (max-width: 480px) {
.parallax1{
background:url(images/para/parallax1_m.jpg);
padding:400px 45px 10px 15px;
}
.parallax2{
background:url(images/para/parallax2_m.jpg);
padding:400px 45px 10px 15px;
}
.parallax3{
background:url(images/para/parallax3_m.jpg);
padding:400px 45px 10px 15px;
}
.parallax4{
background:url(images/para/parallax4_m.jpg);
padding:400px 45px 10px 15px;
}
.parallax5{
background:url(images/para/parallax5_m.jpg);
padding:400px 45px 10px 15px;
}
}
/*-- For tablets:--*/
@media (min-width: 481px) and (max-width: 1024px) {
.parallax1{
background:url(images/para/parallax1.jpg);
padding:400px 65px 10px 45px;
}
.parallax2{
background:url(images/para/parallax2.jpg);
padding:400px 65px 10px 45px;
}
.parallax3{
background:url(images/para/parallax3.jpg);
padding:400px 65px 10px 45px;
}
.parallax4{
background:url(images/para/parallax4.jpg);
padding:400px 65px 10px 45px;
}
.parallax5{
background:url(images/para/parallax5.jpg);
padding:400px 65px 10px 45px;
}
}
/*-- For desktop devices:--*/
@media (min-width: 1025px) {
.parallax1{
background:url(images/para/parallax1.jpg);
padding:400px 355px 10px 45px;
}
.parallax2{
background:url(images/para/parallax2.jpg);
padding:400px 355px 10px 45px;
}
.parallax3{
background:url(images/para/parallax3.jpg);
padding:400px 355px 10px 45px;
}
.parallax4{
background:url(images/para/parallax4.jpg);
padding:400px 355px 10px 45px;
}
.parallax5{
background:url(images/para/parallax5.jpg);
padding:400px 355px 10px 45px;
}
}
/*-- list of background image for chapter transition
.parallax4{background:url(images/parallax4.jpg)}
.parallax5{background:url(images/parallax5.jpg)}
.parallax6{background:url(images/parallax6.jpg)}--*/
.parallax{
background-size:cover;
background-repeat:no-repeat;
background-position:center;
background-attachment:fixed;
position:relative;
grid-column: screen;
}
/*-- Create another div inside it and add some text contents to make the effect look more appealing.
Improve the readability of the text contents by adding an extra colored background layer on top of the image.--*/
.parallax:before{
content: '';
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background: rgba(0,0,0,0.2);
}
/*-- If needed, add css property to the content div for its position and z-index. --*/
.parallax h2{
position: left;
font-size: 2.8rem;
display: inline-block;
color: #ffffff !important;
box-shadow: none !important;
border-bottom: 0px solid rgba(0, 0, 0, 0.1);
text-shadow: 2px 2px 4px #000000;
width: 100%;
z-index: 1;
top: 30%;
left: 7%;
}
.parallax p{
position: absolute;
font-size: 1.6rem;
color: #666; !important;
/*text-shadow: 1px 1px 1px #000000; */
width: 100%;
z-index: 1;
top: 10%;
left: 10%;
}