_sass/addon/commons.scss in jekyll-theme-chirpy-4.1.1 vs _sass/addon/commons.scss in jekyll-theme-chirpy-4.2.0
- old
+ new
@@ -51,10 +51,30 @@
color: var(--text-color);
-webkit-font-smoothing: antialiased;
font-family: 'Source Sans Pro', 'Microsoft Yahei', sans-serif;
}
+/* --- Scrollbar --- */
+
+$scrollbar-size: 7px;
+
+::-webkit-scrollbar {
+ width: $scrollbar-size;
+ height: $scrollbar-size;
+}
+
+::-webkit-scrollbar-track {
+ @at-root body#{&} {
+ -webkit-box-shadow: inset 0 0 6px var(--scrollbar-track-bg);
+ }
+}
+
+::-webkit-scrollbar-thumb {
+ background-color: var(--scrollbar-thumb-bg);
+ border-radius: calc(#{$scrollbar-size} / 2);
+}
+
/* --- Typography --- */
h1 {
@extend %heading;
@@ -458,13 +478,9 @@
> ol,
> ul {
padding-left: 2rem;
li {
- + li {
- margin-top: 0.3rem;
- }
-
ol,
ul { // sub list
padding-left: 2rem;
margin-top: 0.3rem;
}