Skip to content

Commit ffb2043

Browse files
authored
Twilight theme: Increase selector specificities of plugin overrides (#3081)
1 parent 52e8cee commit ffb2043

File tree

1 file changed

+3
-33
lines changed

1 file changed

+3
-33
lines changed

themes/prism-twilight.css

+3-33
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,6 @@ code[class*="language-"]::selection, code[class*="language-"] ::selection {
140140
cursor: help;
141141
}
142142

143-
pre[data-line] {
144-
padding: 1em 0 1em 3em;
145-
position: relative;
146-
}
147-
148143
/* Markup */
149144
.language-markup .token.tag,
150145
.language-markup .token.attr-name,
@@ -158,42 +153,17 @@ pre[data-line] {
158153
z-index: 1;
159154
}
160155

161-
.line-highlight {
156+
.line-highlight.line-highlight {
162157
background: hsla(0, 0%, 33%, 0.25); /* #545454 */
163158
background: linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
164159
border-bottom: 1px dashed hsl(0, 0%, 33%); /* #545454 */
165160
border-top: 1px dashed hsl(0, 0%, 33%); /* #545454 */
166-
left: 0;
167-
line-height: inherit;
168161
margin-top: 0.75em; /* Same as .prism’s padding-top */
169-
padding: inherit 0;
170-
pointer-events: none;
171-
position: absolute;
172-
right: 0;
173-
white-space: pre;
174162
z-index: 0;
175163
}
176164

177-
.line-highlight:before,
178-
.line-highlight[data-end]:after {
165+
.line-highlight.line-highlight:before,
166+
.line-highlight.line-highlight[data-end]:after {
179167
background-color: hsl(215, 15%, 59%); /* #8794A6 */
180-
border-radius: 999px;
181-
box-shadow: 0 1px white;
182168
color: hsl(24, 20%, 95%); /* #F5F2F0 */
183-
content: attr(data-start);
184-
font: bold 65%/1.5 sans-serif;
185-
left: .6em;
186-
min-width: 1em;
187-
padding: 0 .5em;
188-
position: absolute;
189-
text-align: center;
190-
text-shadow: none;
191-
top: .4em;
192-
vertical-align: .3em;
193-
}
194-
195-
.line-highlight[data-end]:after {
196-
bottom: .4em;
197-
content: attr(data-end);
198-
top: auto;
199169
}

0 commit comments

Comments
 (0)