此文章介绍对7B2主题的美化。

其实也没啥内容,个人比较喜欢圆角,就把主题导航栏和底部改成圆角了,没做别的更改,为了防止更新主题后代码被覆盖,我使用的是官方提供的子主题

使用方法

找到网站存放子主题的文件夹,将以下代码拷贝到“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
/*底部页脚*/
.footer {
width: 98%!important;
margin: auto;
}
.site-footer-nav {
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}

/*顶部菜单*/
.site-header-in {
width: 98%!important;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;

}
.site-header.mg-b.social-top {
margin: auto;
width: 98%!important;
margin-bottom: 16px;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}
.social-top .header {
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}
/*手机端适应圆角*/
@media screen and (max-width: 768px)
{
.header-banner-left {
border-bottom-right-radius: 12px;
border-bottom-left-radius: 12px;
}
.social-top .header-banner-content
{
border-bottom-right-radius: 12px;
border-bottom-left-radius: 12px;
}
.social-top .header-banner{
border-bottom-right-radius: 12px;
border-bottom-left-radius: 12px;
}
}

/*手机二级打开菜单适应*/
@media screen and (max-width: 768px)
{
.header .mobile-box {
width: 68%; /*宽度待修改*/
}
.social-top .show-menu-box .header-logo {
padding-left: 31%!important;
}
.mobile-box.show-menu-box {
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
}

.social-top .mobile-box .header-logo
{
margin-left: 0px!important;
}

.mobile-footer-menu.footer-fixed {
background: rgba(255, 255, 255, 0.78) !important;
box-shadow: 0px 1px 5px 0px rgb(0 0 0 / 33%);
border-radius: 12px;
margin: 0 auto;
left: 0;
right: 0;
width: 90%;
bottom: 10px!important;
backdrop-filter: blur(10px);
}
}