Skip to content

Commit b96d870

Browse files
committed
fix ads css
1 parent 50f0c05 commit b96d870

File tree

4 files changed

+40
-44
lines changed

4 files changed

+40
-44
lines changed

docs/.vuepress/components/HomePage.vue

+6-18
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,14 @@ const spStr = computed(() => {
4343
}
4444
4545
.mingdao {
46+
display: flex;
47+
justify-content: center;
48+
4649
a {
50+
max-width: min(500px, 100%);
51+
4752
img {
48-
max-width: 500px;
53+
width: 100%;
4954
}
5055
}
5156
}
@@ -56,21 +61,4 @@ const spStr = computed(() => {
5661
padding-bottom: 0 !important;
5762
}
5863
59-
.wwads-cn,
60-
.wwads {
61-
background-color: #f4f8fa;
62-
}
63-
64-
.wwads-text {
65-
color: #0e1011;
66-
}
67-
68-
html[data-theme="dark"] .wwads-cn,
69-
html[data-theme="dark"] .wwads {
70-
background-color: #272829 !important;
71-
}
72-
73-
html[data-theme="dark"] .wwads-text {
74-
color: #9e9e9e !important;
75-
}
7664
</style>

docs/.vuepress/components/NormalPage.vue

+13-24
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
<div class="theme-hope-content ads-container">
55
<div class="mingdao" v-if="!enableSidebar">
66
<a href="https://www.mingdao.com?s=utm_51=utm_source=liteflow&utm_medium=banner&utm_campaign=%E5%93%81%E7%89%8C%E6%8E%A8%E5%B9%BF&utm_content=IT%E8%B5%8B%E8%83%BD%E4%B8%9A%E5%8A%A1"
7-
target="_blank"><img src="/img/ads/mingdao-h.png" alt="" /></a>
8-
<span>{{ spStr }}</span>
7+
target="_blank">
8+
<img src="/img/ads/mingdao-h.png" alt="" />
9+
<span>{{ spStr }}</span>
10+
</a>
911
</div>
1012
<div class="wwads wwads-cn wwads-horizontal" data-id="213" style="width:100% !important" v-else>
1113
</div>
@@ -42,38 +44,25 @@ const spStr = computed(() => {
4244
justify-content: center;
4345
4446
a {
45-
max-width: 500px;
47+
max-width: min(500px, 100%);
48+
position: relative;
4649
4750
img {
4851
width: 100%;
4952
}
50-
}
5153
52-
span {
53-
font-size: small;
54+
span {
55+
font-size: small;
56+
color: #999;
57+
position: absolute;
58+
right: 10px;
59+
bottom: 10px;
60+
}
5461
}
5562
}
5663
5764
.ads-container {
5865
padding-top: 0 !important;
5966
padding-bottom: 0 !important;
6067
}
61-
62-
.wwads-cn,
63-
.wwads {
64-
background-color: #f4f8fa;
65-
}
66-
67-
.wwads-text {
68-
color: #0e1011;
69-
}
70-
71-
html[data-theme="dark"] .wwads-cn,
72-
html[data-theme="dark"] .wwads {
73-
background-color: #272829 !important;
74-
}
75-
76-
html[data-theme="dark"] .wwads-text {
77-
color: #9e9e9e !important;
78-
}
7968
</style>

docs/.vuepress/components/Sidebar.vue

+1
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ const spStr = computed(() => {
4646
width: 70%;
4747
text-align: right;
4848
font-size: small;
49+
color: #999;
4950
}
5051
}</style>

docs/.vuepress/styles/index.scss

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1-
.ads-card{
1+
.ads-card {
22
background-color: #f4f8fa;
33
padding: 14px;
44
border-radius: 8px;
55
}
66

77
html[data-theme="dark"] .ads-card {
88
background-color: #272829;
9-
}
9+
}
10+
11+
.wwads-cn,
12+
.wwads {
13+
background-color: #f4f8fa;
14+
}
15+
16+
.wwads-text {
17+
color: #0e1011;
18+
}
19+
20+
html[data-theme="dark"] .wwads-cn,
21+
html[data-theme="dark"] .wwads {
22+
background-color: #272829 !important;
23+
}
24+
25+
html[data-theme="dark"] .wwads-text {
26+
color: #9e9e9e !important;
27+
}

0 commit comments

Comments
 (0)