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

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorRobert Bailey <robertbailey@google.com>2021-06-08 21:25:49 +0300
committerRobert Bailey <robertbailey@google.com>2021-06-08 21:25:49 +0300
commit9422346631f538db4aad511c5bc4e75e391ce851 (patch)
treed92a6841995ceb5415086acef65f945e0a9edf17 /assets
parenteebdfe123fbf946538c12b655e64bab41d86f994 (diff)
Allow setting the color of the root of the sidebar tree separately from the
primary color. Our site currently sets the primary color to white and also the background of the sidebar to white. Updating our docsy theme makes it so that the root of the sidebar tree disappears. This allows us to keep our theming and keep the root of the sidebar a dark contrasting color from the background.
Diffstat (limited to 'assets')
-rw-r--r--assets/scss/_sidebar-tree.scss6
-rw-r--r--assets/scss/_variables.scss1
2 files changed, 4 insertions, 3 deletions
diff --git a/assets/scss/_sidebar-tree.scss b/assets/scss/_sidebar-tree.scss
index d76b79f..a459b94 100644
--- a/assets/scss/_sidebar-tree.scss
+++ b/assets/scss/_sidebar-tree.scss
@@ -99,8 +99,8 @@
.td-sidebar-link.tree-root{
font-weight: $font-weight-bold;
- color: $primary;
- border-bottom: 1px $primary solid;
+ color: $td-sidebar-tree-root-color;
+ border-bottom: 1px $td-sidebar-tree-root-color solid;
margin-bottom: 1rem;
}
}
@@ -159,4 +159,4 @@
#content-desktop {display: none;}
#content-mobile {display: block;}
}
-} \ No newline at end of file
+}
diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss
index 9a55b53..224419d 100644
--- a/assets/scss/_variables.scss
+++ b/assets/scss/_variables.scss
@@ -46,6 +46,7 @@ $code-color: darken($secondary, 20%) !default;
// UI element colors
$border-color: $gray-300 !default;
+$td-sidebar-tree-root-color: $primary !default;
$td-sidebar-bg-color: rgba($primary, 0.03) !default;
$td-sidebar-border-color: $border-color !default;