[ci] yarn format
This commit is contained in:
parent
60a2755c0a
commit
c8896bd021
3 changed files with 4 additions and 6 deletions
|
@ -47,7 +47,7 @@ nav ul {
|
||||||
:is(h1, h2, h3, h4, h5, h6) {
|
:is(h1, h2, h3, h4, h5, h6) {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 1.0;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(h1, h2) {
|
:is(h1, h2) {
|
||||||
|
@ -269,7 +269,6 @@ img {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
header button {
|
header button {
|
||||||
background-color: var(--theme-bg);
|
background-color: var(--theme-bg);
|
||||||
}
|
}
|
||||||
|
@ -317,7 +316,7 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
#theme-toggle > label {
|
#theme-toggle > label {
|
||||||
color: var( --theme-code-inline-text);
|
color: var(--theme-code-inline-text);
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -105,7 +105,7 @@ const DocSidebar: FunctionalComponent<{ headers: any[]; editHref: string }> = ({
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div style={{margin: '2rem 0', textAlign: 'center'}}>
|
<div style={{ margin: '2rem 0', textAlign: 'center' }}>
|
||||||
<ThemeToggle />
|
<ThemeToggle />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -52,7 +52,6 @@ const ThemeToggle: FunctionalComponent = () => {
|
||||||
}
|
}
|
||||||
}, [theme]);
|
}, [theme]);
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="theme-toggle">
|
<div id="theme-toggle">
|
||||||
{themes.map((t, i) => {
|
{themes.map((t, i) => {
|
||||||
|
@ -68,7 +67,7 @@ const ThemeToggle: FunctionalComponent = () => {
|
||||||
value={t}
|
value={t}
|
||||||
title={`Use ${t} theme`}
|
title={`Use ${t} theme`}
|
||||||
aria-label={`Use ${t} theme`}
|
aria-label={`Use ${t} theme`}
|
||||||
onChange={() => {
|
onChange={() => {
|
||||||
localStorage.setItem('theme', t);
|
localStorage.setItem('theme', t);
|
||||||
setTheme(t);
|
setTheme(t);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue