-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathstyle.css
104 lines (89 loc) · 1.38 KB
/
style.css
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
* {
margin: 0;
padding: 0;
box-sizing: border-box;
transition: 0.2s ease-in-out;
}
body {
background-color: var(--bg);
color: var(--fg);
font-family: sans;
line-height: 1.5;
}
.body-dark {
--bg: #2f3846;
--bg-alt: #3e4755;
--fg: #f0f0f0;
--fg-alt: #fff;
--primary: #95e1d3;
}
.body-light {
--bg: #eee;
--bg-alt: #fff;
--fg: #444;
--fg-alt: #222;
--primary: #126e82;
}
.fas {
font-size: 1.5rem;
}
.fas:hover {
color: var(--primary);
}
.btn-theme {
position: absolute;
right: 0;
margin: 1.5em;
cursor: pointer;
}
main {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 13em;
height: 14em;
margin: 0 3em;
border-radius: 1em;
box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.2);
background-color: var(--bg-alt);
}
.container:hover {
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.container h2 {
font-size: 1.2rem;
text-transform: uppercase;
margin-bottom: 0.5em;
color: var(--fg-alt);
}
.container a {
text-decoration: none;
color: var(--fg);
}
.container a:hover {
color: var(--primary);
}
@media (max-width: 880px) {
.container {
margin: 0 1em;
}
}
@media (max-width: 620px) {
.container {
width: 100%;
padding: 0.5em;
margin: 0;
border-radius: 0;
box-shadow: none;
}
.container:hover {
box-shadow: none;
}
}