-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
210 lines (179 loc) · 4.62 KB
/
styles.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
:root {
--background-color: #fff;
--secondary-background-color: #f5f5f5;
--text-color: #000;
--accent-color: #172554;
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: #111;
--secondary-background-color: #1a1a1a;
--text-color: #eee;
--accent-color: #fca5a5;
}
}
::-moz-focus-inner {
outline: none;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
color-scheme: light dark;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--secondary-background-color);
color: var(--text-color);
min-height: 100svh;
}
*::selection {
background-color: var(--accent-color);
color: var(--background-color);
}
input:not(:focus)::selection {
background-color: var(--text-color);
color: var(--background-color);
}
header {
background-color: var(--background-color);
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
position: sticky;
top: 0;
height: 70px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.2);
transition: top 0.3s ease;
}
header.retracted {
/* transform: translateY(-100%); */
top: -70px;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
margin: auto;
width: 100%;
max-width: 1200px;
}
.site-id a {
text-decoration: none;
color: var(--text-color);
transition: outline 150ms linear, color 150ms ease-in;
user-select: none;
border-radius: 5px;
}
.site-id a:hover {
color: var(--accent-color);
}
.site-id a:focus-visible {
outline: 2px solid var(--accent-color);
outline-offset: 5px;
color: var(--accent-color);
}
.input-container {
display: flex;
justify-content: center;
align-items: center;
padding: 15px 0;
margin: auto;
width: 100%;
max-width: 1200px;
}
.input-container input, .input-container button {
padding: 10px;
margin: 5px 0;
border: 1px solid var(--text-color);
border-radius: 5px;
background-color: var(--background-color);
font-weight: 600;
color: var(--text-color);
transition: outline 100ms linear;
}
.input-container button{
margin-left: 10px;
transition: outline 100ms linear, background-color 200ms ease-out, color 200ms ease-out;
}
.input-container input {
width: calc(44ch + 22px);
}
.input-container button:focus-visible {
border-color: var(--accent-color);
outline: 2px solid var(--accent-color);
color: var(--accent-color);
}
.input-container button:hover, .input-container button:active{
color: var(--background-color);
background-color: var(--accent-color);
border: 1px solid var(--accent-color);
}
.input-container input:focus-visible {
outline: 2px solid var(--accent-color);
}
.input-container input:focus {
color: var(--text-color);
background-color: var(--secondary-background-color);
border: 1px solid var(--accent-color);
}
.img-description {
padding: 10px;
font-size: large;
font-weight: 500;
}
.image-display {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
max-width: 1200px;
padding: 10px;
margin: auto;
}
.image-container {
display: flex;
justify-content: spacce-around;
align-items: center;
flex-direction: column;
margin: 15px 0;
}
.image-container img {
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
transition: box-shadow 0.25s ease-out, border-radius 0.25s ease-in;
/* border: 10px solid var(--background-color); */
}
.image-container img:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
border-radius: 2px;
}
.hidden {
display: none;
}
@media screen and (max-width: 520px){
.header-content {
flex-direction: column;
align-items: center;
}
.site-id {
display: flex;
justify-content: center;
align-items: center;
}
.input-container {
width: 100%;
flex-direction: column;
justify-content: center;
}
.input-container input, .input-container button {
width: 100%;
margin: 7.5px 0;
}
}