dynare.scss 8.46 KB
Newer Older
Houtan Bastani's avatar
Houtan Bastani committed
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
// ***********************
// OVERRIDE PARTS OF THEME
// ***********************
/*
.page__footer { background-color: $link-color; }
*/
/*
.greedy-nav a:before {
    background: mix(#fff, $primary-color, 50%);
}
*/

a {
    text-decoration: none;
}

html {
    font-size: 14px; // originally 16px
    @include breakpoint($medium) {
        font-size: 14px; // originally 18px
    }

    @include breakpoint($large) {
        font-size: 16px; // originally 20px
    }

    @include breakpoint($x-large) {
        font-size: 18px; // originally 22px
    }
}

::selection {
    background: $link-color;
}
::-moz-selection {
    background: $link-color;
}
// ************
// END OVERRIDE
// ************

//***************
// ABOUT PAGE CSS
//***************

$color1: red !default;
$color2: red !default;
$color3: red !default;
$color4: red !default;
$color5: red !default;

// from minimal-mistakes-jekyll-4.13.0/_sass/minimal-mistakes/_variables.scss
// the !default tag ensures we don't overwrite the value of the variable
$type-size-5: 0.75em !default;
$type-size-6: 0.75em !default;
$download-table-cell-font-size: $type-size-5 !default;

58
59
$download-link-indent: 40px !default;

Houtan Bastani's avatar
Houtan Bastani committed
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
// Set defaults to red so we'll notice if nothing is set in main.scss
$hover-color: red !default;
$checked-color: red !default;
$news-date-color: red !default;
$download-tab-border-color: red !default;
$download-tab-label-color: red !default;
$download-tab-label-hover-color: red !default;
$download-tab-label-checked-color: red !default;
$home-download-hover-color: red !default;
$download-tr-color-hover: red !default;
$download-indent: 900 !default;

$news-color: red !default;
$news-color-hover: red !default;

$monospace: monospace !default;

div.home_page_top {
    background-image: url('/assets/images/logo/dbkgd.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}


a.home_page_button {
    display: inline-block;
    padding: 10px 10px;
    width: 200px;
    background-color: $primary-color;
    border-spacing: 10px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    text-decoration: none !important;
    color: #fff;
    text-align: center;
    transition: all 0.2s;
}

a.home_page_button:hover{
    background-color: mix(#000, $hover-color, 10%);
}

@media all and (max-width:30em) {
    a.home_page_button {
        display:block;
        margin:0.4em auto;
    }
}

div.dynare_home_page_post_box {
    border: 1px solid $news-color;
    padding-left: 10px;
    padding-top: 0px;
    margin: 0px;
    border-radius: 5px;
    cursor: pointer;
    background-image: none;
    background-color: $news-color;
}

div.dynare_home_page_post_box:hover {
    background-image: none;
    background-color: $news-color-hover;
}

h3.dynare_home_page_post_title {
    margin-top: 10px;
}

span.dynare_home_page_date {
    font-size: $type-size-6;
    color: $news-date-color;
}

.dynare_team_row {
    width: 100%; /*Optional*/
    border-spacing: 10px; /*Optional*/
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

.dynare_team_column {
    flex: 16%;
    max-width: 16%;
    padding: 10px 10px;
    text-align: center;
}

.dynare_team_column img {
    margin-top: 8px;
    vertical-align: middle;
}


@media screen and (max-width: 1000px) {
    .dynare_team_column {
        flex: 20%;
        max-width: 20%;
    }
}

@media screen and (max-width: 800px) {
    .dynare_team_column {
        flex: 25%;
        max-width: 25%;
    }
}

@media screen and (max-width: 600px) {
    .dynare_team_column {
        flex: 33%;
        max-width: 33%;
    }
}

@media screen and (max-width: 400px) {
    .dynare_team_column {
        flex: 50%;
        max-width: 100%;
    }
}

@media screen and (max-width: 200px) {
    .dynare_team_column {
        flex: 100%;
        max-width: 100%;
    }
}

.avatar {
    border-radius: 5%;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    width: 175px;
}
// **************
// END ABOUT PAGE
// **************

.dynare_home_page_about_row {
    width: 100%; /*Optional*/
    border-spacing: 10px; /*Optional*/
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

.dynare_home_page_about_column {
    flex: 33%;
    max-width: 33%;
    padding: 10px 10px;
    text-align: center;
}

.dynare_home_page_about_column_header {
    flex: 33%;
    max-width: 33%;
    padding: 10px 10px;
    text-align: center;
}

.dynare_home_page_about_column_header_side {
    flex: 33%;
    max-width: 33%;
    padding: 10px 10px;
    text-align: center;
    border-bottom: 1px solid $border-color;
    position: relative;
    top: 50%;
    transform: 			translateY(-50%);
}

@media screen and (max-width: 600px) {
    .dynare_home_page_about_column {
        flex: 50%;
        max-width: 100%;
    }
    .dynare_home_page_about_column_header {
        flex: 33%;
        max-width: 33%;
    }
    .dynare_home_page_about_column_header_side {
        flex: 33%;
        max-width: 33%;
    }
}

@media screen and (max-width: 400px) {
    .dynare_home_page_about_column {
        flex: 100%;
        max-width: 100%;
    }
    .dynare_home_page_about_column_header {
        flex: 100%;
        max-width: 100%;
    }
    .dynare_home_page_about_column_header_side {
        flex: 100%;
        max-width: 100%;
    }
}


// *************
// DOWNLOAD PAGE
// *************
// From https://codepen.io/oknoblich/pen/tfjFl?editors=0100#0
main.dynare_main {
  margin: 0 auto;
}

section.dynare_section {
  display: none;
  padding: 20px 0 0;
  border-top: 1px solid $download-tab-border-color;
}

input.dynare_input {
  display: none;
}

label.dynare_label {
  display: inline-block;
  margin: 0 0 -1px;
  padding: 15px 25px;
  font-weight: 600;
  text-align: center;
  color: $download-tab-label-color;
  border: 1px solid transparent;
}

label.dynare_label:before {
  font-family: fontawesome;
  font-weight: normal;
  margin-right: 10px;
}

label.dynare_label[for*='1']:before { content: '\f17a'; }
label.dynare_label[for*='2']:before { content: '\f179'; }
label.dynare_label[for*='3']:before { content: '\f17c'; }
label.dynare_label[for*='4']:before { content: '\f1c9'; }

label.dynare_label:hover {
    color: $download-tab-label-hover-color;
    cursor: pointer;
}

input.dynare_input:checked + label {
    color: $download-tab-label-checked-color;
    border: 1px solid $download-tab-border-color;
    border-top: 2px solid $download-tab-border-color;
    border-bottom: 1px solid #fff;
}

#stable_tab1:checked ~ #stable_content1,
#stable_tab2:checked ~ #stable_content2,
#stable_tab3:checked ~ #stable_content3,
#stable_tab4:checked ~ #stable_content4,
#snapshot_tab1:checked ~ #snapshot_content1,
#snapshot_tab2:checked ~ #snapshot_content2,
#snapshot_tab3:checked ~ #snapshot_content3,
#snapshot_tab4:checked ~ #snapshot_content4 {
  display: block;
}

@media screen and (max-width: 650px) {
    label.dynare_label {
        font-size: 0;
    }
    label.dynare_label:before {
        margin: 0;
        font-size: 18px;
    }
}

@media screen and (max-width: 400px) {
    label.dynare_label {
        padding: 15px;
    }
}

div.download_table {
    display: table;
346
    margin-left: $download-link-indent - 10px;
Houtan Bastani's avatar
Houtan Bastani committed
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
}
div.download_row {
    display: table-row;
}
div.download_cell_left {
    display: table-cell;
    white-space: nowrap;
    padding-right: 10px;
    padding-left: 10px;
    font-size: $download-table-cell-font-size;
    padding-bottom: 5px;
    font-family: $monospace;
}

div.download_cell_right {
    display: table-cell;
    padding-right: 10px;
    padding-bottom: 5px;
    font-size: $download-table-cell-font-size;
    font-family: $monospace;
}

div.download_row:hover {
    background-color: $download-tr-color-hover;
    cursor: pointer;
}

p.stable {
375
    text-indent: $download-link-indent;
Houtan Bastani's avatar
Houtan Bastani committed
376
377
378
379
    font-family: $monospace !important;
}

p.indent {
380
381
382
383
384
    padding-left: $download-link-indent;
}

ul.resources {
    padding-left: $download-link-indent + 20px !important;
Houtan Bastani's avatar
Houtan Bastani committed
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
}

// *****************
// END DOWNLOAD PAGE
// *****************

.active, .greedy-nav  {
    color: $checked-color !important;
}



.dynare_download_page_row {
    width: 100%; /*Optional*/
    border-spacing: 0px; /*Optional*/
    display: flex;
    flex-wrap: wrap;
    padding: 0 0px;
}

.dynare_download_page_column {
    flex: 50%;
    max-width: 50%;
    padding: 0px 0px;
    text-align: left;
}


@media screen and (max-width: 400px) {
    .dynare_download_page_column {
        flex: 100%;
        max-width: 100%;
    }
}
419
420
421
422
423

.dynare_masthead_home_img a {
    margin: 0px 0px 0px 0px !important;
    padding: 0px 0px 0px 0px !important;
}