💄 Style: adjust toc style (#65)

This commit is contained in:
Cell
2022-02-17 18:01:22 +08:00
parent d879da79d4
commit 8bcd9af913
5 changed files with 23 additions and 21 deletions
+1
View File
@@ -15,6 +15,7 @@ html {
}
/* scrollbar, only support webkit */
// TODO
::-webkit-scrollbar {
width: .5rem;
height: .5rem;
+16 -4
View File
@@ -1,26 +1,38 @@
@media only screen and (min-width: 1441px) {
.page {
width: 66%;
width: 60%;
[page-style=wide] & {
width: 70%;
}
}
#toc-auto {
width: 20%!important;
}
}
@media only screen and (max-width: 1440px) {
.page {
width: 60%;
width: 56%;
[page-style=wide] & {
width: 66%;
width: 60%;
}
}
#toc-auto {
width: 20%!important;
}
}
@media only screen and (max-width: 1200px) {
.page {
width: 56%!important;
width: 52%!important;
}
#toc-auto {
width: 20%!important;
}
#header-desktop .header-wrapper {
+4 -15
View File
@@ -49,29 +49,18 @@
#toc-auto {
display: block;
// position: absolute;
// width: $MAX_LENGTH;
// max-width: 0;
width: 15%; // TODO
position: sticky;
top: $header-height + 1rem;
height: 100%;
padding-left: .8rem;
padding-right: .8rem;
margin-left: 1rem;
margin: 1rem;
border-left: 4px solid $global-border-color;
@include overflow-wrap(break-word);
box-sizing: border-box;
// top: 10rem;
left: 0;
visibility: hidden;
[header-desktop] & {
margin-top: $header-height + 5rem;
}
[header-desktop=normal] & {
// top: 5rem;
margin-top: 5rem;
}
@include blur;
[theme=dark] & {
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long