forked from zxuqian/html-css-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
71 lines (63 loc) · 1.07 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
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: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
min-height: 100vh;
width: 100vw;
padding: 5vmin;
background: #2a1c3a; /* fallback for old browsers */
background: linear-gradient(to right, #2a1c3a, #2d2a4a);
}
.card {
border-radius: 12px;
width: 350px;
margin: 18px;
padding: 18px 36px;
box-shadow: 0 0 24px rgba(15, 6, 60, 0.88);
background: rgb(65, 61, 97);
}
ul li {
margin: 18px 0;
}
li a {
display: block;
color: #d8d1ff;
text-shadow: 0 0 2px rgba(180, 124, 117, 0.4);
text-decoration: none;
text-align: left;
font-size: 18px;
padding: 8px 24px;
border-radius: 6px;
background: #efefef0f;
}
@media screen and (max-width: 860px) {
main {
padding: 2vmin;
justify-content: center;
}
.card {
/* width: 350px; */
padding: 2rem;
margin: 1rem;
}
li a {
padding: 1rem;
}
}