-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchristmas.scss
More file actions
45 lines (44 loc) · 1.29 KB
/
Copy pathchristmas.scss
File metadata and controls
45 lines (44 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
These styles add to `main` for a christmas appearance
*/
@import '_mixins';
@import '_config';
$color-flake: rgba(255, 255, 255, 0.8);
$color-greenStripe: rgba(0, 255, 0, 0.6);
$color-greenStripeDark: rgba(0, 128, 0, 0.8);
$color-redStripe: rgba(255, 0, 0, 0.6);
$color-redStripeDark: rgba(128, 0, 0, 0.8);
$stripeWidth: 2.5em;
@supports (pointer-events: none){
.appBG{
//--get rid of app bg when christmas styles displayed
display: none;
}
body{
background-color: map-get($colors, 'baseBG');
background-image: repeating-linear-gradient(125deg, $color-redStripe, $color-redStripe $stripeWidth * 1/10, $color-greenStripe $stripeWidth / 2, $color-greenStripe $stripeWidth * 3/5, $color-redStripe $stripeWidth);
@include supports('dark-theme'){
background-image: repeating-linear-gradient(125deg, $color-redStripeDark, $color-redStripeDark $stripeWidth * 1/10, $color-greenStripeDark $stripeWidth / 2, $color-greenStripeDark $stripeWidth * 3/5, $color-redStripeDark $stripeWidth);
}
}
.snow{
height: 100%;
left: 0;
pointer-events: none;
position: fixed;
top: 0;
width: 100%;
z-index: 9999;
}
.snow-html .snowFlake{
background: $color-flake;
display: inline-block;
border-radius: 50%;
left: 0;
position: absolute;
top: 0;
}
.snow-svg .snowFlake{
fill: $color-flake;
}
}