Remove unneeded prefixed CSS (#989) This PR removes – prefixed `linear-gradient` – prefixed `box-shadow` – prefixed `border-radius` – prefixed `opacity` + legacy IE alternatives – `-moz-transition` (http://caniuse.com/css-transitions)
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 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
diff --git a/plugins/line-highlight/prism-line-highlight.css b/plugins/line-highlight/prism-line-highlight.css
index 9c8a3cc..2ab49ed 100644
--- a/plugins/line-highlight/prism-line-highlight.css
+++ b/plugins/line-highlight/prism-line-highlight.css
@@ -11,9 +11,6 @@ pre[data-line] {
margin-top: 1em; /* Same as .prism’s padding-top */
background: hsla(24, 20%, 50%,.08);
- background: -moz-linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
- background: -webkit-linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
- background: -o-linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
pointer-events: none;
diff --git a/plugins/previewer-angle/prism-previewer-angle.css b/plugins/previewer-angle/prism-previewer-angle.css
index 31490c3..2bc9d4b 100644
--- a/plugins/previewer-angle/prism-previewer-angle.css
+++ b/plugins/previewer-angle/prism-previewer-angle.css
@@ -1,6 +1,4 @@
.prism-previewer-angle:before {
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
border-radius: 50%;
background: #fff;
}
diff --git a/plugins/previewer-base/prism-previewer-base.css b/plugins/previewer-base/prism-previewer-base.css
index 35e0a63..3dc2b46 100644
--- a/plugins/previewer-base/prism-previewer-base.css
+++ b/plugins/previewer-base/prism-previewer-base.css
@@ -14,13 +14,8 @@
height: 32px;
margin-left: -16px;
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=$opacity)";
- filter: alpha(opacity=0);
- -khtml-opacity: 0;
- -moz-opacity: 0;
opacity: 0;
-webkit-transition: opacity .25s;
- -moz-transition: opacity .25s;
-o-transition: opacity .25s;
transition: opacity .25s;
}
@@ -39,14 +34,8 @@
right: -5px;
left: -5px;
bottom: -5px;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
border-radius: 10px;
border: 5px solid #fff;
- -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
- -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
- -ms-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
- -o-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
}
@@ -68,9 +57,5 @@
border-bottom-color: #fff;
}
.prism-previewer.active {
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=$opacity)";
- filter: alpha(opacity=1);
- -khtml-opacity: 1;
- -moz-opacity: 1;
opacity: 1;
}
\ No newline at end of file
diff --git a/plugins/previewer-gradient/prism-previewer-gradient.css b/plugins/previewer-gradient/prism-previewer-gradient.css
index 6152a6e..7924a65 100644
--- a/plugins/previewer-gradient/prism-previewer-gradient.css
+++ b/plugins/previewer-gradient/prism-previewer-gradient.css
@@ -15,13 +15,7 @@
left: -5px;
right: -5px;
bottom: -5px;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
border-radius: 10px;
border: 5px solid #fff;
- -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
- -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
- -ms-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
- -o-box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) inset, 0 0 10px rgba(0, 0, 0, 0.75);
}
\ No newline at end of file
diff --git a/plugins/previewer-time/prism-previewer-time.css b/plugins/previewer-time/prism-previewer-time.css
index d0363a2..53a8944 100644
--- a/plugins/previewer-time/prism-previewer-time.css
+++ b/plugins/previewer-time/prism-previewer-time.css
@@ -59,8 +59,6 @@
}
.prism-previewer-time:before {
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
border-radius: 50%;
background: #fff;
}
diff --git a/plugins/show-language/prism-show-language.css b/plugins/show-language/prism-show-language.css
index 646daaf..3ada3eb 100644
--- a/plugins/show-language/prism-show-language.css
+++ b/plugins/show-language/prism-show-language.css
@@ -18,8 +18,6 @@ div.prism-show-language > div.prism-show-language-label {
padding: 0 0.5em;
text-shadow: none;
z-index: 1;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
box-shadow: none;
-webkit-transform: none;
-moz-transform: none;
diff --git a/themes/prism-coy.css b/themes/prism-coy.css
index cc871d3..1e6cff7 100644
--- a/themes/prism-coy.css
+++ b/themes/prism-coy.css
@@ -30,15 +30,9 @@ pre[class*="language-"] {
pre[class*="language-"] {
position: relative;
margin: .5em 0;
- -webkit-box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
- -moz-box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
border-left: 10px solid #358ccb;
background-color: #fdfdfd;
- background-image: -webkit-linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
- background-image: -moz-linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
- background-image: -ms-linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
- background-image: -o-linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
background-size: 3em 3em;
background-origin: content-box;
@@ -68,10 +62,6 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"] {
position: relative;
padding: .2em;
- -webkit-border-radius: 0.3em;
- -moz-border-radius: 0.3em;
- -ms-border-radius: 0.3em;
- -o-border-radius: 0.3em;
border-radius: 0.3em;
color: #c92c2c;
border: 1px solid rgba(0, 0, 0, 0.1);
@@ -90,8 +80,6 @@ pre[class*="language-"]:after {
width: 40%;
height: 20%;
max-height: 13em;
- -webkit-box-shadow: 0px 13px 8px #979797;
- -moz-box-shadow: 0px 13px 8px #979797;
box-shadow: 0px 13px 8px #979797;
-webkit-transform: rotate(-2deg);
-moz-transform: rotate(-2deg);
@@ -193,8 +181,6 @@ pre[class*="language-"]:after {
pre[class*="language-"]:before,
pre[class*="language-"]:after {
bottom: 14px;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
box-shadow: none;
}
diff --git a/themes/prism-twilight.css b/themes/prism-twilight.css
index 0b47413..504ca70 100644
--- a/themes/prism-twilight.css
+++ b/themes/prism-twilight.css
@@ -158,9 +158,6 @@ pre[data-line] {
}
.line-highlight {
- background: -moz-linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
- background: -o-linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
- background: -webkit-linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
background: hsla(0, 0%, 33%, 0.25); /* #545454 */
background: linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)); /* #545454 */
border-bottom: 1px dashed hsl(0, 0%, 33%); /* #545454 */