-
Notifications
You must be signed in to change notification settings - Fork 359
/
style.css
91 lines (79 loc) · 1.46 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
html,
body {
margin: 0;
font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}
* {
box-sizing: border-box;
}
ul,
li {
padding: 0;
margin: 0;
}
li {
list-style: none;
}
main {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
min-height: 100vh;
width: 100vw;
padding: 5vmin;
background: #2a1c3a; /* fallback for old browsers */
background: linear-gradient(135deg, #292929, #000000);
}
.container {
background-color: rgba(54, 54, 54, 0.4);
border-radius: 8px;
padding: 48px;
}
.container h1 {
color: #ffffff;
margin-bottom: 36px;
}
.list {
width: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
row-gap: 36px;
column-gap: 24px;
}
.list li {
background: linear-gradient(135deg, #0061ff, #ff00f2);
border-radius: 6px;
}
.list li a {
display: block;
color: #ffffff;
text-shadow: 0 0 2px rgba(180, 124, 117, 0.4);
text-decoration: none;
text-align: left;
font-size: 18px;
padding: 18px 24px;
text-align: center;
margin: 2px;
background-color: rgb(24, 24, 24);
border-radius: 6px;
width: 265px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
@media screen and (max-width: 1260px) {
.list {
grid-template-columns: repeat(3, 1fr);
}
}
@media screen and (max-width: 976px) {
.list {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 670px) {
.list {
grid-template-columns: repeat(1, 1fr);
}
}