魔改记录

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
/**圆角*/
#recent-posts > .recent-post-item {
border-radius: 16px;
}

/* 目录圆角 */
#aside-content #card-toc .toc-content .toc-link.active {
border-radius: 16px;
}

/* 修改图片圆角 */
img[src*="#img-radius"] {
border-radius: 16px;
}

/* 侧边栏圆角 */
#aside-content .card-widget {
border-radius: 16px;
}

/* 文章页圆角 */
.layout > div:first-child:not(.recent-posts) {
border-radius: 16px;
}

/* 双栏卡片圆角 */
#recent-posts > .recent-post-item {
border-radius: 16px;
}

/* github按钮圆角 */
#card-info-btn {
border-radius: 16px;
overflow: hidden;
}

#card-info-btn:before {
border-radius: 16px;
}

菜单横向排布

1
2
3
4
5
/* 横向排布子菜单 */
#nav .menus_items .menus_item .menus_item_child li {
display: inline-block;
border-radius: 16px;
}

页脚 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#footer {
background: 0 0;
}

#footer::before {
content: none;
}

[data-theme="dark"] #footer::before {
content: none;
}

div#footer_icon {
border-radius: 15px 15px 0 0;
padding-top: 2rem;
display: flex;
justify-content: center;
flex-wrap: wrap;
align-items: center;
}

#footer_icon i {
padding-top: 1px;
font-size: 20px;
color: #fff;
transition: 0.3s;
}

a.icon_link {
height: 40px;
width: 40px;
display: flex;
align-items: center;
justify-content: center;
margin: 1rem;
background-color: var(--font-color);
border-radius: 3rem;
}

[data-theme="dark"] a.icon_link {
background-color: #ececec;
}

[data-theme="dark"] #footer_icon i {
color: #202020;
}

#footer_icon a:hover {
background-color: #49b1f5;
}

[data-theme="dark"] #footer_icon a:hover i {
color: #fff;
}

.icon_left,
.icon_right {
display: flex;
}

img.footer_logo {
border-radius: 50%;
width: 60px;
height: 60px;
margin: 0 1rem;
cursor: pointer;
filter: drop-shadow(0 0 12px rgba(187, 138, 64, 0.35));
transition: cubic-bezier(0, 0, 0, 1.29) 0.5s;
transition: all 0.25s;
}

img.footer_logo:hover {
filter: drop-shadow(0 0 15px rgba(187, 138, 64, 0.7));
}

#footer_icon,
#crl-footer {
margin: auto;
max-width: 1200px;
width: 97%;
background: rgba(245, 249, 255, 0.6);
}

[data-theme="dark"] #footer_icon,
[data-theme="dark"] #crl-footer {
background: rgba(24, 24, 30, 0.5);
}

#crl-footer {
border-radius: 0 0 15px 15px;
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
margin-bottom: 3rem;
padding: 0 2rem 2rem;
}

#crl-footer .footer-group {
min-width: 120px;
}

#crl-footer .footer-title {
color: var(--font-color);
}

#crl-footer .footer-links {
display: flex;
flex-direction: column;
}

#crl-footer .footer-item {
font-size: 1rem;
line-height: 1;
margin: 0.38rem 0;
color: var(--font-color);
}

#footer-bottom {
font-size: 1rem;
padding: 1rem;
color: var(--font-color);
margin-top: 1rem;
background: var(--card-bg);
display: flex !important;
overflow: hidden;
z-index: 1002;
transition: 0.3s;
border-top: 1px solid #e3e8f7;
}

#footer-bottom .footer-bottom-links {
display: flex;
justify-content: space-between;
max-width: 1200px;
width: 100%;
margin: 0 auto;
flex-wrap: wrap;
}

#footer-bottom .footer-bottom-left {
display: flex;
flex-wrap: wrap;
min-height: 32px;
color: var(--font-color);
font-weight: 700;
white-space: nowrap;
}

#footer-bottom > div > div.footer-bottom-left > span {
margin-right: 1rem;
}

#footer-bottom .footer-bottom-right {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}

#footer-bottom .footer-bottom-link {
margin-right: 1rem;
color: var(--font-color);
font-weight: 700;
white-space: nowrap;
}

@media screen and (max-width: 768px) {
ul.menus_item_child {
padding-left: 40px !important;
}

#rightMenu {
display: none;
}

#bber-talk {
padding: 0 12px 0 8px;
}

#crl-footer {
padding: 1rem;
}

#crl-footer .footer-group {
text-align: center;
}

#footer-bottom {
padding: 1rem 0;
}

#footer-bottom .footer-bottom-link {
margin-right: 0.5rem;
}

.footer-bottom-left,
.footer-bottom-right {
width: 100%;
justify-content: center;
}

img.footer_logo {
display: none;
}
}

友联页面微调

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
/* 头像微调 */
.flink-item-icon {
margin-right: 0 !important;
transition: 0.5s !important;
}

.flink-item-name,
.flink-item-desc {
padding-left: 10px !important;
}

/* 去掉原来自带的before */
#article-container .flink .flink-list > .flink-list-item::before {
content: none;
}

/* 鼠标经过改变背景 */
#article-container .flink .flink-list > .flink-list-item:hover {
background-color: #61bcf2cc;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* 鼠标经过改变文字颜色 */
#article-container .flink .flink-list > .flink-list-item:hover a {
color: white !important;
}

/* 鼠标经过头像滚动 */
#article-container
.flink
.flink-list
> .flink-list-item:hover
.flink-item-icon {
width: 60px;
margin-left: -70px;
-webkit-transform: rotate(-180deg);
-moz-transform: rotate(-180deg);
-o-transform: rotate(-180deg);
-ms-transform: rotate(-180deg);
transform: rotate(-180deg);
}

首页双栏

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

#recent-posts{
/* margin-top:-1rem; 头部为空时抵消间隔,若有磁贴或日历请注释掉该行
align-content:flex-start;
display: flex;
flex-wrap: wrap; /*规定灵活的项目在必要的时候拆行或拆列。
justify-content: space-between; /*。
}
#recent-posts > .recent-post-item {
/*max-height:324px;*/ /*文章容器最大高度
margin-top: 1rem; /*最小间距
display: inline-block;
height:auto; /*高度自动
width:49%;/*文章容器容器宽度
}
#recent-posts > .recent-post-item .post_cover {
width: 100%; /*图片封面宽度
height: 200px;/*图片封面高度
}
#recent-posts > .recent-post-item .post_cover img.post_bg {
width: 100%;/*图片宽度
height: 100%;/*图片高度
}


#recent-posts > .recent-post-item >.recent-post-info > .content {
display:none;/*隐藏文章详情
}
#recent-posts > .recent-post-item
-webkit-flex-direction: column; /*容器内部纵向排列
-ms-flex-direction: column; /*容器内部纵向排列
flex-direction: column; /*容器内部纵向排列

}
#recent-posts > .recent-post-item .left_radius {
border-radius: 8px 8px 0 0;/*圆角修改
}
#recent-posts > .recent-post-item .right_radius {
border-radius: 8px 8px 0 0;/*圆角修改
}
.recent-post-item{
height:auto !important;/*容器高度自动
}

.recent-post-info {

padding: 0 40px;/*容器内部文字左右间距
margin-top: 1em;/*容器内部文字上间距
width: 100%!important;/*容器宽度
}
#recent-posts > .recent-post-item > .recent-post-info > .article-title {
-webkit-line-clamp: 1;/*控制标题的行数
margin-top: 0.3rem; /*控制标题的上间距
margin-bottom: 0.3rem;/*控制标题的下间距
color: var(--text-highlight-color);
font-size: 1.2em; /*控制标题的字体大小
line-height: 1.4;/*控制标题的行高

}
#recent-posts > .recent-post-item >.recent-post-info > .article-meta-wrap {
margin-bottom: 1rem;/*控制标题meta信息的底部间距
}
@media screen and (max-width: 768px) {
#recent-posts > .recent-post-item {
width:100%;/*控制手机自适应
}}

未完待续…