mirror of
http://101.35.51.105:3000/congyu/Hakysidian.git
synced 2026-04-28 05:50:49 +08:00
Simplify contents sidebar styles and markup
This commit is contained in:
+7
-18
@@ -623,7 +623,7 @@ hr {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
max-width: 68%;
|
max-width: 68%;
|
||||||
margin-right: 4em;
|
margin-right: 4em;
|
||||||
padding: 0.8rem 1.15rem 0.9rem 1.45rem;
|
padding: 0.8rem;
|
||||||
background-color: var(--color-surface);
|
background-color: var(--color-surface);
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: 1px solid var(--color-border);
|
border: 1px solid var(--color-border);
|
||||||
@@ -679,7 +679,7 @@ hr {
|
|||||||
|
|
||||||
div#contents-big li > a {
|
div#contents-big li > a {
|
||||||
display: block;
|
display: block;
|
||||||
margin-left: 0;
|
margin: 0 0.2rem;
|
||||||
padding: 0.14rem 0.32rem;
|
padding: 0.14rem 0.32rem;
|
||||||
border-radius: 0.55rem;
|
border-radius: 0.55rem;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
@@ -712,28 +712,17 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div#contents-big .mini-header a {
|
div#contents-big .mini-header a {
|
||||||
display: inline-flex;
|
display: inline;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 1.25rem;
|
|
||||||
height: 1.25rem;
|
|
||||||
margin-left: 0.25rem;
|
margin-left: 0.25rem;
|
||||||
background-color: var(--color-surface-muted);
|
|
||||||
border: 1px solid var(--color-border);
|
|
||||||
border-radius: 999px;
|
|
||||||
color: var(--color-link);
|
color: var(--color-link);
|
||||||
font-size: 0.78rem;
|
font-size: 0.85rem;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
vertical-align: middle;
|
vertical-align: baseline;
|
||||||
transition:
|
transition: color 0.18s ease;
|
||||||
color 0.18s ease,
|
|
||||||
background-color 0.18s ease,
|
|
||||||
border-color 0.18s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div#contents-big .mini-header a:hover {
|
div#contents-big .mini-header a:hover {
|
||||||
background-color: var(--color-linkhbg);
|
background-color: transparent;
|
||||||
border-color: var(--color-border-strong);
|
|
||||||
color: var(--color-linkh);
|
color: var(--color-linkh);
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -10,8 +10,7 @@ $partial("templates/head.html")$
|
|||||||
<!-- A table of contents on the left side, but only for screens
|
<!-- A table of contents on the left side, but only for screens
|
||||||
that are big enough -->
|
that are big enough -->
|
||||||
<div id="contents-big">
|
<div id="contents-big">
|
||||||
<p class="mini-header">Notes <a id="up-arrow" href="/">←</a></p>
|
<p class="mini-header"> <a href="#">Contents</a></p>
|
||||||
<p class="mini-header">Contents <a id="up-arrow" href="#">↑</a></p>
|
|
||||||
<div class="toc-scroll">
|
<div class="toc-scroll">
|
||||||
$toc$
|
$toc$
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user