Skip to content

Commit

Permalink
Fix table of content view
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedAliRashad committed Aug 9, 2022
1 parent 5ab889b commit 8ab9426
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions _sass/misc/article-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

.post-menu {
padding-left: 20px;
padding-right: 0px;
min-width: 200px;
max-width: 230px;

Expand All @@ -16,9 +16,12 @@

.post-menu-content {
ul {
border-left: 1px solid #e9ecef;
border-right: 3px solid #5b9ddf;
$indent: $base-font-size / 4;
$active-bgcolor: #ecebec;
display: flex;
flex-direction: column;
gap: 7px;

@for $i from 2 to 7 {
.h-h#{$i} {
Expand Down Expand Up @@ -46,8 +49,8 @@
.active {
background-color: $active-bgcolor;
transition: background 0.5s;
border-left: 2px solid #202020;
margin-left: -2px;
border-right: 2px solid #202020;
margin-right: -2px;

&:hover {
background-color: lighten($active-bgcolor, 2%);
Expand Down
4 changes: 2 additions & 2 deletions _sass/yat/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ html[data-theme="dark"] {

.post-menu-content {
ul {
border-left: 1px solid #787878;
border-right: 3px solid #db1b1b;

.active {
background-color: #2d2d2d;
border-left: 2px solid #aaa;
border-right: 2px solid #aaa;
}

a {
Expand Down

0 comments on commit 8ab9426

Please sign in to comment.