diff --git a/assets/css/main.css b/assets/css/main.css index e42f2a17..4f705d0b 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -174,7 +174,8 @@ h6::before { color: var(--maincolor); content: '###### '; } .toc { background-color: #ececec; - border-radius: 5px; + /* border-radius: 5px; */ + opacity: 0.20; color: #232333; flex: 0 0 auto; height: auto; @@ -184,6 +185,11 @@ h6::before { color: var(--maincolor); content: '###### '; } padding: 10px; position: sticky; top: 20px; + transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1); +} + +.toc:hover { + opacity: 1; } /* Footer */ diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3739a69d..7eb761b1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -33,10 +33,36 @@