@@ -5,6 +5,7 @@ $themes: (
55 colorAccentReverse : $color-blue-original-light ,
66 colorWhite : $color-white ,
77 backgroundColor : $color-background-off-white ,
8+ backgroundColorEmphasis : $color-background-almost-white ,
89 backgroundColorOpaque : $color-background-off-white ,
910 backgroundTransparent : transparent ,
1011 moduleBackgroundColor : $color-white ,
@@ -30,15 +31,16 @@ $themes: (
3031 buttonText : $color-text-white ,
3132 buttonTextShadow : 0 1px 0 rgba (0 ,0 ,0 ,0.20 ),
3233 buttonTextHover : $color-text-white ,
33- buttonBoxShadow : $color-transparent ,
34+ buttonBoxShadow : $color-transparent ,
3435 ),
3536 light : (
3637 colorAccent : $color-teal ,
3738 colorAccentHover : $color-teal-dark ,
3839 colorAccentReverse : $color-blue-black ,
3940 colorWhite : $color-white ,
4041 backgroundColor : $color-background-off-white ,
41- backgroundColorOpaque : $color-background-off-white ,
42+ backgroundColorEmphasis : $color-background-almost-white ,
43+ backgroundColorOpaque : $color-background-off-white ,
4244 backgroundTransparent : transparent ,
4345 moduleBackgroundColor : $color-white ,
4446 menuBackgroundColor : $color-background-dark ,
@@ -54,8 +56,8 @@ $themes: (
5456 iconColorSecondary : #cacaca ,
5557 textColorPrimary : $color-text-dark ,
5658 textColorSecondary : $color-text-gray ,
57- textColorAccent : $color-text-teal ,
58- textColorAccentHover : $color-teal ,
59+ textColorAccent : $color-text-teal ,
60+ textColorAccentHover : $color-teal ,
5961 textColorError : $color-text-red ,
6062 contentBorderAccent : $color-teal ,
6163 buttonBackground : $color-blue-black ,
@@ -64,14 +66,15 @@ $themes: (
6466 buttonTextShadow : 0 1px 0 rgba (0 ,0 ,0 ,0.20 ),
6567 buttonTextHover : $color-white ,
6668 buttonBoxShadow : $color-teal ,
67- buttonBoxShadowHover : $color-blue-black ,
69+ buttonBoxShadowHover : $color-blue-black ,
6870 ),
6971 dark : (
7072 colorAccent : $color-teal ,
7173 colorAccentHover : $color-teal ,
7274 colorAccentReverse : $color-white ,
7375 colorWhite : $color-white ,
7476 backgroundColor : $color-background-dark ,
77+ backgroundColorEmphasis : $color-background-super-dark ,
7578 backgroundColorOpaque : $color-blue-dark ,
7679 moduleBackgroundColor : $color-background-dark ,
7780 backgroundTransparent : transparent ,
@@ -125,74 +128,74 @@ $themes: (
125128
126129
127130 .theme-original {
128- background-color : $white ;
131+ background-color : $white ;
129132 color : $color-text-dark ;
130133 @include MQ (M) {
131- background-color : $color-background-off-white ;
134+ background-color : $color-background-off-white ;
132135 }
133136 }
134137 .theme-light {
135- background-color : $white ;
138+ background-color : $white ;
136139 color : $color-text-dark ;
137140 @include MQ (M) {
138- background-color : $color-background-off-white ;
139- }
141+ background-color : $color-background-off-white ;
142+ }
140143 }
141144 .theme-dark {
142- background-color : $color-background-dark ;
145+ background-color : $color-background-dark ;
143146 color : $color-text-white ;
144147 }
145148
146149
147- // Utility classes to be used with @extend
150+ // Utility classes to be used with @extend
148151
149152.link {
150153 text-decoration : none ;
151154 transition : 0.2s all ease-in-out ;
152155 & --primary {
153156 @include themify ($themes ) {
154- color : themed (' textColorPrimary' );
157+ color : themed (' textColorPrimary' );
155158 }
156159 & :visited , & :active {
157160 @include themify ($themes ) {
158- color : themed (' textColorPrimary' );
159- }
160- }
161+ color : themed (' textColorPrimary' );
162+ }
163+ }
161164 & :hover , & :focus {
162165 @include themify ($themes ) {
163- color : themed (' textColorAccent' );
164- }
166+ color : themed (' textColorAccent' );
167+ }
165168 }
166169 }
167170 & --secondary {
168171 @include themify ($themes ) {
169- color : themed (' textColorSecondary' );
172+ color : themed (' textColorSecondary' );
170173 }
171174 & :visited , & :active {
172175 @include themify ($themes ) {
173- color : themed (' textColorSecondary' );
174- }
175- }
176+ color : themed (' textColorSecondary' );
177+ }
178+ }
176179 & :hover , & :focus {
177180 @include themify ($themes ) {
178- color : themed (' textColorAccent' );
179- }
180- }
181+ color : themed (' textColorAccent' );
182+ }
183+ }
181184 }
182185 & --accent {
183186 @include themify ($themes ) {
184- color : themed (' textColorAccent' );
187+ color : themed (' textColorAccent' );
185188 }
186189 & :visited , & :active {
187190 @include themify ($themes ) {
188- color : themed (' textColorAccent' );
189- }
190- }
191+ color : themed (' textColorAccent' );
192+ }
193+ }
191194 & :hover , & :focus {
192195 @include themify ($themes ) {
193- color : themed (' textColorAccentHover' );
194- }
195- }
196+ color : themed (' textColorAccentHover' );
197+ }
198+ }
196199 }
197200}
198201
@@ -201,15 +204,15 @@ $themes: (
201204 transition : 0.2s all ease-in-out ;
202205 box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 );
203206 @include themify ($themes ) {
204- border : themed (' borderAccent' );
205- color : themed (' textColorAccent' );
206- }
207+ border : themed (' borderAccent' );
208+ color : themed (' textColorAccent' );
209+ }
207210 & :hover {
208211 @include themify ($themes ) {
209- border : themed (' borderDark' );
210- color : themed (' textColorPrimary' );
211- }
212- }
212+ border : themed (' borderDark' );
213+ color : themed (' textColorPrimary' );
214+ }
215+ }
213216}
214217
215218.e-btn {
@@ -220,76 +223,76 @@ $themes: (
220223 border-radius : 0 ;
221224 text-decoration : none ;
222225 text-transform : capitalize ;
223- @include font-size (18px );
226+ @include font-size (18px );
224227 @include themify ($themes ) {
225- background-color : themed (' buttonBackground' );
226- box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 ), 5px 5px 0 0 themed (' buttonBoxShadow' );
228+ background-color : themed (' buttonBackground' );
229+ box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 ), 5px 5px 0 0 themed (' buttonBoxShadow' );
227230 color : themed (' buttonText' );
228231 }
229232 & :hover , & :focus {
230233 @include themify ($themes ) {
231- background-color : themed (' buttonBackgroundHover' );
232- box-shadow : 2px 2px 2px 0 rgba (0 ,0 ,0 ,0.1 ), 7px 7px 0 0 themed (' buttonBoxShadowHover' );
234+ background-color : themed (' buttonBackgroundHover' );
235+ box-shadow : 2px 2px 2px 0 rgba (0 ,0 ,0 ,0.1 ), 7px 7px 0 0 themed (' buttonBoxShadowHover' );
233236 color : themed (' buttonTextHover' );
234237 text-shadow : themed (' buttonTextShadow' );
235238 }
236239 }
237240 & :visited , & :active {
238241 @include themify ($themes ) {
239- color : themed (' buttonText' );
242+ color : themed (' buttonText' );
240243 }
241244 & :hover , & :focus {
242245 @include themify ($themes ) {
243- color : themed (' buttonTextHover' );
246+ color : themed (' buttonTextHover' );
244247 }
245- }
246- }
248+ }
249+ }
247250}
248251
249252.button.disabled , .button [disabled ] {
250253 opacity : 0.25 ;
251254 cursor : not-allowed ;
252255 box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 );
253256 @include themify ($themes ) {
254- background-color : themed (' buttonBackground' );
257+ background-color : themed (' buttonBackground' );
255258 box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 );
256259 color : themed (' buttonText' );
257- }
260+ }
258261 & :hover {
259262 @include themify ($themes ) {
260- background-color : themed (' buttonBackground' );
263+ background-color : themed (' buttonBackground' );
261264 box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 );
262265 color : themed (' buttonText' );
263- }
266+ }
264267 }
265268}
266269
267270// This button class doesn't applying theming (just straight styles). To be used when there are no theming classes available (e.g. in modals and static server pages in signup)
268271
269- .e-btn {
272+ .e-btn {
270273 & --black {
271274 background-color : $color-blue-black ;
272- box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 ), 5px 5px 0 0 $color-teal ;
275+ box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 ), 5px 5px 0 0 $color-teal ;
273276 color : $color-white ;
274277 & :hover , & :focus {
275278 background-color : $color-teal ;
276- box-shadow : 2px 2px 2px 0 rgba (0 ,0 ,0 ,0.1 ), 7px 7px 0 0 $color-blue-black ;
279+ box-shadow : 2px 2px 2px 0 rgba (0 ,0 ,0 ,0.1 ), 7px 7px 0 0 $color-blue-black ;
277280 color : $color-white ;
278281 text-shadow : 0 1px 0 rgba (0 ,0 ,0 ,0.20 );
279282 }
280283 & :visited , & :active {
281284 background-color : $color-blue-black ;
282- box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 ), 5px 5px 0 0 $color-teal ;
285+ box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 ), 5px 5px 0 0 $color-teal ;
283286 color : $color-white ;
284- }
287+ }
285288 & .disabled , & [disabled ] {
286289 opacity : 0.25 ;
287290 cursor : not-allowed ;
288291 box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 );
289292 & :hover , & :focus {
290293 box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 );
291294 background-color : $color-blue-black ;
292- color : $color-white ;
295+ color : $color-white ;
293296 }
294297 }
295298 & .hollow {
@@ -303,15 +306,15 @@ $themes: (
303306 background-color : transparent ;
304307 box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 );
305308 color : $color-blue-dark ;
306- font-weight : normal ;
309+ font-weight : normal ;
307310 text-shadow : 0 1px 0 rgba (0 ,0 ,0 ,0.0 );
308311 }
309312 & :visited , & :active {
310313 background-color : transparent ;
311314 box-shadow : 0px 0px 0px 0 rgba (0 ,0 ,0 ,0 );
312315 color : $color-text-gray ;
313316 font-weight : normal ;
314- }
317+ }
315318 }
316319 }
317320}
0 commit comments