Skip to content

Commit 887cfa6

Browse files
committed
feat: 修改 layout
1 parent 1f53e6b commit 887cfa6

1 file changed

Lines changed: 56 additions & 24 deletions

File tree

public/css/mine.css

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,81 @@
11
.avatar {
22
width: 30%;
3-
display:block;
4-
margin:auto;
3+
display: block;
4+
margin: auto;
55
border-radius: 50% !important;
66
box-shadow: 5px 5px 5px #333 !important;
77
}
8+
89
.nolinkline {
910
text-decoration: none;
1011
}
12+
1113
.tags {
12-
border-radius: 5px;
13-
padding: .2em .6em .3em;
14-
font-weight: bold;
15-
background-color: #268bd2;
16-
color: white;
17-
font-style: normal;
18-
opacity: 0.7;
14+
border-radius: 5px;
15+
padding: .2em .6em .3em;
16+
font-weight: bold;
17+
background-color: #268bd2;
18+
color: white;
19+
font-style: normal;
20+
opacity: 0.7;
1921
box-shadow: 3px 5px 8px black;
2022
}
23+
2124
.tags-status {
2225
display: inline-block;
2326
margin: 10px 12px 12px -3px;
2427
}
28+
2529
.tag-cloud {
2630
margin: 25px 0px 30px -35px;
2731
}
32+
2833
.archiveli {
2934
list-style: none;
3035
padding: 0 0 15px;
3136
}
37+
3238
.archiveli .month {
3339
width: 10%;
3440
vertical-align: top;
3541
color: #9a9a9a;
3642
}
43+
3744
.archiveli div {
3845
display: inline-block;
3946
}
47+
4048
.indeximg {
41-
float:right;
42-
margin:0 0 10px 10px;
49+
float: right;
50+
margin: 0 0 10px 10px;
4351
box-shadow: 10px 11px 13px 0px grey;
4452
max-height: 150px;
4553
max-width: 150px;
4654
padding: 10px;
4755
}
56+
4857
#error-text {
49-
color: rgba(0,0,0,0.4);
50-
font-size: 50px;
51-
line-height: 21px;
52-
margin-bottom: 60px;
53-
margin-top: 30px;
54-
white-space: pre-wrap;
55-
}
56-
#directory ul, ol, dl {
58+
color: rgba(0, 0, 0, 0.4);
59+
font-size: 50px;
60+
line-height: 21px;
61+
margin-bottom: 60px;
62+
margin-top: 30px;
63+
white-space: pre-wrap;
64+
}
65+
66+
#directory ul,
67+
ol,
68+
dl {
5769
margin-bottom: 0;
5870
}
71+
5972
@media screen and (min-width: 1450px) {
6073
.post-directory h3 {
6174
margin-left: 0px;
6275
margin-right: 15px;
6376
font-size: 40px;
6477
}
78+
6579
.post-directory {
6680
border: 1px solid #d7d7d7;
6781
border-radius: 8px;
@@ -79,20 +93,21 @@
7993
padding-bottom: 10px;
8094
padding-right: 10px;
8195
z-index: 9999;
82-
width: 300px; /* 可依需求調整 */
96+
width: 300px;
97+
/* 可依需求調整 */
8398
}
84-
99+
85100
.post-directory-header {
86101
display: flex;
87102
justify-content: space-between;
88103
align-items: center;
89104
}
90-
105+
91106
.post-directory h3 {
92107
margin: 0;
93108
font-size: 20px;
94109
}
95-
110+
96111
.close-directory {
97112
background: none;
98113
border: none;
@@ -101,31 +116,48 @@
101116
color: #888;
102117
transition: color 0.2s;
103118
}
104-
119+
105120
.close-directory:hover {
106121
color: #f00;
107122
}
108123
}
124+
109125
@media screen and (max-width: 768px) {
110126
.post-directory h3 {
111127
margin-left: 0px;
112128
margin-right: 15px;
113129
}
130+
114131
.close-directory {
115132
display: none;
116133
}
117134
}
135+
118136
.post-date {
119137
margin-bottom: 0px;
120138
}
139+
121140
.tag-tagline {
122141
display: block;
123142
margin-top: -8px;
124143
margin-bottom: 8px;
125144
}
145+
126146
.tag-tail {
127147
display: block;
128148
margin-top: 8px;
129149
margin-bottom: 8px;
130150
margin-left: -6px;
151+
}
152+
153+
@media (min-width: 64em) {
154+
.content {
155+
max-width: 40rem !important;
156+
}
157+
}
158+
159+
@media (min-width: 90em) {
160+
.content {
161+
max-width: 50rem !important;
162+
}
131163
}

0 commit comments

Comments
 (0)