Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authoramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-01-19 19:31:36 +0300
committeramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-01-19 19:31:36 +0300
commit37f5532c8a9ba37dccc18139165f1c5434975314 (patch)
treed70dbe6a643b4028d6ec08a6178b70c2614a1ec2 /assets
parent864755871b10363a3cbe38d041e92be25a820084 (diff)
Add scroll spy to ToC and some small adaption for mobile view.
Diffstat (limited to 'assets')
-rw-r--r--assets/scss/journal.scss11
1 files changed, 9 insertions, 2 deletions
diff --git a/assets/scss/journal.scss b/assets/scss/journal.scss
index 749352d..c8d6e97 100644
--- a/assets/scss/journal.scss
+++ b/assets/scss/journal.scss
@@ -954,8 +954,11 @@ a {
.toc {
float: right;
border-radius: 5px;
- border: 30px, 30px, 30px, 30px;
- margin: 20px;
+ margin-left: 30px;
+ margin-right: 60px;
+ margin-top: 30px;
+ max-width: 260px;
+ overflow: auto;
background: rgba($color-accent, 0.05);
&,
* {
@@ -970,7 +973,11 @@ a {
.toc-content{
padding: 20px;
}
+ .toc-active{
+ color: darken($color-accent, 40%) !important;
+ }
@media screen and (max-width: $single-column-max-width) {
+ line-height: 2em;
float: none;
margin-top: 30px;
margin-left: 0;