-
Notifications
You must be signed in to change notification settings - Fork 4
/
stylesheet.scss
71 lines (61 loc) · 1.19 KB
/
stylesheet.scss
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$dark: #333;
$light: #fff;
:root {
font-size: 25vmin;
font-family: 'Roboto', sans-serif;
width: 100%;
height: 100%;
}
body {
margin: 0;
display: flex;
justify-content: space-around;
align-items: center;
height: 100%;
background-color: $light;
color: $dark;
transition: all 0.15s ease-out;
&.dark-theme {
background-color: $dark;
color: $light;
}
}
#change-theme-btn {
font: inherit;
padding: 0.1em 0.25em;
border: 0;
outline: 0;
color: $light;
cursor: pointer;
transition: all 0.15s ease-out;
position: relative;
background-color: transparent;
overflow: hidden;
&::before, &::after {
content: '';
z-index: -1;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: $dark;
transition: all 0.15s ease-out;
}
&::after {
background-color: $light;
left: 100%;
}
&:hover {
text-decoration: underline;
}
.dark-theme & {
color: $dark;
&::before {
left: -100%;
}
&::after {
left: 0;
}
}
}