-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
118 lines (102 loc) · 2.38 KB
/
styles.css
File metadata and controls
118 lines (102 loc) · 2.38 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* Sizes from https://www.metaltoad.com/blog/simple-device-diagram-responsive-design-planning */
/* Mobile Styles */
@media only screen and (max-width: 519px) {
:root {
--main-padding: 0.5rem;
--desktop: none;
}
}
/* Tablet Styles */
@media only screen and (min-width: 520px) and (max-width: 959px) {
:root {
--main-padding: 1rem;
--desktop: none;
}
}
/* Desktop Styles */
@media only screen and (min-width: 960px) {
:root {
--main-padding: 2rem;
--desktop: display;
}
}
/* Global variables */
:root {
--main-color: #ffffff;
--main-second-color: #e5e5e5;
--button-color: #ffffff;
--text-color: #000000;
--heading-text-color: #5f6368;
--global-animation: 0.2s ease-in-out;
}
/* Dark Mode enabled */
@media (prefers-color-scheme: dark) {
:root {
--main-color: #000000;
--main-second-color: #1a1a1a;
--button-color: #363636;
--text-color: #ffffff;
--heading-text-color: #e5e5e5;
}
}
* {
margin: 0;
}
body {
font-family: Roboto, sans-serif;
background-color: var(--main-second-color);
color: var(--text-color);
margin: 0;
padding: 0;
min-height: 100%;
}
header {
padding: 1rem var(--main-padding);
/* Animations */
transition: padding var(--global-animation);
}
header>h1 {
color: var(--text-color);
font-size: 2rem;
line-height: 1.5;
/* Animations */
transition: color var(--global-animation);
}
main {
margin: 0;
padding: var(--main-padding);
background-color: var(--main-color);
min-height: 70vh;
display: block;
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
/* Animations */
transition: padding var(--global-animation), background-color var(--global-animation);
}
main>section {
margin: var(--main-padding) auto;
max-width: 800px;
/* Animations */
transition: margin var(--global-animation);
}
main>section>h2 {
color: var(--heading-text-color);
font-size: 1rem;
line-height: 1.5;
margin-top: 1rem;
margin-bottom: 1.5rem;
/* Animations */
transition: color var(--global-animation);
}
footer {
display: block;
width: 100%;
}
footer>p {
padding: 2rem;
}
footer>p.beta_desktop {
display: var(--desktop);
}
footer>p.beta_desktop>kbd {
margin-left: 0.1rem;
}