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