diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-05 14:18:42 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-05 14:18:42 +0200 |
commit | cca84f6716cdbb8c4702ef1dca61951b84465a9d (patch) | |
tree | 1db1ce8c6af568767d33d483bad8c1304ccc3295 /assets/css | |
parent | shell: style scrollbars (diff) | |
download | jekyll-theme-cca84f6716cdbb8c4702ef1dca61951b84465a9d.tar.gz jekyll-theme-cca84f6716cdbb8c4702ef1dca61951b84465a9d.zip |
move scrollbar styling to scrollbar.css
Diffstat (limited to '')
-rw-r--r-- | assets/css/jekyll-theme.css | 1 | ||||
-rw-r--r-- | assets/css/jekyll-theme/scrollbar.css | 18 | ||||
-rw-r--r-- | assets/css/jekyll-theme/shell.css | 18 |
3 files changed, 19 insertions, 18 deletions
diff --git a/assets/css/jekyll-theme.css b/assets/css/jekyll-theme.css index 5491dcb..79fde65 100644 --- a/assets/css/jekyll-theme.css +++ b/assets/css/jekyll-theme.css @@ -1,6 +1,7 @@ @import 'jekyll-theme/fix_bootstrap.css'; @import 'jekyll-theme/footer.css'; @import 'jekyll-theme/posts.css'; +@import 'jekyll-theme/scrollbar.css'; @import 'jekyll-theme/shell.css'; @import 'jekyll-theme/snippets.css'; @import 'jekyll-theme/syntax.css'; diff --git a/assets/css/jekyll-theme/scrollbar.css b/assets/css/jekyll-theme/scrollbar.css new file mode 100644 index 0000000..8e7bf01 --- /dev/null +++ b/assets/css/jekyll-theme/scrollbar.css @@ -0,0 +1,18 @@ +/* Scrollbars. */ +/* Firefox: */ +.pretty-scrollbar, pre { + scrollbar-width: thin; + scrollbar-color: #ccc #f0f0f0; +} +/* Chrome: */ +.pretty-scrollbar::-webkit-scrollbar, pre::-webkit-scrollbar { + width: 4px; + height: 4px; +} +.pretty-scrollbar::-webkit-scrollbar-track, pre::-webkit-scrollbar-track { + background: #f0f0f0; +} +.pretty-scrollbar::-webkit-scrollbar-thumb, pre::-webkit-scrollbar-thumb { + background: #ccc; +} + diff --git a/assets/css/jekyll-theme/shell.css b/assets/css/jekyll-theme/shell.css index e68543b..215d610 100644 --- a/assets/css/jekyll-theme/shell.css +++ b/assets/css/jekyll-theme/shell.css @@ -50,21 +50,3 @@ .shell-out { border-width: 0 0 thin 0; } - -/* Scrollbars. */ -/* Firefox: */ -.shell * { - scrollbar-width: thin; - scrollbar-color: #ccc #f0f0f0; -} -/* Chrome: */ -.shell *::-webkit-scrollbar { - width: 4px; - height: 4px; -} -.shell *::-webkit-scrollbar-track { - background: #f0f0f0; -} -.shell *::-webkit-scrollbar-thumb { - background: #ccc; -} |