@@ -140,11 +140,6 @@ code[class*="language-"]::selection, code[class*="language-"] ::selection {
140
140
cursor : help;
141
141
}
142
142
143
- pre [data-line ] {
144
- padding : 1em 0 1em 3em ;
145
- position : relative;
146
- }
147
-
148
143
/* Markup */
149
144
.language-markup .token .tag ,
150
145
.language-markup .token .attr-name ,
@@ -158,42 +153,17 @@ pre[data-line] {
158
153
z-index : 1 ;
159
154
}
160
155
161
- .line-highlight {
156
+ .line-highlight . line-highlight {
162
157
background : hsla (0 , 0% , 33% , 0.25 ); /* #545454 */
163
158
background : linear-gradient (to right, hsla (0 , 0% , 33% , .1 ) 70% , hsla (0 , 0% , 33% , 0 )); /* #545454 */
164
159
border-bottom : 1px dashed hsl (0 , 0% , 33% ); /* #545454 */
165
160
border-top : 1px dashed hsl (0 , 0% , 33% ); /* #545454 */
166
- left : 0 ;
167
- line-height : inherit;
168
161
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;
174
162
z-index : 0 ;
175
163
}
176
164
177
- .line-highlight : before ,
178
- .line-highlight [data-end ]: after {
165
+ .line-highlight . line-highlight : before ,
166
+ .line-highlight . line-highlight [data-end ]: after {
179
167
background-color : hsl (215 , 15% , 59% ); /* #8794A6 */
180
- border-radius : 999px ;
181
- box-shadow : 0 1px white;
182
168
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;
199
169
}
0 commit comments