Skip to content

Commit

Permalink
style: restyle sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
lotusk08 committed Dec 10, 2024
1 parent cf886ce commit 99d1e28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ node tools/lqip/index.js
- feat: TOC auto hidden/show with scrolling/hover
- style: moving social icon from sidebar to footer
- style: merge tag to archive page. Moving about page to footer. Hide tab, about, category.
- style: restyle sidebar: remove background, restyle nav.link hover effect.

[theme]: https://rubygems.org/gems/jekyll-theme-chirpy
[ci]: https://github.com/lotusk08/lotusk08.github.io/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster
Expand Down
2 changes: 1 addition & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<nav class="flex-column flex-grow-1 w-100 ps-0">
<ul class="nav">
<!-- home -->
<li class="nav-item{% if page.layout == 'home' %}{{ " active" }}{% endif %}">
<!--<li class="nav-item{% if page.layout == 'home' %}{{ " active" }}{% endif %}">
<a href="{{ '/' | relative_url }}" class="nav-link">
<i class="fa-fw fas fa-home"></i>
<span>{{ site.data.locales[include.lang].tabs.home | upcase }}</span>
Expand Down
2 changes: 1 addition & 1 deletion _sass/abstracts/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* sidebar */

$sidebar-width: 260px !default; /* the basic width */
$sidebar-width: 240px !default; /* the basic width */
$sidebar-width-large: 300px !default; /* screen width: >= 1650px */
$sb-btn-gap: 0.8rem !default;
$sb-btn-gap-lg: 1rem !default;
Expand Down
4 changes: 2 additions & 2 deletions _sass/layout/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
border-right: 1px solid var(--tb-border-color);

li.nav-item {
opacity: 1;
opacity: 0.9;
width: 100%;

@include mx.pl-pr(1.5rem);
Expand All @@ -149,7 +149,7 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */

i {
font-size: 95%;
opacity: 1;
opacity: 0.8;
margin-right: 1.5rem;
}

Expand Down

0 comments on commit 99d1e28

Please sign in to comment.