Skip to content

Commit

Permalink
fix(toc): Enhance color on toc and links
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanjerome committed Jan 22, 2025
1 parent f081b77 commit 3c2ae10
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ source 'https://rubygems.org'
gem 'jekyll', '4.3.4'

group :jekyll_plugins do
gem 'nokogiri', '= 1.16.7'
gem 'nokogiri', '= 1.18.2'
gem 'jekyll-paginate', '= 1.1.0'
gem 'jemoji', '= 0.13.0'
gem 'premonition', '= 4.0.2'
gem 'jekyll-last-modified-at', '= 1.3.2'
gem 'jekyll-polyglot', '= 1.8.1'
gem 'jekyll-polyglot', '= 1.9.0'
gem 'jekyll_picture_tag', '= 2.1.0'
gem 'addressable', '= 2.8.7'
gem 'csv', '= 3.3.2'
end

gem 'webrick', '= 1.8.2'
gem 'webrick', '= 1.9.1'
33 changes: 18 additions & 15 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sitemap:
--discreet-color: #b4b4b4;
--shadow-color-flashy: 10, 16, 34;
--shadow-color: #0a1022;
--link-color: #3e64ff;
--link-color: #38c341;
--code-background: #747474;
--code-color: #fbfbfb;
}
Expand Down Expand Up @@ -391,11 +391,20 @@ a.toc-link {
color: currentColor;
height: 100%;
text-decoration: none;
&:hover{
color: var(--link-color);
}
}
.is-active-li {
> .toc-link {
font-weight: 700;
color: var(--link-color);
}
}
.is-collapsible {
max-height: 1000px;
overflow: hidden;
transition: all 300ms ease-in-out;
transition: all 0.2s ease-in-out;
}
.is-collapsed {
max-height: 0;
Expand All @@ -404,26 +413,20 @@ a.toc-link {
position: fixed !important;
top: 0;
}
.is-active-li {
color: var(--link-color);
}
.is-active-link {
font-weight: 700;
color: var(--link-color);
}
.toc-link::before {
background-color: #eee;
background-color: var(--body-color);
content: " ";
display: inline-block;
height: inherit;
height: 100%;
left: 0;
margin-top: -1px;
margin-top: 0;
position: absolute;
width: 4px;
width: 3px;
transition: background-color 0.2s ease, width 0.2s ease;
}
.is-active-link::before {
.is-active-li > .toc-link::before {
background-color: var(--link-color);
}
}
// Tocbot

.share-links {
Expand Down

0 comments on commit 3c2ae10

Please sign in to comment.