-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
104 lines (88 loc) · 1.84 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
:root {
--background-light: blanchedalmond;
--text-light: rgb(37, 37, 37);
--background-dark: rgb(37, 37, 37);
--text-dark: blanchedalmond;
--link-color: blue;
--link-hover-color: red;
--button-background: rgb(37, 37, 37);
--button-text: blanchedalmond;
--button-hover-background: blue;
}
@media (prefers-color-scheme: dark) {
:root {
--background-light: rgb(37, 37, 37);
--text-light: blanchedalmond;
--background-dark: blanchedalmond;
--text-dark: rgb(37, 37, 37);
--link-color: lightblue;
--link-hover-color: orange;
--button-background: blanchedalmond;
--button-text: rgb(37, 37, 37);
--button-hover-background: lightblue;
}
}
body {
font-family: 'Courier New', Courier, monospace;
font-size: 18px;
line-height: 1.5em;
background-color: var(--background-light);
color: var(--text-light);
}
main {
margin: 1em;
}
nav,
footer {
margin: 0.5em;
padding: 0.5em;
}
h1 {
text-align: center;
}
img {
display: block;
margin: 0 auto;
}
@media screen and (max-width: 360px) {
img {
width: 100%;
}
}
.center {
text-align: center;
}
.highlight {
color: red;
}
.highlight-search {
background-color: yellow;
}
a:link,
a:visited {
color: var(--link-color);
text-decoration: none;
}
a:hover,
a:active {
color: var(--link-hover-color);
}
.theme-a {
background-color: var(--background-light);
color: var(--text-light);
}
.theme-b {
background-color: var(--background-dark);
color: var(--text-dark);
}
input[type="submit"] {
width: 100%;
padding: 10px;
background-color: var(--button-background);
color: var(--button-text);
border: none;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: var(--button-hover-background);
}