]>
Commit | Line | Data |
---|---|---|
fa12eacc | 1 | @use 'sass:math'; |
6f03f944 | 2 | @use 'sass:color'; |
9b8a7aa8 | 3 | |
8ff3f883 C |
4 | $small-view: 800px; |
5 | $mobile-view: 500px; | |
6 | ||
8a8e02a4 | 7 | $main-fonts: 'Source Sans Pro', sans-serif; |
b33f657c C |
8 | $font-regular: 400; |
9 | $font-semibold: 600; | |
10 | $font-bold: 700; | |
26171379 | 11 | $line-height-normal: 1.2; |
b33f657c | 12 | |
457bb213 C |
13 | $grey-background-color: #E5E5E5; |
14 | $grey-background-hover-color: #EFEFEF; | |
15 | $grey-foreground-color: #585858; | |
16 | $grey-foreground-hover-color: #303030; | |
6f03f944 | 17 | $grey-button-outline-color: color.scale($grey-foreground-color, $alpha: -95%); |
457bb213 | 18 | |
680b5496 | 19 | $main-color: hsl(24, 90%, 50%); |
680b5496 | 20 | $main-color-lighter: lighten($main-color, 10%); |
a6d5ff76 | 21 | $main-color-lightest: lighten($main-color, 40%); |
6f03f944 | 22 | $main-color-very-light: #fff5eb; |
b788e691 | 23 | |
60c35932 | 24 | $main-hover-color: lighten($main-color, 5%); |
b788e691 | 25 | $main-background-hover-color: #e9ecef; |
60c35932 | 26 | |
0240da5c RK |
27 | $support-button: inherit; |
28 | $support-button-heart: #e83e8c; | |
2fcc2294 | 29 | |
769ac6c1 | 30 | $bg-color: #fff; |
e10c936b | 31 | $fg-color: #212529; |
41a676db C |
32 | |
33 | $red: #FF0000; | |
34 | $green: #39CC0B; | |
383bfc83 | 35 | |
22a16e36 C |
36 | $grey-actor-name: #777272; |
37 | ||
c30745f3 | 38 | $expanded-horizontal-margins: 150px; |
0f7407d9 | 39 | $not-expanded-horizontal-margins: 30px; |
c30745f3 | 40 | |
5b0ec7cd | 41 | $button-font-size: 15px; |
b33f657c | 42 | |
b33f657c | 43 | $header-height: 50px; |
383bfc83 | 44 | $header-border-color: #e9eff6; |
26c6ee80 C |
45 | $search-input-width: 375px; |
46 | ||
9a0fc840 | 47 | $menu-background: #000; |
26c6ee80 C |
48 | $menu-color: #fff; |
49 | $menu-width: 240px; | |
35c29307 | 50 | $menu-lateral-padding: 26px; |
26c6ee80 | 51 | |
218f730c | 52 | $sub-menu-background-color: #F7F7F7; |
ed5bb517 | 53 | $sub-menu-height: 81px; |
9a0fc840 | 54 | |
60c35932 | 55 | $channel-background-color: #f6ede8; |
cdeddff1 | 56 | |
02b2e482 | 57 | $banner-inverted-ratio: math.div(1, 6); |
cdeddff1 | 58 | |
900f7820 | 59 | $max-channels-width: 1200px; |
60c35932 | 60 | |
efbf0ed7 C |
61 | $footer-height: 30px; |
62 | $footer-margin: 30px; | |
63 | ||
931d3430 | 64 | $separator-border-color: rgba(0, 0, 0, 0.1); |
f0a39880 | 65 | |
435258ea | 66 | $video-miniature-margin-bottom: 15px; |
4429a4a6 C |
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 | ||
0f7407d9 C |
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; | |
054a103b | 80 | |
432e7ddc | 81 | $theater-bottom-space: 115px; |
9a0fc840 | 82 | |
3bf07dd8 | 83 | $input-foreground-color: $fg-color; |
db6d617d | 84 | $input-background-color: $bg-color; |
9a0fc840 | 85 | $input-placeholder-color: #898989; |
bffee1d5 | 86 | $input-border-color: #C6C6C6; |
9a0fc840 | 87 | |
3bf07dd8 | 88 | $textarea-foreground-color: $fg-color; |
f33dc6ab C |
89 | $textarea-background-color: $bg-color; |
90 | $markdown-textarea-background-color: $grey-background-hover-color; | |
b15fe00f | 91 | |
bce47964 | 92 | $sub-menu-margin-bottom: 30px; |
4682468d | 93 | $sub-menu-margin-bottom-small-view: 10px; |
bce47964 | 94 | |
e10c936b | 95 | $activated-action-button-color: #212529; |
0240da5c | 96 | |
6a4c30de | 97 | $focus-box-shadow-form: 0 0 0 .2rem; |
5b0ec7cd C |
98 | $form-input-font-size: 15px; |
99 | $form-input-line-height: 1.4; | |
6a4c30de | 100 | |
b0c43e36 C |
101 | $video-watch-player-factor: math.div(16, 9); |
102 | $video-watch-info-margin-left: 44px; | |
103 | ||
d94b8ecf C |
104 | $primeng-breakpoint: 960px; |
105 | ||
9a0fc840 RK |
106 | /*** map theme ***/ |
107 | ||
108 | // pass variables into a sass map, | |
109 | // to be warned of non-existing variables | |
110 | $variables: ( | |
111 | --mainColor: var(--mainColor), | |
d3217560 | 112 | --mainColorLighter: var(--mainColorLighter), |
a6d5ff76 | 113 | --mainColorLightest: var(--mainColorLightest), |
6f03f944 | 114 | --mainColorVeryLight: var(--mainColorVeryLight), |
17119e4a | 115 | |
9a0fc840 | 116 | --mainHoverColor: var(--mainHoverColor), |
b788e691 | 117 | --mainBackgroundHoverColor: var(--mainBackgroundHoverColor), |
17119e4a | 118 | |
9a0fc840 RK |
119 | --mainBackgroundColor: var(--mainBackgroundColor), |
120 | --mainForegroundColor: var(--mainForegroundColor), | |
17119e4a | 121 | |
c123027f | 122 | --greyForegroundColor: var(--greyForegroundColor), |
441e453a | 123 | --greyBackgroundColor: var(--greyBackgroundColor), |
b788e691 | 124 | --greySecondaryBackgroundColor: var(--greySecondaryBackgroundColor), |
c123027f | 125 | |
1d9d9cfd RK |
126 | --menuBackgroundColor: var(--menuBackgroundColor), |
127 | --menuForegroundColor: var(--menuForegroundColor), | |
60c35932 | 128 | |
218f730c | 129 | --submenuBackgroundColor: var(--submenuBackgroundColor), |
60c35932 | 130 | --channelBackgroundColor: var(--channelBackgroundColor), |
2fcc2294 | 131 | |
3bf07dd8 | 132 | --inputForegroundColor: var(--inputForegroundColor), |
14aa8556 | 133 | --inputBackgroundColor: var(--inputBackgroundColor), |
5efab546 | 134 | --inputPlaceholderColor: var(--inputPlaceholderColor), |
a3345972 | 135 | --inputBorderColor: var(--inputBorderColor), |
2fcc2294 | 136 | |
3bf07dd8 | 137 | --textareaForegroundColor: var(--textareaForegroundColor), |
b15fe00f | 138 | --textareaBackgroundColor: var(--textareaBackgroundColor), |
f33dc6ab | 139 | --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor), |
b15fe00f | 140 | |
0240da5c | 141 | --actionButtonColor: var(--actionButtonColor), |
5f57df54 C |
142 | --activatedActionButtonColor: var(--activatedActionButtonColor), |
143 | ||
2fcc2294 C |
144 | --supportButtonColor: var(--supportButtonColor), |
145 | --supportButtonBackgroundColor: var(--supportButtonBackgroundColor), | |
0240da5c | 146 | --supportButtonHeartColor: var(--supportButtonHeartColor), |
2fcc2294 | 147 | |
5efab546 | 148 | --embedForegroundColor: var(--embedForegroundColor), |
d7941370 C |
149 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor), |
150 | ||
151 | --horizontalMarginContent: var(--horizontalMarginContent), | |
0f7407d9 | 152 | --videosHorizontalMarginContent: var(--videosHorizontalMarginContent), |
d7941370 | 153 | --mainColWidth: var(--mainColWidth) |
9a0fc840 RK |
154 | ); |
155 | ||
d7941370 | 156 | // SASS type check our CSS variables |
e66883b3 | 157 | @function pvar($variable) { |
d7941370 C |
158 | @if map-has-key($variables, $variable) { |
159 | @return map-get($variables, $variable); | |
160 | } @else { | |
931d3430 | 161 | @error 'ERROR: Variable #{$variable} does not exist'; |
d7941370 | 162 | } |
9a0fc840 | 163 | } |
36f2981f RK |
164 | |
165 | /*** z-index groups ***/ | |
166 | ||
167 | $zindex: ( | |
d6eace77 | 168 | miniature : 10, |
d6eace77 | 169 | sub-menu : 12500, |
43599029 | 170 | overlay : 12550, |
d6eace77 C |
171 | menu : 12600, |
172 | search-typeahead: 12650, | |
d6eace77 C |
173 | popover : 13000, |
174 | tooltip : 14000, | |
175 | loadbar : 15000, | |
43599029 | 176 | privacymsg : 17500, |
ace01da3 | 177 | root-header : 17500, |
73114c10 C |
178 | help-popover : 17600, |
179 | dropdown : 17600, | |
42d73f1c | 180 | modal : 19000, |
3e3b360c C |
181 | hotkeys : 19000, |
182 | notification : 20000 | |
36f2981f RK |
183 | ); |
184 | ||
185 | @function z($label) { | |
186 | @return map-get($zindex, $label); | |
187 | } |