-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprism.css
156 lines (135 loc) · 3.59 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
code[class*=language-],
pre[class*=language-] {
color: #000 !important;
background: 0 0 !important;
text-shadow: 0 1px #fff !important;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace !important;
font-size: 1em !important;
text-align: left !important;
white-space: pre !important;
word-spacing: normal !important;
word-break: normal !important;
word-wrap: normal !important;
line-height: 1.5 !important;
-moz-tab-size: 4 !important;
-o-tab-size: 4 !important;
tab-size: 4 !important;
-webkit-hyphens: none !important;
-moz-hyphens: none !important;
-ms-hyphens: none !important;
hyphens: none !important;
}
code[class*=language-] ::-moz-selection,
code[class*=language-]::-moz-selection,
pre[class*=language-] ::-moz-selection,
pre[class*=language-]::-moz-selection {
text-shadow: none !important;
background: #b3d4fc !important;
}
code[class*=language-] ::selection,
code[class*=language-]::selection,
pre[class*=language-] ::selection,
pre[class*=language-]::selection {
text-shadow: none !important;
background: #b3d4fc !important;
}
@media print {
code[class*=language-],
pre[class*=language-] {
text-shadow: none !important;
}
}
pre[class*=language-] {
padding: 1em !important;
margin: .5em 0 !important;
overflow: auto !important;
}
.prism-code:not(pre)>code[class*=language-],
pre[class*=language-] {
background: #f5f2f0 !important;
}
.prism-code:not(pre)>code[class*=language-] {
padding: .1em !important;
border-radius: .3em !important;
white-space: normal !important;
}
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
color: #708090 !important;
}
.token.punctuation {
color: #999 !important;
}
.token.namespace {
opacity: .7 !important;
}
.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
color: #905 !important;
}
.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string {
color: #690 !important;
}
.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url {
color: #9a6e3a !important;
background: hsla(0, 0%, 100%, .5) !important;
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a !important;
}
.token.class-name,
.token.function {
color: #dd4a68 !important;
}
.token.important,
.token.regex,
.token.variable {
color: #e90 !important;
}
.token.bold,
.token.important {
font-weight: 700 !important;
}
.token.italic {
font-style: italic !important;
}
.token.entity {
cursor: help !important;
}
.token.deleted {
display: block !important; /* Make the deleted line span the full width */
background-color: rgba(255, 0, 0, 0.2) !important; /* Light red background */
padding: 0.2em 0.5em !important; /* Optional padding for better spacing */
margin: 0 !important; /* Ensure no extra margins */
}
.token.inserted {
display: block !important; /* Make the inserted line span the full width */
background-color: rgba(0, 255, 0, 0.2) !important; /* Light green background */
padding: 0.2em 0.5em !important; /* Optional padding for better spacing */
margin: 0 !important; /* Ensure no extra margins */
}
pre[class*=language-] {
padding: 0.5em !important; /* Adjust padding to balance layout */
border-radius: 5px !important; /* Add rounded corners */
overflow: auto !important; /* Handle code overflow */
background: #f5f5f5 !important; /* Background for the code block */
white-space: pre-wrap !important; /* Preserve wrapping */
}