-
Notifications
You must be signed in to change notification settings - Fork 0
/
prism.css
125 lines (107 loc) · 2.56 KB
/
prism.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
114
115
116
117
118
119
120
121
122
123
124
125
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:[email protected]&display=swap');
pre[class*='language-'] {
font-size: 12px;
font-family: 'Fira Code', monospace;
color: theme('colors.zinc.50');
margin-top: 0rem !important;
border-width: 1px;
border-bottom-right-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-color: theme('colors.neutral.700');
}
.token.tag,
.token.class-name,
.token.selector,
.token.selector .class,
.token.selector.class,
.token.function {
color: theme('colors.pink.400');
}
.token.attr-name,
.token.keyword,
.token.rule,
.token.pseudo-class,
.token.important {
color: theme('colors.blue.300');
}
.token.module {
color: theme('colors.purple.300');
}
.token.attr-value {
color: theme('colors.blue.300');
}
.token.string {
color: theme('colors.orange.300');
}
.token.class {
color: theme('colors.teal.300');
}
.token.punctuation,
.token.attr-equals {
color: theme('colors.zinc.500');
}
.token.unit,
.language-css .token.function {
color: theme('colors.sky.200');
}
.token.comment {
color: theme('colors.emerald.400');
opacity: 0.7;
}
.token.property,
.token.operator,
.token.combinator {
color: theme('colors.zinc.400');
}
.code-highlight {
float: left; /* 1 */
min-width: 100%; /* 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 */
line-height: 1.5rem;
}
.code-line.inserted {
background-color: theme(
'colors.emerald.900'
); /* Set inserted line (+) color */
}
.code-line.deleted {
background-color: theme('colors.red.900'); /* Set deleted line (-) color */
}
.highlight-line {
margin-left: -14px;
margin-right: -16px;
background-color: theme('colors.zinc.800'); /* Set highlight bg color */
border-left: 2px solid theme('colors.amber.400'); /* Set highlight accent border color */
}
.line-number::before {
display: inline-block;
width: 1rem;
text-align: right;
margin-right: 16px;
margin-left: -8px;
color: theme('colors.zinc.500');
content: attr(line);
}
.rehype-code-title {
margin: 0 !important;
display: inline-flex;
position: relative;
top: 1rem;
left: 2rem;
background: theme('colors.zinc.900');
color: theme('colors.zinc.100');
font-family: theme('fontFamily.mono');
padding: 0.25rem 1.5rem;
border-radius: 0.5rem 0.5rem 0 0;
border-top: 4px solid theme('colors.indigo.600');
font-size: 0.8rem;
}