dynare.scss 14.1 KB
Newer Older
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
/* Generated from https://icomoon.io/app */
@font-face {
    font-family: 'icomoon';
    src:  url('/assets/fonts/icomoon/icomoon.eot?z1c3c5');
    src:  url('/assets/fonts/icomoon/icomoon.eot?z1c3c5#iefix') format('embedded-opentype'),
          url('/assets/fonts/icomoon/icomoon.ttf?z1c3c5') format('truetype'),
          url('/assets/fonts/icomoon/icomoon.woff?z1c3c5') format('woff'),
          url('/assets/fonts/icomoon/icomoon.svg?z1c3c5#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-map-marker:before {
    font-family: 'icomoon' !important;
    content: "\e912";
}
.icon-tool:before {
    font-family: 'icomoon' !important;
    content: "\e907";
}
.icon-preferences:before {
    font-family: 'icomoon' !important;
    content: "\e907";
}
.icon-book:before {
    font-family: 'icomoon' !important;
    content: "\e900";
}
.icon-document:before {
    font-family: 'icomoon' !important;
    content: "\e905";
}
.icon-document-download:before {
    font-family: 'icomoon' !important;
    content: "\e908";
}
.icon-zip:before {
    font-family: 'icomoon' !important;
    content: "\e909";
}
.icon-discourse:before {
    font-family: 'icomoon' !important;
    content: "\e906";
}
.icon-map-marker1:before {
    font-family: 'icomoon' !important;
    content: "\e913";
}
.icon-wikipedia-w:before {
    font-family: 'icomoon' !important;
    content: "\e914";
}
.icon-graduation-cap:before {
    font-family: 'icomoon' !important;
    content: "\e90b";
}
.icon-mortar-board:before {
    font-family: 'icomoon' !important;
    content: "\e90b";
}
.icon-dashboard:before {
    font-family: 'icomoon' !important;
    content: "\e901";
}
.icon-tachometer:before {
    font-family: 'icomoon' !important;
    content: "\e901";
}
.icon-external-link:before {
    font-family: 'icomoon' !important;
    content: "\e902";
}
.icon-rss-square:before {
    font-family: 'icomoon' !important;
    content: "\e903";
}
.icon-road:before {
    font-family: 'icomoon' !important;
    content: "\e904";
}
.icon-bug:before {
    font-family: 'icomoon' !important;
    content: "\e90c";
}
.icon-gitlab:before {
    font-family: 'icomoon' !important;
    content: "\e90d";
}
.icon-linux:before {
    font-family: 'icomoon' !important;
    content: "\e90e";
}
.icon-file-code-o:before {
    font-family: 'icomoon' !important;
    content: "\e90f";
}
.icon-apple:before {
    font-family: 'icomoon' !important;
    content: "\e910";
}
.icon-windows:before {
    font-family: 'icomoon' !important;
    content: "\e911";
}
120
121
122
123
124
125
126

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

Houtan Bastani's avatar
Houtan Bastani committed
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// ***********************
// OVERRIDE PARTS OF THEME
// ***********************

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 {
Houtan Bastani's avatar
Houtan Bastani committed
151
    background: $color3;
Houtan Bastani's avatar
Houtan Bastani committed
152
153
}
::-moz-selection {
Houtan Bastani's avatar
Houtan Bastani committed
154
    background: $color3;
Houtan Bastani's avatar
Houtan Bastani committed
155
}
156
157
158
159
160
161
162
163
164
165
166
167
168

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

.navicon {
    background: $color3;
}

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

169
170
171
172
.search__toggle:hover {
    color: $color3;
}

Houtan Bastani's avatar
Houtan Bastani committed
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
// ************
// 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;

188
189
$download-link-indent: 40px !default;

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

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
.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
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
.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%;
408
        max-width: 50%;
Houtan Bastani's avatar
Houtan Bastani committed
409
410
411
412
413
414
415
416
417
    }
    .dynare_home_page_about_column_header {
        flex: 33%;
        max-width: 33%;
    }
    .dynare_home_page_about_column_header_side {
        flex: 33%;
        max-width: 33%;
    }
418
419
420
421
422
423
424
425
426
427
428
429
    .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
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
}

@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%;
    }
445
446
447
448
449
450
451
452
453
454
455
456
    .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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
}


// *************
// 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 {
489
490
491
    font-family: 'icomoon' !important;
    font-weight: normal;
    margin-right: 10px;
Houtan Bastani's avatar
Houtan Bastani committed
492
493
}

494
495
496
497
label.dynare_label[for*='1']:before { content: '\e911'; }
label.dynare_label[for*='2']:before { content: '\e910'; }
label.dynare_label[for*='3']:before { content: '\e90e'; }
label.dynare_label[for*='4']:before { content: '\e90f'; }
Houtan Bastani's avatar
Houtan Bastani committed
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539

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;
540
    margin-left: $download-link-indent - 10px;
Houtan Bastani's avatar
Houtan Bastani committed
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
}
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 {
569
    text-indent: $download-link-indent;
Houtan Bastani's avatar
Houtan Bastani committed
570
571
572
573
    font-family: $monospace !important;
}

p.indent {
574
575
576
577
578
    padding-left: $download-link-indent;
}

ul.resources {
    padding-left: $download-link-indent + 20px !important;
Houtan Bastani's avatar
Houtan Bastani committed
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
}

// *****************
// 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%;
    }
}
613
614
615
616
617

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


.dynare_home_page_image_container {
621
622
623
624
625
626
    background-image: url(/assets/images/logo/dbkgd.png);
    background-repeat: no-repeat;
    background-size: 400px;
    width: 400px;
    height: 174px;
    margin: auto;
Houtan Bastani's avatar
Houtan Bastani committed
627
    text-align: center;
628
629
630
}

.dynare_home_page_slogan {
631
    position: relative;
632
    top: 93%;
Houtan Bastani's avatar
Houtan Bastani committed
633
    left: 50%;
634
635
    transform: translate(-50%, -50%);
    white-space: nowrap;
636
    font-weight: 500;
637
    margin: auto;
Houtan Bastani's avatar
Houtan Bastani committed
638
639
    padding-left: 10px;
    padding-right: 10px;
640
641
}

642
643
644
645
646
647
@media screen and (max-width: 500px) {
    .dynare_home_page_image_container {
        background-size: 250px;
        width: 250px;
        height: 109px;
        flex: 100%;
648
649
650
651
    }
}

@media screen and (max-width: 200px) {
652
653
654
655
656
    .dynare_home_page_image_container {
        background-size: 175px;
        width: 175px;
        height: 125px;
        flex: 100%;
657
658
    }
}
Houtan Bastani's avatar
Houtan Bastani committed
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679

.dynare_masthead_image_container {
    background-image: url(/assets/images/logo/dlogo.svg);
    background-repeat: no-repeat;
    background-size: 150px;
    width: 150px;
    height: 65px;
    margin: auto;
}

.dynare_masthead_image_container:hover {
    background-image: url(/assets/images/logo/dlogo_hover.svg);
    cursor: pointer;
}

.dynare_masthead_image_container_load_hover {
    background-image: url(/assets/images/logo/dlogo_hover.svg);
    background-size: 150px;
    background-position: -9999px -9999px;
    background-repeat: no-repeat;
}