Skip to content

Commit cd234dc

Browse files
committed
update linear-gradient syntax from left to to right
1 parent 49cf899 commit cd234dc

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

plugins/line-highlight/prism-line-highlight.css

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ pre[data-line] {
1111
margin-top: 1em; /* Same as .prism’s padding-top */
1212

1313
background: hsla(24, 20%, 50%,.08);
14-
background: -moz-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
15-
background: -webkit-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
16-
background: -o-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
17-
background: linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
18-
14+
background: -moz-linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
15+
background: -webkit-linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
16+
background: -o-linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
17+
background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
18+
1919
pointer-events: none;
20-
20+
2121
line-height: inherit;
2222
white-space: pre;
2323
}
@@ -39,9 +39,9 @@ pre[data-line] {
3939
text-shadow: none;
4040
box-shadow: 0 1px white;
4141
}
42-
42+
4343
.line-highlight[data-end]:after {
4444
content: attr(data-end);
4545
top: auto;
4646
bottom: .4em;
47-
}
47+
}

themes/prism-twilight.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ pre[data-line] {
158158
}
159159

160160
.line-highlight {
161-
background: -moz-linear-gradient(left, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
162-
background: -o-linear-gradient(left, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
163-
background: -webkit-linear-gradient(left, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
161+
background: -moz-linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
162+
background: -o-linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
163+
background: -webkit-linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
164164
background: hsla(0, 0%, 33%, 0.25); /* #545454 */
165-
background: linear-gradient(left, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
165+
background: linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
166166
border-bottom: 1px dashed hsl(0, 0%, 33%); /* #545454 */
167167
border-top: 1px dashed hsl(0, 0%, 33%); /* #545454 */
168168
left: 0;

0 commit comments

Comments
 (0)