-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scrollbar issue on safari and improve code scrollbar
- Loading branch information
Showing
4 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* from reset */ | ||
::-webkit-scrollbar-track { | ||
background: var(--theme); | ||
} | ||
|
||
.list:not(.dark)::-webkit-scrollbar-track { | ||
background: var(--code-bg); | ||
} | ||
|
||
::-webkit-scrollbar-thumb { | ||
background: var(--tertiary); | ||
border: 5px solid var(--theme); | ||
border-radius: var(--radius); | ||
} | ||
|
||
.list:not(.dark)::-webkit-scrollbar-thumb { | ||
border: 5px solid var(--code-bg); | ||
} | ||
|
||
::-webkit-scrollbar-thumb:hover { | ||
background: var(--secondary); | ||
} | ||
|
||
::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) { | ||
background: var(--theme); | ||
} | ||
|
||
/* from post-single */ | ||
.post-content .highlighttable td .highlight pre code::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
.post-content :not(table) ::-webkit-scrollbar-thumb { | ||
border: 2px solid var(--hljs-bg); | ||
background: rgb(113, 113, 117); | ||
} | ||
|
||
.post-content :not(table) ::-webkit-scrollbar-thumb:hover { | ||
background: rgb(163, 163, 165); | ||
} | ||
|
||
.gist table::-webkit-scrollbar-thumb { | ||
border: 2px solid rgb(255, 255, 255); | ||
background: rgb(173, 173, 173); | ||
} | ||
|
||
.gist table::-webkit-scrollbar-thumb:hover { | ||
background: rgb(112, 112, 112); | ||
} | ||
|
||
.post-content table::-webkit-scrollbar-thumb { | ||
border-width: 2px; | ||
} | ||
|
||
/* from zmedia */ | ||
@media screen and (min-width: 768px) { | ||
|
||
/* reset */ | ||
::-webkit-scrollbar { | ||
width: 19px; | ||
height: 11px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters