-
Notifications
You must be signed in to change notification settings - Fork 111
/
mobile.scss
103 lines (87 loc) · 1.38 KB
/
mobile.scss
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
/*移动版适配*/
//低分辨率笔记本和宽pad
@media screen and (max-width: 1024px) {
html,
body {
padding: 0;
border: 0;
background-color: $paper_color;
}
header,
main {
width: 84%;
}
.pc-only {
display: none;
}
}
//平板pad或者手机横屏
@media screen and (max-width: 768px) {
header,
main {
width: 90%;
}
.avatar {
display: none;
}
section {
.content {
width: 94%;
margin: 0 auto;
}
h2 {
display: block;
width: 100% !important;
text-align: center;
margin: .8em auto .2em;
}
}
}
@media screen and (max-width: 560px) {
header,
main {
width: 98%;
}
}
//手机
@media screen and (max-width: 480px) {
header,
.head {
display: block;
}
#name {
display: block;
font-size: .9em;
width: 90%;
margin: auto;
border-bottom: .1em dotted #bbb;
}
.contact {
display: block;
width: 80%; //IE 类半兼容
width: -moz-fit-content;
width: -webkit-fit-content;
width: fit-content;
margin: auto;
padding-top: 1em;
}
.contact-item {
padding-top: .2em;
padding-left: .4em;
}
.block {
.sub {
min-width: 99%; // text-align: left;
}
}
section > ul ul {
padding-left: 1em;
}
footer li {
display: block;
line-height: 1.5em;
&::after {
display: none;
}
}
}