]>
Commit | Line | Data |
---|---|---|
1 | @import '_bootstrap-variables'; | |
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 | $banner-inverted-ratio: 1/6; | |
57 | ||
58 | $max-channels-width: 1200px; | |
59 | ||
60 | $footer-height: 30px; | |
61 | $footer-margin: 30px; | |
62 | ||
63 | $separator-border-color: rgba(0, 0, 0, 0.10); | |
64 | ||
65 | $video-miniature-margin-bottom: 15px; | |
66 | ||
67 | $video-miniature-row-name-font-size: 1.3em; | |
68 | $video-miniature-row-mobile-name-font-size: 14px; | |
69 | ||
70 | $video-miniature-row-info-font-size: 14px; | |
71 | $video-miniature-row-mobile-info-font-size: 12px; | |
72 | ||
73 | $video-thumbnail-height: 153px; | |
74 | $video-thumbnail-width: 280px; | |
75 | $video-thumbnail-medium-height: 114px; | |
76 | $video-thumbnail-medium-width: 201px; | |
77 | $video-thumbnail-small-height: 71px; | |
78 | $video-thumbnail-small-width: 125px; | |
79 | ||
80 | $theater-bottom-space: 115px; | |
81 | ||
82 | $input-foreground-color: $fg-color; | |
83 | $input-background-color: $bg-color; | |
84 | $input-placeholder-color: #898989; | |
85 | ||
86 | $textarea-foreground-color: $fg-color; | |
87 | $textarea-background-color: $bg-color; | |
88 | $markdown-textarea-background-color: $grey-background-hover-color; | |
89 | ||
90 | $sub-menu-margin-bottom: 30px; | |
91 | $sub-menu-margin-bottom-small-view: 10px; | |
92 | ||
93 | $activated-action-button-color: black; | |
94 | ||
95 | $focus-box-shadow-form: 0 0 0 .2rem; | |
96 | ||
97 | /*** map theme ***/ | |
98 | ||
99 | // pass variables into a sass map, | |
100 | // to be warned of non-existing variables | |
101 | $variables: ( | |
102 | --mainColor: var(--mainColor), | |
103 | --mainColorLighter: var(--mainColorLighter), | |
104 | --mainColorLightest: var(--mainColorLightest), | |
105 | ||
106 | --mainHoverColor: var(--mainHoverColor), | |
107 | ||
108 | --mainBackgroundColor: var(--mainBackgroundColor), | |
109 | --mainForegroundColor: var(--mainForegroundColor), | |
110 | ||
111 | --secondaryColor: var(--secondaryColor), | |
112 | ||
113 | --greyForegroundColor: var(--greyForegroundColor), | |
114 | --greyBackgroundColor: var(--greyBackgroundColor), | |
115 | ||
116 | --menuBackgroundColor: var(--menuBackgroundColor), | |
117 | --menuForegroundColor: var(--menuForegroundColor), | |
118 | ||
119 | --submenuBackgroundColor: var(--submenuBackgroundColor), | |
120 | --channelBackgroundColor: var(--channelBackgroundColor), | |
121 | ||
122 | --inputForegroundColor: var(--inputForegroundColor), | |
123 | --inputBackgroundColor: var(--inputBackgroundColor), | |
124 | --inputPlaceholderColor: var(--inputPlaceholderColor), | |
125 | ||
126 | --textareaForegroundColor: var(--textareaForegroundColor), | |
127 | --textareaBackgroundColor: var(--textareaBackgroundColor), | |
128 | --markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor), | |
129 | ||
130 | --actionButtonColor: var(--actionButtonColor), | |
131 | --activatedActionButtonColor: var(--activatedActionButtonColor), | |
132 | ||
133 | --supportButtonColor: var(--supportButtonColor), | |
134 | --supportButtonBackgroundColor: var(--supportButtonBackgroundColor), | |
135 | --supportButtonHeartColor: var(--supportButtonHeartColor), | |
136 | ||
137 | --embedForegroundColor: var(--embedForegroundColor), | |
138 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor), | |
139 | ||
140 | --horizontalMarginContent: var(--horizontalMarginContent), | |
141 | --videosHorizontalMarginContent: var(--videosHorizontalMarginContent), | |
142 | --mainColWidth: var(--mainColWidth) | |
143 | ); | |
144 | ||
145 | // SASS type check our CSS variables | |
146 | @function pvar($variable) { | |
147 | @if map-has-key($variables, $variable) { | |
148 | @return map-get($variables, $variable); | |
149 | } @else { | |
150 | @error "ERROR: Variable #{$variable} does not exist"; | |
151 | } | |
152 | } | |
153 | ||
154 | /*** z-index groups ***/ | |
155 | ||
156 | $zindex: ( | |
157 | miniature : 10, | |
158 | privacymsg : 20, | |
159 | sub-menu : 12500, | |
160 | menu : 12600, | |
161 | search-typeahead: 12650, | |
162 | header : 12700, | |
163 | popover : 13000, | |
164 | tooltip : 14000, | |
165 | loadbar : 15000, | |
166 | modal : 16000, | |
167 | dropdown : 17000, | |
168 | help-popover : 17000, | |
169 | notification : 18000, | |
170 | hotkeys : 19000 | |
171 | ); | |
172 | ||
173 | @function z($label) { | |
174 | @return map-get($zindex, $label); | |
175 | } |