-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
113 lines (96 loc) · 2.5 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
@import 'prism-themes/themes/prism-vsc-dark-plus.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
font-family:
ui-sans-serif,
system-ui,
-apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Helvetica Neue,
Arial,
Noto Sans,
sans-serif,
Apple Color Emoji,
Segoe UI Emoji,
Segoe UI Symbol,
Noto Color Emoji;
}
::-webkit-scrollbar {
width: 14px;
}
::-webkit-scrollbar-track {
background: theme('colors.neutral.100');
border: 1px none theme('colors.neutral.300');
border-left-style: solid;
}
::-webkit-scrollbar-thumb {
background: theme('colors.neutral.200');
border: 1px solid theme('colors.neutral.300');
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background: theme('colors.neutral.300');
}
:is(.dark) ::-webkit-scrollbar-track {
background: theme('colors.neutral.950');
border: 1px none theme('colors.neutral.900');
border-left-style: solid;
}
:is(.dark) ::-webkit-scrollbar-thumb {
background: theme('colors.neutral.900');
border: 1px solid theme('colors.neutral.800');
border-radius: 8px;
}
pre::-webkit-scrollbar-track {
background: theme('colors.neutral.950');
border: none;
}
pre::-webkit-scrollbar-thumb {
background: theme('colors.neutral.900');
border: none;
}
pre::-webkit-scrollbar-thumb:hover {
background: theme('colors.neutral.800');
}
/**
* Inspired by gatsby remark prism - https://www.gatsbyjs.com/plugins/gatsby-remark-prismjs/
* 1. Make the element just wide enough to fit its content.
* 2. Always fill the visible space in .code-highlight.
*/
.code-highlight {
float: left; /* 1 */
min-width: calc(100% - 3px); /* 2 */
}
.code-line {
display: block;
padding-left: 16px;
padding-right: 16px;
margin-left: -16px;
margin-right: -16px;
border-left: 4px solid rgba(0, 0, 0, 0); /* Set placeholder for highlight accent border color to transparent */
}
.code-line.inserted {
background-color: rgba(16, 185, 129, 0.2); /* Set inserted line (+) color */
}
.code-line.deleted {
background-color: rgba(239, 68, 68, 0.2); /* Set deleted line (-) color */
}
.highlight-line {
margin-left: -16px;
margin-right: -16px;
background-color: rgba(55, 65, 81, 0.5); /* Set highlight bg color */
border-left: 4px solid rgb(59, 130, 246); /* Set highlight accent border color */
}
.line-number::before {
display: inline-block;
width: 1rem;
text-align: right;
margin-right: 16px;
margin-left: -8px;
color: rgb(156, 163, 175); /* Line number color */
content: attr(line);
}