Skip to content

Commit d8237ae

Browse files
committed
Publish 2024-10-24
1 parent bba7f14 commit d8237ae

File tree

3 files changed

+39
-10
lines changed

3 files changed

+39
-10
lines changed

elements/mobile-side.js

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,25 @@ const locales = {
1818
check_out_exclusive: '查看独家高级主题和自定义颜色',
1919
simply_scan: '只需扫描二维码即可在手机上安装',
2020
reduce_brightness: '降低手机屏幕亮度',
21-
with_dark_mobile: '使用我们的手机应用'
21+
with_dark_mobile: '使用我们的手机应用',
22+
mobile_app: '移动应用',
2223
},
2324
};
2425

2526
const htmlText = `
2627
<section class="mob">
2728
<div class="mob-picture">
28-
<div class="mob-picture__text mob-picture__text-1" data-text="reduce_brightness">
29-
Reduce your phone screen brightness
29+
<div class="mob-picture__text mob-picture__text-1" data-text="dark_reader_mobile">
30+
<span class="mob-picture__text--darkreader-mobile">
31+
<span class="mob-picture__text--darkreader">Dark Reader</span>
32+
<span class="mob-picture__text--mobile" data-text="mobile_app">Mobile</span>
33+
</span>
3034
</div>
35+
<!--
3136
<div class="mob-picture__text mob-picture__text-2" data-text="with_dark_mobile">
3237
with <strong>Dark Reader Mobile app</strong>
3338
</div>
39+
-->
3440
</div>
3541
<div class="mob-subtitle" style="display: none;">
3642
<a class="mob-text-link" href="${edgeURL}" target="_blank" rel="noopener" data-s="drand-side-text">
@@ -295,7 +301,7 @@ section {
295301
left: 0;
296302
position: absolute;
297303
text-align: center;
298-
text-shadow: 0 0 1rem black, 0 0 0.5rem black;
304+
text-shadow: 0 0 1rem black, 0 0 0.5rem black, 0 0 0.25rem black;
299305
width: 100%;
300306
}
301307
.mob-picture__text-1 {
@@ -309,6 +315,25 @@ section {
309315
font-weight: 400;
310316
/* -webkit-text-stroke: 0.0625rem; */
311317
}
318+
.mob-picture__text--darkreader-mobile {
319+
display: inline-block;
320+
font-family: system-ui, sans-serif;
321+
font-size: 1.3125rem;
322+
font-weight: 900;
323+
margin-top: 0.4375rem;
324+
text-transform: uppercase;
325+
-webkit-text-stroke: 0.0625rem;
326+
}
327+
.mob-picture__text--darkreader {
328+
background-image: linear-gradient(to right, #e7573b, #af6ce9, #40a6e5);
329+
background-clip: text;
330+
color: transparent;
331+
margin-top: 0.25rem;
332+
text-shadow: none;
333+
}
334+
.mob-picture__text--mobile {
335+
font-weight: 100;
336+
}
312337
313338
/*
314339
@media (max-height: 50rem) {

help/en/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ <h1>Help — Dark Reader</h1>
7070
<li><a href="#contacts">Contacts</a></li>
7171
<li><a href="../../tips/">Tips for advanced users</a></li>
7272
</ul>
73+
<h2 id="options-icon">Toolbar Icon</h2>
74+
75+
<img src="/images/help/darkreader-pin-toolbar-icon.png" alt="Options icon" style="width: 20rem;" loading="lazy" />
76+
77+
<p>If the Dark Reader <strong>icon is hidden</strong> after installation,
78+
click the <strong>Extensions</strong> button next to the address bar and then another button next to Dark Reader.</p>
7379
<h2 id="video" class="text-highlight">1-Minute Video Guide</h2>
7480

7581
<iframe width="560" height="320" src="https://www.youtube-nocookie.com/embed/849mznBKmIQ?si=QpEUoKvD1KwpdOqx" title="Dark Reader quick guide" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin"></iframe>
@@ -95,12 +101,6 @@ <h2 id="mobile-video" class="text-highlight">30-Seconds Video Guide (mobile app)
95101
<iframe width="320" height="480" src="https://www.youtube-nocookie.com/embed/9nQjBBe8K44?si=QpEUoKvD1KwpdOqx" title="Dark Reader iOS" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin"></iframe>
96102

97103
<p><a data-s="drios-video-text" href="https://apps.apple.com/us/app/dark-reader-for-safari/id1438243180?platform=iphone" target="_blank" rel="noopener">Download on the App Store</a></p>
98-
<h2 id="options-icon">Toolbar Icon</h2>
99-
100-
<img src="/images/help/darkreader-pin-toolbar-icon.png" alt="Options icon" style="width: 20rem;" loading="lazy" />
101-
102-
<p>If the Dark Reader <strong>icon is hidden</strong> after installation,
103-
click the <strong>Extensions</strong> button next to the address bar and then another button next to Dark Reader.</p>
104104
<h2 id="top-section">Top Section</h2>
105105

106106
<img src="/images/help/darkreader-top-section.png" alt="Top section" style="width: 15rem;" loading="lazy" />

styles/help-topic.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,3 +454,7 @@ html[data-p="p"] .page-grid-inside > darkreader-backers-top-short {
454454
width: 100%;
455455
}
456456
}
457+
458+
html:not(.android) .intro {
459+
display: none;
460+
}

0 commit comments

Comments
 (0)