Skip to content

Commit af8c16c

Browse files
committed
feat: add scrollbar css
fix: pre padding issue
1 parent 410af30 commit af8c16c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/style.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,21 @@
108108
--notion-gray_background_co: rgba(69, 75, 78, 0.3);
109109
}
110110

111+
::-webkit-scrollbar {
112+
background: transparent;
113+
width: 10px;
114+
height: 10px;
115+
}
116+
::-webkit-scrollbar-thumb {
117+
background: #d3d1cb;
118+
}
119+
::-webkit-scrollbar-track {
120+
background: #edece9;
121+
}
122+
*::selection {
123+
background: rgba(45, 170, 219, 0.3);
124+
}
125+
111126
.notion {
112127
box-sizing: border-box;
113128
font-size: 16px;
@@ -820,7 +835,6 @@ svg.notion-page-icon {
820835

821836
.notion-code {
822837
width: 100%;
823-
padding: 20px 16px 20px 20px;
824838
margin: 4px 0;
825839
border-radius: 3px;
826840
tab-size: 2;
@@ -830,6 +844,10 @@ svg.notion-page-icon {
830844
background: var(--bg-color-1);
831845
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
832846
}
847+
.notion-code > pre {
848+
padding: 34px 16px 32px 32px;
849+
margin: 0;
850+
}
833851

834852
.notion-column {
835853
display: flex;

0 commit comments

Comments
 (0)