]>
Commit | Line | Data |
---|---|---|
fa12eacc | 1 | @use 'sass:math'; |
4c8749cb | 2 | @use '~bootstrap/scss/functions' as *; |
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; | |
a6d5ff76 | 17 | $grey-button-outline-color: scale-color($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%); |
b788e691 | 22 | |
60c35932 | 23 | $main-hover-color: lighten($main-color, 5%); |
b788e691 | 24 | $main-background-hover-color: #e9ecef; |
60c35932 | 25 | |
72aa835e | 26 | $secondary-color: hsl(187, 77%, 34%); |
aa0f1963 | 27 | |
0240da5c RK |
28 | $support-button: inherit; |
29 | $support-button-heart: #e83e8c; | |
2fcc2294 | 30 | |
769ac6c1 RK |
31 | $bg-color: #fff; |
32 | $fg-color: #000; | |
41a676db C |
33 | |
34 | $red: #FF0000; | |
35 | $green: #39CC0B; | |
383bfc83 | 36 | |
22a16e36 C |
37 | $grey-actor-name: #777272; |
38 | ||
c30745f3 | 39 | $expanded-horizontal-margins: 150px; |
0f7407d9 | 40 | $not-expanded-horizontal-margins: 30px; |
c30745f3 | 41 | |
b33f657c C |
42 | $button-height: 30px; |
43 | ||
b33f657c | 44 | $header-height: 50px; |
383bfc83 | 45 | $header-border-color: #e9eff6; |
26c6ee80 C |
46 | $search-input-width: 375px; |
47 | ||
9a0fc840 | 48 | $menu-background: #000; |
26c6ee80 | 49 | $menu-color: #fff; |
8afc19a6 | 50 | $menu-bottom-color: #C6C6C6; |
26c6ee80 | 51 | $menu-width: 240px; |
35c29307 | 52 | $menu-lateral-padding: 26px; |
26c6ee80 | 53 | |
218f730c | 54 | $sub-menu-background-color: #F7F7F7; |
ed5bb517 | 55 | $sub-menu-height: 81px; |
9a0fc840 | 56 | |
60c35932 | 57 | $channel-background-color: #f6ede8; |
cdeddff1 | 58 | |
02b2e482 | 59 | $banner-inverted-ratio: math.div(1, 6); |
cdeddff1 | 60 | |
900f7820 | 61 | $max-channels-width: 1200px; |
60c35932 | 62 | |
efbf0ed7 C |
63 | $footer-height: 30px; |
64 | $footer-margin: 30px; | |
65 | ||
931d3430 | 66 | $separator-border-color: rgba(0, 0, 0, 0.1); |
f0a39880 | 67 | |
435258ea | 68 | $video-miniature-margin-bottom: 15px; |
4429a4a6 C |
69 | |
70 | $video-miniature-row-name-font-size: 1.3em; | |
71 | $video-miniature-row-mobile-name-font-size: 14px; | |
72 | ||
73 | $video-miniature-row-info-font-size: 14px; | |
74 | $video-miniature-row-mobile-info-font-size: 12px; | |
75 | ||
0f7407d9 C |
76 | $video-thumbnail-height: 153px; |
77 | $video-thumbnail-width: 280px; | |
78 | $video-thumbnail-medium-height: 114px; | |
79 | $video-thumbnail-medium-width: 201px; | |
80 | $video-thumbnail-small-height: 71px; | |
81 | $video-thumbnail-small-width: 125px; | |
054a103b | 82 | |
432e7ddc | 83 | $theater-bottom-space: 115px; |
9a0fc840 | 84 | |
3bf07dd8 | 85 | $input-foreground-color: $fg-color; |
db6d617d | 86 | $input-background-color: $bg-color; |
9a0fc840 RK |
87 | $input-placeholder-color: #898989; |
88 | ||
3bf07dd8 | 89 | $textarea-foreground-color: $fg-color; |
f33dc6ab C |
90 | $textarea-background-color: $bg-color; |
91 | $markdown-textarea-background-color: $grey-background-hover-color; | |
b15fe00f | 92 | |
bce47964 | 93 | $sub-menu-margin-bottom: 30px; |
4682468d | 94 | $sub-menu-margin-bottom-small-view: 10px; |
bce47964 | 95 | |
931d3430 | 96 | $activated-action-button-color: #000; |
0240da5c | 97 | |
6a4c30de RK |
98 | $focus-box-shadow-form: 0 0 0 .2rem; |
99 | ||
b0c43e36 C |
100 | $video-watch-player-factor: math.div(16, 9); |
101 | $video-watch-info-margin-left: 44px; | |
102 | ||
d94b8ecf C |
103 | $primeng-breakpoint: 960px; |
104 | ||
9a0fc840 RK |
105 | /*** map theme ***/ |
106 | ||
107 | // pass variables into a sass map, | |
108 | // to be warned of non-existing variables | |
109 | $variables: ( | |
110 | --mainColor: var(--mainColor), | |
d3217560 | 111 | --mainColorLighter: var(--mainColorLighter), |
a6d5ff76 | 112 | --mainColorLightest: var(--mainColorLightest), |
17119e4a | 113 | |
9a0fc840 | 114 | --mainHoverColor: var(--mainHoverColor), |
b788e691 | 115 | --mainBackgroundHoverColor: var(--mainBackgroundHoverColor), |
17119e4a | 116 | |
9a0fc840 RK |
117 | --mainBackgroundColor: var(--mainBackgroundColor), |
118 | --mainForegroundColor: var(--mainForegroundColor), | |
17119e4a | 119 | |
aa0f1963 | 120 | --secondaryColor: var(--secondaryColor), |
2fcc2294 | 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), |
2fcc2294 | 135 | |
3bf07dd8 | 136 | --textareaForegroundColor: var(--textareaForegroundColor), |
b15fe00f | 137 | --textareaBackgroundColor: var(--textareaBackgroundColor), |
f33dc6ab | 138 | --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor), |
b15fe00f | 139 | |
0240da5c | 140 | --actionButtonColor: var(--actionButtonColor), |
5f57df54 C |
141 | --activatedActionButtonColor: var(--activatedActionButtonColor), |
142 | ||
2fcc2294 C |
143 | --supportButtonColor: var(--supportButtonColor), |
144 | --supportButtonBackgroundColor: var(--supportButtonBackgroundColor), | |
0240da5c | 145 | --supportButtonHeartColor: var(--supportButtonHeartColor), |
2fcc2294 | 146 | |
5efab546 | 147 | --embedForegroundColor: var(--embedForegroundColor), |
d7941370 C |
148 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor), |
149 | ||
150 | --horizontalMarginContent: var(--horizontalMarginContent), | |
0f7407d9 | 151 | --videosHorizontalMarginContent: var(--videosHorizontalMarginContent), |
d7941370 | 152 | --mainColWidth: var(--mainColWidth) |
9a0fc840 RK |
153 | ); |
154 | ||
d7941370 | 155 | // SASS type check our CSS variables |
e66883b3 | 156 | @function pvar($variable) { |
d7941370 C |
157 | @if map-has-key($variables, $variable) { |
158 | @return map-get($variables, $variable); | |
159 | } @else { | |
931d3430 | 160 | @error 'ERROR: Variable #{$variable} does not exist'; |
d7941370 | 161 | } |
9a0fc840 | 162 | } |
36f2981f RK |
163 | |
164 | /*** z-index groups ***/ | |
165 | ||
166 | $zindex: ( | |
d6eace77 | 167 | miniature : 10, |
d6eace77 | 168 | sub-menu : 12500, |
43599029 | 169 | overlay : 12550, |
d6eace77 C |
170 | menu : 12600, |
171 | search-typeahead: 12650, | |
d6eace77 C |
172 | popover : 13000, |
173 | tooltip : 14000, | |
174 | loadbar : 15000, | |
8b57efbf | 175 | dropdown : 17000, |
d6eace77 | 176 | help-popover : 17000, |
43599029 | 177 | privacymsg : 17500, |
09f7837d | 178 | header : 17500, |
d6eace77 | 179 | notification : 18000, |
42d73f1c | 180 | modal : 19000, |
d6eace77 | 181 | hotkeys : 19000 |
36f2981f RK |
182 | ); |
183 | ||
184 | @function z($label) { | |
185 | @return map-get($zindex, $label); | |
186 | } |