|
1 | | -@use "sass:map"; |
2 | | - |
3 | | -// we should configure the global css first |
4 | | -// css specific to single pages (map or chart) should only be loaded on those pages |
5 | | -@use "svgmap-variables" with ( |
6 | | - $textColor: var(--bs-body-color), |
7 | | - $textColorLight: var(--bs-secondary-color), |
8 | | - $oceanColor: transparent, |
9 | | - $mapActiveStrokeColor: var(--bs-link-hover-color), |
10 | | - $mapControlsColor: var(--bs-body-color), |
11 | | - $mapControlsBackgroundColor: var(--bs-body-bg), |
12 | | - $mapTooltipColor: var(--bs-body-color), |
13 | | - $mapTooltipBackgroundColor: var(--bs-body-bg), |
14 | | -); |
15 | | -@use "svgmap-styles"; |
16 | | - |
17 | | -$primary: #08c; |
18 | | -$secondary: #333; |
19 | | -$dark: $secondary; |
20 | | -$light: #f6f9fc; |
21 | | -$enable-rounded: false; |
22 | | -$body-bg: $light; |
23 | | -$body-color: $dark; |
24 | | -$link-hover-color: #666; |
25 | | -$navbar-dark-hover-color: #fff; |
26 | | -$font-size-base: 0.875rem; |
27 | | -$navbar-brand-padding-y: 0.14rem; |
28 | | -$min-contrast-ratio: 3; |
29 | | -$link-decoration: none; |
30 | | -$link-hover-decoration: underline; |
31 | | -$color-mode-type: media-query; |
| 1 | +// @use rules must precede all @import rules |
| 2 | +@use "./components/country-map"; |
32 | 3 |
|
| 4 | +@import "bootstrap"; |
33 | 5 | @import "bootstrap/scss/bootstrap.scss"; |
34 | | - |
35 | | -.navbar-border-brand { |
36 | | - border-bottom: 0.313rem solid $primary; |
37 | | -} |
38 | | - |
39 | | -.progress-large { |
40 | | - height: 2em; |
41 | | -} |
42 | | - |
43 | | -pre:has(> code) { |
44 | | - background-color: var(--bs-secondary-bg); |
45 | | - color: var(--bs-secondary-color); |
46 | | - border-width: $border-width; |
47 | | - border-style: $border-style; |
48 | | - border-color: var(--bs-border-color); |
49 | | - padding: map.get($gutters, 2); |
50 | | -} |
51 | | - |
52 | | -#page { |
53 | | - position: relative; |
54 | | - min-height: 100vh; |
55 | | -} |
56 | | - |
57 | | -#content { |
58 | | - padding-bottom: 2.3rem; |
59 | | -} |
60 | | - |
61 | | -#footer { |
62 | | - position: absolute; |
63 | | - bottom: 0; |
64 | | - width: 100%; |
65 | | - height: 2.3rem; |
66 | | -} |
67 | | - |
68 | | -.code-link { |
69 | | - color: inherit; |
70 | | - |
71 | | - &:hover { |
72 | | - color: inherit; |
73 | | - } |
74 | | -} |
75 | | - |
76 | | -.chart-preview-grid { |
77 | | - display: none; |
78 | | - |
79 | | - @include media-breakpoint-up(lg) { |
80 | | - display: grid; |
81 | | - grid-template-columns: repeat(5, 1fr); |
82 | | - } |
83 | | -} |
84 | | - |
85 | | -.chart-preview-overlapping { |
86 | | - grid-row: 1 / span 2; |
87 | | - grid-column: 1 / span 3; |
88 | | - z-index: 2; |
89 | | -} |
90 | | - |
91 | | -.chart-preview-underlying { |
92 | | - grid-row: 2 / span 4; |
93 | | - grid-column: 2 / span 3; |
94 | | -} |
95 | | - |
96 | | -popularity-chart { |
97 | | - display: block; |
98 | | - aspect-ratio: auto 16 / 9; |
99 | | - |
100 | | - // prevent scroll bars during graph rendering |
101 | | - & canvas { |
102 | | - display: none; |
103 | | - } |
104 | | -} |
105 | | - |
106 | | -country-map { |
107 | | - display: block; |
108 | | - aspect-ratio: auto 2 / 1; |
109 | | -} |
110 | | - |
111 | | -swagger-ui-wrapper { |
112 | | - display: block; |
113 | | - min-height: 300px; |
114 | | -} |
| 6 | +@import "layout"; |
| 7 | +@import "overrides"; |
| 8 | +@import "fun"; |
| 9 | +@import "components/popularity-chart"; |
| 10 | +@import "components/swagger-ui-wrapper"; |
0 commit comments