dynare.scss 10.7 KB
Newer Older
1
2
3
4
5
6
7

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

Houtan Bastani's avatar
Houtan Bastani committed
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
// ***********************
// 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;
}
45
46
47
48
49
50
51
52
53
54
55
56
57

button.greedy-nav__toggle {
    background-color: #fff;
}

.navicon {
    background: $color3;
}

.navicon::before, .navicon::after {
    background: $color3 !important;
}

58
59
60
61
.search__toggle:hover {
    color: $color3;
}

Houtan Bastani's avatar
Houtan Bastani committed
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// ************
// END OVERRIDE
// ************

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


// 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;

77
78
$download-link-indent: 40px !default;

Houtan Bastani's avatar
Houtan Bastani committed
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
// 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
// **************

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
.dynare_home_page_support_row {
    width: 100%; /*Optional*/
    border-spacing: 10px; /*Optional*/
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

.dynare_home_page_support_column {
    flex: 33%;
    max-width: 33%;
    padding: 10px 10px;
    text-align: center;
    vertical-align: middle;
    margin: auto;
}

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

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

.dynare_home_page_support_cepremap_image {
    width: 33%;
    margin: auto;
    position:relative;
}


Houtan Bastani's avatar
Houtan Bastani committed
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
.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%;
297
        max-width: 50%;
Houtan Bastani's avatar
Houtan Bastani committed
298
299
300
301
302
303
304
305
306
    }
    .dynare_home_page_about_column_header {
        flex: 33%;
        max-width: 33%;
    }
    .dynare_home_page_about_column_header_side {
        flex: 33%;
        max-width: 33%;
    }
307
308
309
310
311
312
313
314
315
316
317
318
    .dynare_home_page_support_column {
        flex: 50%;
        max-width: 50%;
    }
    .dynare_home_page_support_column_cepremap {
        flex: 50%;
        max-width: 50%;
    }
    .dynare_home_page_support_column_cepremap_filler {
        flex: 25%;
        max-width: 25%;
    }
Houtan Bastani's avatar
Houtan Bastani committed
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
}

@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%;
    }
334
335
336
337
338
339
340
341
342
343
344
345
    .dynare_home_page_support_column {
        flex: 100%;
        max-width: 100%;
    }
    .dynare_home_page_support_column_cepremap {
        flex: 100%;
        max-width: 100%;
    }
    .dynare_home_page_support_column_cepremap_filler {
        flex: 0%;
        max-width: 0%;
    }
Houtan Bastani's avatar
Houtan Bastani committed
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
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
}


// *************
// 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;
429
    margin-left: $download-link-indent - 10px;
Houtan Bastani's avatar
Houtan Bastani committed
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
}
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 {
458
    text-indent: $download-link-indent;
Houtan Bastani's avatar
Houtan Bastani committed
459
460
461
462
    font-family: $monospace !important;
}

p.indent {
463
464
465
466
467
    padding-left: $download-link-indent;
}

ul.resources {
    padding-left: $download-link-indent + 20px !important;
Houtan Bastani's avatar
Houtan Bastani committed
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
}

// *****************
// 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%;
    }
}
502
503
504
505
506

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


.dynare_home_page_image_container {
510
511
512
513
514
515
    background-image: url(/assets/images/logo/dbkgd.png);
    background-repeat: no-repeat;
    background-size: 400px;
    width: 400px;
    height: 174px;
    margin: auto;
516
517
518
}

.dynare_home_page_slogan {
519
520
    padding-left: 14px;
    position: relative;
521
522
523
524
    top: 93%;
    left: 51%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
525
    font-weight: 500;
526
527
528
    margin: auto;
}

529
530
531
532
533
534
@media screen and (max-width: 500px) {
    .dynare_home_page_image_container {
        background-size: 250px;
        width: 250px;
        height: 109px;
        flex: 100%;
535
536
537
538
    }
}

@media screen and (max-width: 200px) {
539
540
541
542
543
    .dynare_home_page_image_container {
        background-size: 175px;
        width: 175px;
        height: 125px;
        flex: 100%;
544
545
    }
}