forked from xyTom/Url-Shorten-Worker
-
Notifications
You must be signed in to change notification settings - Fork 422
Expand file tree
/
Copy pathstyles.css
More file actions
89 lines (75 loc) · 1.3 KB
/
styles.css
File metadata and controls
89 lines (75 loc) · 1.3 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
*,
*::before,
*::after {
margin: 0;
padding: 0;
cursor: default;
box-sizing: border-box;
}
body {
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
vertical-align: center;
flex-wrap: wrap;
align-content: center;
min-height: 100vh;
color: #2a2b2c;
background-color: #ebedee;
}
img {
width: auto;
max-width: 100%;
}
.card {
background-color: transparent;
width: 768px;
max-width: 95vw;
}
.form-control,
.list-group-item,
.card-body,
.input-group {
overflow-wrap: break-word;
word-break: break-all;
}
.form-control {
cursor: auto;
min-width: 0;
}
.img-thumbnail {
max-height: 320px;
}
.list-group-item {
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Courier New", monospace;
}
.list-group-item>.form-control {
min-height: 3em;
}
/* 让 input-group 中的按钮在极窄屏幕上可以换行 */
@media (max-width: 420px) {
.input-group {
flex-wrap: wrap;
}
.input-group>.btn {
flex: 0 0 auto;
}
}
/* 响应式 iframe(YouTube 嵌入等) */
iframe {
max-width: 100%;
height: auto;
aspect-ratio: 16 / 9;
}
@media (prefers-color-scheme: dark) {
body {
color: #d9d9d9;
background: #1b1b1b;
}
.card {
background-color: #252d38;
}
}