style: use master-styles-group

This commit is contained in:
SerKo 2022-04-10 07:28:54 +08:00
parent 54a98bd1b0
commit c62e5f1819
2 changed files with 47 additions and 65 deletions

View File

@ -24,71 +24,52 @@
"> */}} "> */}}
<div class=" <div class="
text-underline-offset:3_:where(a,mark) _:where(a):hover{text-decoration-color:blue-36!}
text-decoration:2;underline;fade-23_:where(a) _:where(a)@dark{text-decoration-color:fade-68}
text-decoration-color:fade-68_:where(a)@dark _:where(a){text-decoration:2;underline;fade-23}
text-decoration-color:blue-36!_:where(a):hover _:where(blockquote)@dark{bl:5;solid;fade-34/.1}
text-decoration:1;underline;#fce016_:where(mark) _:where(blockquote){bl:5;solid;fade-76/.1}
text-decoration-color:rgb(252;224;22/.5)_:where(mark)@dark _:where(code){font:90%;_v:middle}
text-decoration:1;line-through;fade-68_:where(del) _:where(code:not(.highlight_*)){p:2;4;_r:4}
text-decoration-color:red-64_:where(del)@dark _:where(del)@dark{text-decoration-color:red-64}
bg:transparent_:where(mark) _:where(del){text-decoration:1;line-through;fade-68}
mb:1em_:where(h2) _:where(figcaption)@dark{font:gray-57}
font:40_:where(h1) _:where(figcaption){text:14;_p:10;20;0;_width:fit;_mx:auto;_font:fade-56}
font:32_:where(h2) _:where(h1){font:40;_font:extrabold}
font:24_:where(h3) _:where(h1,h2,h3)+:where(h1,h2,h3){mt:.5em}
font:20_:where(h4) _:where(h1,h2,h3,h4,h5,h6){mt:2em}
font:16_:where(h5) _:where(h2){mb:1em;_font:32}
font:14_:where(h6) _:where(h3){font:24}
font:90%_:where(code) _:where(h4){font:20}
font:semibold_:where(th,p_code,li_code,a,mark) _:where(h5){font:16}
font:medium_:where(th,p_code,li_code,a,mark)@dark _:where(h6){font:14}
font:gray-78_:where(th) _:where(li)::marker@dark{font:gray-68}
font:gray-12_:where(th)@dark _:where(li)::marker{font:fade-45}
font:extrabold_:where(h1) _:where(li){pl:.375em}
_:where(mark)@dark{text-decoration-color:rgb(252;224;22/.5)}
p:20_:where(pre) _:where(mark){text-decoration:1;underline;#fce016;_bg:transparent}
r:8_:where(pre) _:where(p,li)@dark{font:gray-34}
overflow:auto_:where(pre) _:where(p,li){font:fade-76;_font:16;_line-height:1.65}
bg:gray-3_:where(pre,code:not(.highlight_*)) _:where(p,pre,blockquote,figure,ul,ol,table){my:1.125em}
bg:gray-93_:where(pre,code:not(.highlight_*))@dark _:where(pre){p:20;_r:8;_overflow:auto}
p:2;4_:where(code:not(.highlight_*)) _:where(pre,code:not(.highlight_*))@dark{bg:gray-93}
r:4_:where(code:not(.highlight_*)) _:where(pre,code:not(.highlight_*)){bg:gray-3}
_:where(strong,b,a,code:not(.highlight_*),mark,del)@dark{font:gray-12}
pl:1.5em_:where(ul,ol,blockquote) _:where(strong,b,a,code:not(.highlight_*),mark,del){font:fade-92}
pl:.375em_:where(li) _:where(table){width:full;_border-spacing:0}
mt:.5em_:where(h1,h2,h3)+:where(h1,h2,h3) _:where(td){v:baseline}
my:1.125em_:where(p,pre,blockquote,figure,ul,ol,table) _:where(td,th):first-child{pl:0}
mt:2em_:where(h1,h2,h3,h4,h5,h6) _:where(td,th):last-child{pr:0}
list-style-type:disc_:where(ul) _:where(td,th)@dark{b:gray-4/.04}
font:fade-76_:where(p,li) _:where(td,th){bb:1;solid;fade-92/.06;_p:6}
font:gray-34_:where(p,li)@dark _:where(th)@dark{font:gray-12}
font:fade-92_:where(strong,b,a,code:not(.highlight_*),mark,del) _:where(th){font:gray-78;_font:14;_text:left}
font:gray-12_:where(strong,b,a,code:not(.highlight_*),mark,del)@dark _:where(th,p_code,li_code,a,mark)@dark{font:medium}
font:fade-45_:where(li)::marker _:where(th,p_code,li_code,a,mark){font:semibold}
font:gray-68_:where(li)::marker@dark _:where(ul){list-style-type:disc}
font:16_:where(p,li) _:where(ul,ol,blockquote){pl:1.5em}
line-height:1.65_:where(p,li) _:where(video,img){max-width:full}
bl:5;solid;fade-76/.1_:where(blockquote) _:where(a,mark){text-underline-offset:3}
bl:5;solid;fade-34/.1_:where(blockquote)@dark
max-width:full_:where(video,img)
text:14_:where(figcaption)
p:10;20;0_:where(figcaption)
width:fit_:where(figcaption)
mx:auto_:where(figcaption)
font:fade-56_:where(figcaption)
font:gray-57_:where(figcaption)@dark
width:full_:where(table)
border-spacing:0_:where(table)
bb:1;solid;fade-92/.06_:where(td,th)
b:gray-4/.04_:where(td,th)@dark
text:left_:where(th)
pl:0_:where(td,th):first-child
pr:0_:where(td,th):last-child
p:6_:where(td,th)
v:middle_:where(code)
font:14_:where(th)
v:baseline_:where(td)
"> ">
{{- .Content -}} {{- .Content -}}
</div> </div>

View File

@ -17,6 +17,7 @@
<link href="https://unpkg.com/@master/normal.css" rel="stylesheet"> <link href="https://unpkg.com/@master/normal.css" rel="stylesheet">
<script src="https://unpkg.com/@master/style"></script> <script src="https://unpkg.com/@master/style"></script>
<script src="https://unpkg.com/@master/styles"></script> <script src="https://unpkg.com/@master/styles"></script>
<script src="https://unpkg.com/master-styles-group"></script>
<script> <script>
window.matchMedia('(prefers-color-scheme: dark)').matches && document.documentElement.classList.add("dark"); window.matchMedia('(prefers-color-scheme: dark)').matches && document.documentElement.classList.add("dark");