]>
Commit | Line | Data |
---|---|---|
1 | @use 'sass:math'; | |
2 | ||
3 | $small-view: 800px; | |
4 | $mobile-view: 500px; | |
5 | ||
6 | $main-fonts: 'Source Sans Pro', sans-serif; | |
7 | $font-regular: 400; | |
8 | $font-semibold: 600; | |
9 | $font-bold: 700; | |
10 | $line-height-normal: 1.2; | |
11 | ||
12 | $grey-background-color: #E5E5E5; | |
13 | $grey-background-hover-color: #EFEFEF; | |
14 | $grey-foreground-color: #585858; | |
15 | $grey-foreground-hover-color: #303030; | |
16 | $grey-button-outline-color: scale-color($grey-foreground-color, $alpha: -95%); | |
17 | ||
18 | $main-color: hsl(24, 90%, 50%); | |
19 | $main-color-lighter: lighten($main-color, 10%); | |
20 | $main-color-lightest: lighten($main-color, 40%); | |
21 | $main-hover-color: lighten($main-color, 5%); | |
22 | ||
23 | $secondary-color: hsl(187, 77%, 34%); | |
24 | ||
25 | $support-button: inherit; | |
26 | $support-button-heart: #e83e8c; | |
27 | ||
28 | $bg-color: #fff; | |
29 | $fg-color: #000; | |
30 | ||
31 | $red: #FF0000; | |
32 | $green: #39CC0B; | |
33 | ||
34 | $grey-actor-name: #777272; | |
35 | ||
36 | $expanded-horizontal-margins: 150px; | |
37 | $not-expanded-horizontal-margins: 30px; | |
38 | ||
39 | $button-height: 30px; | |
40 | ||
41 | $header-height: 50px; | |
42 | $header-border-color: #e9eff6; | |
43 | $search-input-width: 375px; | |
44 | ||
45 | $menu-background: #000; | |
46 | $menu-color: #fff; | |
47 | $menu-bottom-color: #C6C6C6; | |
48 | $menu-width: 240px; | |
49 | $menu-lateral-padding: 26px; | |
50 | ||
51 | $sub-menu-background-color: #F7F7F7; | |
52 | $sub-menu-height: 81px; | |
53 | ||
54 | $channel-background-color: #f6ede8; | |
55 | ||
56 | // FIXME: cannot use math.div here because of compilation error | |
57 | $banner-inverted-ratio: 0.1666666666; | |
58 | ||
59 | $max-channels-width: 1200px; | |
60 | ||
61 | $footer-height: 30px; | |
62 | $footer-margin: 30px; | |
63 | ||
64 | $separator-border-color: rgba(0, 0, 0, 0.1); | |
65 | ||
66 | $video-miniature-margin-bottom: 15px; | |
67 | ||
68 | $video-miniature-row-name-font-size: 1.3em; | |
69 | $video-miniature-row-mobile-name-font-size: 14px; | |
70 | ||
71 | $video-miniature-row-info-font-size: 14px; | |
72 | $video-miniature-row-mobile-info-font-size: 12px; | |
73 | ||
74 | $video-thumbnail-height: 153px; | |
75 | $video-thumbnail-width: 280px; | |
76 | $video-thumbnail-medium-height: 114px; | |
77 | $video-thumbnail-medium-width: 201px; | |
78 | $video-thumbnail-small-height: 71px; | |
79 | $video-thumbnail-small-width: 125px; | |
80 | ||
81 | $theater-bottom-space: 115px; | |
82 | ||
83 | $input-foreground-color: $fg-color; | |
84 | $input-background-color: $bg-color; | |
85 | $input-placeholder-color: #898989; | |
86 | ||
87 | $textarea-foreground-color: $fg-color; | |
88 | $textarea-background-color: $bg-color; | |
89 | $markdown-textarea-background-color: $grey-background-hover-color; | |
90 | ||
91 | $sub-menu-margin-bottom: 30px; | |
92 | $sub-menu-margin-bottom-small-view: 10px; | |
93 | ||
94 | $activated-action-button-color: #000; | |
95 | ||
96 | $focus-box-shadow-form: 0 0 0 .2rem; | |
97 | ||
98 | $video-watch-player-factor: math.div(16, 9); | |
99 | $video-watch-info-margin-left: 44px; | |
100 | ||
101 | $primeng-breakpoint: 960px; | |
102 | ||
103 | /*** map theme ***/ | |
104 | ||
105 | // pass variables into a sass map, | |
106 | // to be warned of non-existing variables | |
107 | $variables: ( | |
108 | --mainColor: var(--mainColor), | |
109 | --mainColorLighter: var(--mainColorLighter), | |
110 | --mainColorLightest: var(--mainColorLightest), | |
111 | ||
112 | --mainHoverColor: var(--mainHoverColor), | |
113 | ||
114 | --mainBackgroundColor: var(--mainBackgroundColor), | |
115 | --mainForegroundColor: var(--mainForegroundColor), | |
116 | ||
117 | --secondaryColor: var(--secondaryColor), | |
118 | ||
119 | --greyForegroundColor: var(--greyForegroundColor), | |
120 | --greyBackgroundColor: var(--greyBackgroundColor), | |
121 | ||
122 | --menuBackgroundColor: var(--menuBackgroundColor), | |
123 | --menuForegroundColor: var(--menuForegroundColor), | |
124 | ||
125 | --submenuBackgroundColor: var(--submenuBackgroundColor), | |
126 | --channelBackgroundColor: var(--channelBackgroundColor), | |
127 | ||
128 | --inputForegroundColor: var(--inputForegroundColor), | |
129 | --inputBackgroundColor: var(--inputBackgroundColor), | |
130 | --inputPlaceholderColor: var(--inputPlaceholderColor), | |
131 | ||
132 | --textareaForegroundColor: var(--textareaForegroundColor), | |
133 | --textareaBackgroundColor: var(--textareaBackgroundColor), | |
134 | --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor), | |
135 | ||
136 | --actionButtonColor: var(--actionButtonColor), | |
137 | --activatedActionButtonColor: var(--activatedActionButtonColor), | |
138 | ||
139 | --supportButtonColor: var(--supportButtonColor), | |
140 | --supportButtonBackgroundColor: var(--supportButtonBackgroundColor), | |
141 | --supportButtonHeartColor: var(--supportButtonHeartColor), | |
142 | ||
143 | --embedForegroundColor: var(--embedForegroundColor), | |
144 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor), | |
145 | ||
146 | --horizontalMarginContent: var(--horizontalMarginContent), | |
147 | --videosHorizontalMarginContent: var(--videosHorizontalMarginContent), | |
148 | --mainColWidth: var(--mainColWidth) | |
149 | ); | |
150 | ||
151 | // SASS type check our CSS variables | |
152 | @function pvar($variable) { | |
153 | @if map-has-key($variables, $variable) { | |
154 | @return map-get($variables, $variable); | |
155 | } @else { | |
156 | @error 'ERROR: Variable #{$variable} does not exist'; | |
157 | } | |
158 | } | |
159 | ||
160 | /*** z-index groups ***/ | |
161 | ||
162 | $zindex: ( | |
163 | miniature : 10, | |
164 | sub-menu : 12500, | |
165 | overlay : 12550, | |
166 | menu : 12600, | |
167 | search-typeahead: 12650, | |
168 | popover : 13000, | |
169 | tooltip : 14000, | |
170 | loadbar : 15000, | |
171 | modal : 16000, | |
172 | dropdown : 17000, | |
173 | help-popover : 17000, | |
174 | privacymsg : 17500, | |
175 | header : 17500, | |
176 | notification : 18000, | |
177 | hotkeys : 19000 | |
178 | ); | |
179 | ||
180 | @function z($label) { | |
181 | @return map-get($zindex, $label); | |
182 | } |