mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-06-22 00:51:55 +00:00
fix sidebar styles
This commit is contained in:
parent
e6059bdc6b
commit
26e8fc6fd4
@ -17,7 +17,7 @@ $body-min-width: 20rem !default;
|
|||||||
$container-max-width: 1064px !default;
|
$container-max-width: 1064px !default;
|
||||||
|
|
||||||
$header-height: 3.5rem !default;
|
$header-height: 3.5rem !default;
|
||||||
$menu-width: 340px !default;
|
$menu-width: 248px + $padding-16 + $padding-16 !default;
|
||||||
$toc-width: 16rem !default;
|
$toc-width: 16rem !default;
|
||||||
|
|
||||||
$mobile-breakpoint: 768px;
|
$mobile-breakpoint: 768px;
|
||||||
|
@ -137,8 +137,8 @@ ul.pagination {
|
|||||||
|
|
||||||
.book-menu-content {
|
.book-menu-content {
|
||||||
width: $menu-width;
|
width: $menu-width;
|
||||||
padding: $padding-16;
|
|
||||||
background: var(--body-background);
|
background: var(--body-background);
|
||||||
|
padding: $padding-16;
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
@ -252,7 +252,7 @@ body[dir="rtl"] .book-menu {
|
|||||||
.book-page {
|
.book-page {
|
||||||
min-width: $body-min-width;
|
min-width: $body-min-width;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
padding: $padding-16;
|
padding: $padding-8
|
||||||
}
|
}
|
||||||
|
|
||||||
.book-post {
|
.book-post {
|
||||||
@ -539,10 +539,8 @@ body[dir="rtl"] .book-menu {
|
|||||||
|
|
||||||
// Extra space for big screens
|
// Extra space for big screens
|
||||||
@media screen and (min-width: $container-max-width) {
|
@media screen and (min-width: $container-max-width) {
|
||||||
.book-page,
|
|
||||||
.book-menu .book-menu-content,
|
|
||||||
.book-toc .book-toc-content {
|
.book-toc .book-toc-content {
|
||||||
padding: 8px $padding-16;
|
padding: $padding-16;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user