You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/10/27 14:15:02 UTC
[skywalking-website] branch master updated: scroll bar (#346)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push:
new 1598b30 scroll bar (#346)
1598b30 is described below
commit 1598b3079508a9bec6ca3295df6ba47d8c22a41a
Author: Juntao Zhang <71...@qq.com>
AuthorDate: Wed Oct 27 22:14:34 2021 +0800
scroll bar (#346)
---
layouts/shortcodes/downloads-block.html | 4 ++--
themes/docsy/assets/scss/_custom_project_doc.scss | 8 --------
themes/docsy/assets/scss/_styles_project.scss | 9 +++++++++
themes/docsy/layouts/docs/baseof.html | 2 +-
themes/docsy/layouts/projectDoc/baseof.html | 2 +-
5 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/layouts/shortcodes/downloads-block.html b/layouts/shortcodes/downloads-block.html
index 49da102..7a00d24 100755
--- a/layouts/shortcodes/downloads-block.html
+++ b/layouts/shortcodes/downloads-block.html
@@ -28,7 +28,7 @@
aria-haspopup="true" aria-expanded="false">
Source
</button>
- <div class="dropdown-menu">
+ <div class="dropdown-menu scroll-bar">
<div>
{{ range .source }}
<h6 class="dropdown-header">{{.version}}<span> | {{.date}}</span></h6>
@@ -50,7 +50,7 @@
aria-expanded="false">
Distribution
</button>
- <div class="dropdown-menu">
+ <div class="dropdown-menu scroll-bar">
<div>
{{ range .distribution }}
<h6 class="dropdown-header">{{.version}}<span> | {{.date}}</span></h6>
diff --git a/themes/docsy/assets/scss/_custom_project_doc.scss b/themes/docsy/assets/scss/_custom_project_doc.scss
index 8fd5782..f3ffc11 100644
--- a/themes/docsy/assets/scss/_custom_project_doc.scss
+++ b/themes/docsy/assets/scss/_custom_project_doc.scss
@@ -43,14 +43,6 @@
position: -webkit-sticky;
top: 0px;
background-color: #fff;
- &::-webkit-scrollbar {
- width: 4px;
- }
-
- &::-webkit-scrollbar-thumb {
- background-color: #bebebe !important;
- border-radius: 2px;
- }
h5 {
padding-top: 0;
diff --git a/themes/docsy/assets/scss/_styles_project.scss b/themes/docsy/assets/scss/_styles_project.scss
index 3be966a..57c53a2 100644
--- a/themes/docsy/assets/scss/_styles_project.scss
+++ b/themes/docsy/assets/scss/_styles_project.scss
@@ -178,3 +178,12 @@ table {
}
}
+.scroll-bar {
+ &::-webkit-scrollbar {
+ width: 5px;
+ }
+ &::-webkit-scrollbar-thumb {
+ background-color: #bebebe !important;
+ border-radius: 2px;
+ }
+}
\ No newline at end of file
diff --git a/themes/docsy/layouts/docs/baseof.html b/themes/docsy/layouts/docs/baseof.html
index bb4af12..2a01a56 100644
--- a/themes/docsy/layouts/docs/baseof.html
+++ b/themes/docsy/layouts/docs/baseof.html
@@ -53,7 +53,7 @@
<button type="button" class="btn btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
docs
</button>
- <div class="dropdown-menu">
+ <div class="dropdown-menu scroll-bar">
<div>
{{range .docs}}
<a class="dropdown-item" target="_blank" href="{{.link}}">{{.version}}</a>
diff --git a/themes/docsy/layouts/projectDoc/baseof.html b/themes/docsy/layouts/projectDoc/baseof.html
index 236c72c..ab085b4 100644
--- a/themes/docsy/layouts/projectDoc/baseof.html
+++ b/themes/docsy/layouts/projectDoc/baseof.html
@@ -12,7 +12,7 @@
<div class="td-main">
<div class="row flex-xl-nowrap">
- <div class="col-12 col-md-3 col-xl-2 d-print-none td-sidebar">
+ <div class="col-12 col-md-3 col-xl-2 d-print-none scroll-bar td-sidebar">
</div>
<main class="col-12 col-md-9 col-xl-8 pl-md-5 pr-md-4" role="main">