WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
File tree Expand file tree Collapse file tree 12 files changed +185
-53
lines changed
Expand file tree Collapse file tree 12 files changed +185
-53
lines changed Original file line number Diff line number Diff line change 2525 --font-md : 16px ;
2626 --font-lg : 24px ;
2727 --font-xlg : 32px ;
28- --font-xxlg : 48px ;
28+ --font-xxlg : 48px ;
2929
3030 --space-xs : 0.25rem ;
3131 --space-sm : 0.4rem ;
4646 --green-5 : hsl (90 , 90% , 20% );
4747}
4848
49+ @media (prefers-color-scheme : dark) {
50+ : root {
51+ --black : # 000 ;
52+ --white : # fff ;
53+ --bg : # 121212 ;
54+ --bg2 : # 171717 ;
55+ }
56+
57+ a {
58+ color : var (--green-4 );
59+ }
60+
61+ h1 ,
62+ h2 ,
63+ h3 ,
64+ h4 ,
65+ h5 ,
66+ h6 {
67+ color : var (--neutral-1 ) !important ;
68+ }
69+
70+ p {
71+ color : var (--neutral-2 ) !important ;
72+ }
73+ }
74+
4975* ,
5076: root ,
5177body {
@@ -54,6 +80,22 @@ body {
5480 padding : 0 ;
5581}
5682
83+ .light {
84+ color-scheme : light;
85+ }
86+
87+ .dark {
88+ color-scheme : dark;
89+ }
90+
91+ h1 {
92+ color : var (--neutral-5 );
93+ }
94+
95+ p {
96+ color : var (--neutral-4 );
97+ }
98+
5799a {
58100 color : var (--green-5 );
59101}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ main .container {
55 margin-top : var (--space-md );
66 width : 45svw ;
77 line-height : 20px ;
8- text-transform : none;
98
109 h1 ,
1110 h2 ,
@@ -69,29 +68,15 @@ main .container {
6968 }
7069
7170 .copy-btn {
72- display : flex;
73- flex-direction : row;
74- width : auto;
75- padding : var (--space-xs );
71+ height : 25px ;
72+ padding-inline : 20px ;
73+ background : var (--bg2 );
7674 border-radius : 0.5rem ;
77- border : none;
7875 border : 1px solid var (--neutral-3 );
7976 outline : none;
8077 margin-left : auto;
78+ color : var (--neutral-5 );
8179
82- p ,
83- img {
84- margin-top : auto;
85- margin-bottom : auto;
86- }
87-
88- p {
89- margin-left : 1 ;
90- }
91-
92- img {
93- width : 30px ;
94- }
9580 }
9681 }
9782
@@ -123,10 +108,10 @@ main .container {
123108 border-left : 4px solid var (--green-2 );
124109 padding : var (--space-md );
125110 margin-bottom : var (--space-lg );
111+ background : var (--bg2 );
126112
127113 p {
128114 text-indent : 0px ;
129- color : var (--neutral-5 );
130115 }
131116 }
132117}
@@ -144,8 +129,24 @@ main .container {
144129 }
145130
146131 h3 {
147- font-size : var (--font-md ) !important ;
132+ font-size : var (--font-lg ) !important ;
133+ text-decoration : underline;
134+ }
135+ }
136+
137+ @media (prefers-color-scheme : dark) {
138+ .container {
139+ color : var (--neutral-1 );
140+ }
141+
142+ p {
143+ color : var (--neutral-2 ) !important ;
144+ }
145+
146+ button {
147+ color : var (--neutral-1 ) !important ;
148148 }
149+
149150 }
150151
151152}
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ header {
1313 top : 0 ;
1414 width : 100vw ;
1515 height : 8vh ;
16- background : var (--white );
16+ background : var (--bg2 );
17+ color : var (--neutral-1 );
1718 border-bottom : .9px solid var (--neutral-2 );
1819
1920 .menu {
@@ -90,6 +91,7 @@ header {
9091 transition : all 300ms ;
9192 visibility : visible;
9293
94+
9395 .topics-group {
9496 padding-left : var (--space-lg );
9597 padding-top : var (--space-md );
@@ -196,7 +198,7 @@ header {
196198 }
197199
198200 nav {
199- background : var (--white );
201+ background : var (--bg );
200202 position : fixed;
201203 width : 50svw !important ;
202204 height : 95svh !important ;
@@ -223,6 +225,23 @@ header {
223225 }
224226}
225227
226- @media (1250px > = width) {
227- /* … */
228+ @media (prefers-color-scheme : dark) {
229+ a {
230+ color : var (--neutral-1 ) !important ;
231+ }
232+
233+ header ,
234+ nav ,
235+ aside {
236+ border-color : var (--neutral-5 ) !important ;
237+ }
238+
239+
240+ nav .topic-heading {
241+ color : var (--neutral-1 ) !important ;
242+ }
243+
244+ nav ul li {
245+ color : var (--neutral-2 ) !important ;
246+ }
228247}
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ function loadCopyButtons(containerSelector) {
1515
1616 const button = document . createElement ( "button" ) ;
1717 button . className = "copy-btn" ;
18- button . innerHTML = `<p> copy</p><img src="../icons/copy.svg" alt="copy"/>` ;
18+ button . innerHTML = `copy`
1919 pre . appendChild ( button ) ;
2020 button . addEventListener ( "click" , ( ) => {
2121 navigator . clipboard . writeText ( code . textContent ) . then ( ( ) => {
2222 button . textContent = "Copied" ;
2323 setTimeout ( ( ) => {
24- button . innerHTML = `<img src="../icons/ copy.svg" alt="copy"/>` ;
24+ button . innerHTML = `copy`
2525 } , 1500 ) ;
2626 } ) ;
2727 } ) ;
Original file line number Diff line number Diff line change 66 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
77 < title > linuxmint|Documentation</ title >
88 < link href ="assets/css/style.css " rel ="stylesheet " />
9- < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css ">
109 < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js "> </ script >
11- < link rel ="
stylesheet "
href ="
//unpkg.com/@catppuccin/[email protected] /css/catppuccin-latte.css "
> 1210
11+ < link rel ="stylesheet " href ="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/atom-one-light.min.css "
12+ media ="screen " />
13+ < link rel ="stylesheet " href ="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/atom-one-dark.min.css "
14+ media ="screen and (prefers-color-scheme: dark) " />
1315
1416</ head >
1517
1618< body >
1719 < header >
1820 < div class ="menu ">
19- < img src ="./icons/menu.svg " alt ="menu " class ="icon " onclick ="toggleMenu() ">
21+ < picture >
22+ < source srcset ="./icons/menu-dark.svg " media ="(prefers-color-scheme: dark) ">
23+ < img src ="./icons/menu.svg " alt ="menu " class ="icon " onclick ="toggleMenu() ">
24+ </ picture >
2025 </ div >
21- < div class ="brand ">
22- < img src ="./icons/linux-mint.svg " alt ="logo " class ="logo " id ="logo " />
26+ < div class ="brand light ">
27+ < picture >
28+ < source srcset ="./icons/mint-logo.svg " media ="(prefers-color-scheme: dark) ">
29+ < img class ="logo " src ="./icons/linux-mint.svg ">
30+ </ picture >
2331 < p > Mint</ p >
2432 </ div >
33+
2534 < div class ="secondary-nav " hx-push-url ="true ">
2635 < li class ="active ">
2736 < a href ="/index.html "> Documentation</ a >
You can’t perform that action at this time.
0 commit comments