-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
111 lines (89 loc) · 1.35 KB
/
main.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
105
106
107
108
109
110
111
html {
display: grid;
place-items: center;
height: 100%;
}
body {
background: var(--background-color);
}
body, input, select {
font-family: var(--font-family);
}
img {
max-width: 100%;
height: 200px;
animation: float 2s infinite;
}
main {
max-width: 500px;
padding: 10px 20px;
text-align: center;
}
h1, span {
word-break: break-word;
}
h1 {
font: var(--h1-font-size) var(--h1-font-family);
color: var(--theme-color);
text-transform: uppercase;
margin: 0;
}
p {
margin: 5px 0;
}
main {
display: none;
}
section, footer {
margin: 20px 0;
}
div {
display: grid;
grid-template-columns: auto auto;
grid-gap: 20px;
}
div, input, select {
margin-top: 10px;
}
input, select {
width: 100%;
padding: 10px;
border: none;
outline: none;
}
input, span {
border-bottom: 3px solid var(--theme-color);
}
input {
background: transparent;
width: 100%;
box-sizing: border-box;
}
input:focus {
border-bottom: 3px solid transparent;
}
select {
background: var(--theme-color);
}
select, a {
color: inherit;
}
input:focus, select:focus {
outline: 3px dotted var(--theme-color);
}
span {
display: inline-block;
}
::selection {
background: var(--theme-color);
}
@keyframes float {
50% {
transform: translateY(20px);
}
}
@media (prefers-color-scheme: dark) {
select {
color-scheme: dark;
}
}