Skip to content

Commit 2202104

Browse files
committed
All: remove outdated webkit- and moz- prefixes from stylesheets
This code is either unreachable or degrades perfectly fine without it if an older browser visits the sites. Keep the code simple by not shipping code exclusively to enhance older browsers.
1 parent 88519ab commit 2202104

File tree

8 files changed

+5
-101
lines changed

8 files changed

+5
-101
lines changed

themes/jquery.com/style.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ a,
5353
}
5454
.cross-browser .feature-box-image:hover {
5555
transition: all 0.7s;
56-
-webkit-transform: rotate(6.28rad);
57-
-ms-transform: rotate(6.28rad);
5856
transform: rotate(6.28rad);
5957
}
6058

themes/jquery.org/style.css

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@ Template: jquery
77
a, #sidebar h3 {
88
color: #0769ad;
99
}
10-
/*
11-
#content code a {
12-
background-color: rgba(6, 89, 150, 0.19);
13-
}
14-
15-
#content h1 {
16-
color: white;
17-
font-weight: normal;
18-
font-style: normal;
19-
}
20-
21-
#content h2 {
22-
color: white;
23-
font-weight: normal;
24-
font-style: normal;
25-
margin-bottom: 20px;
26-
}*/
2710

2811
.page-slug-index #banner-secondary.large-banner {
2912
padding-top: 20px;
@@ -395,29 +378,11 @@ a.icon-search::before {
395378
box-shadow: none;
396379
}
397380

398-
#content .choose-gifts input::-webkit-input-placeholder {
399-
color: rgba(51,51,51,0.75);
400-
}
401-
#content .choose-gifts input:-moz-placeholder {
402-
color: rgba(51,51,51,0.75);
403-
}
404-
#content .choose-gifts input::-moz-placeholder {
405-
color: rgba(51,51,51,0.75);
406-
}
407-
#content .choose-gifts input:-ms-input-placeholder {
381+
#content .choose-gifts input::placeholder {
408382
color: rgba(51,51,51,0.75);
409383
}
410384

411-
#content .choose-gifts textarea::-webkit-input-placeholder {
412-
color: rgba(51,51,51,0.75);
413-
}
414-
#content .choose-gifts textarea:-moz-placeholder {
415-
color: rgba(51,51,51,0.75);
416-
}
417-
#content .choose-gifts textarea::-moz-placeholder {
418-
color: rgba(51,51,51,0.75);
419-
}
420-
#content .choose-gifts textarea:-ms-input-placeholder {
385+
#content .choose-gifts textarea::placeholder {
421386
color: rgba(51,51,51,0.75);
422387
}
423388

themes/jquery/css/base.css

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -531,23 +531,7 @@ textarea {
531531
box-shadow: inset 0 1px 3px rgba(0,0,0,0.17);
532532
}
533533

534-
/*
535-
* 1. :-moz-placeholder has been deprecated in favor of ::-moz-placeholder.
536-
* 2. Using :placeholder for completeness.
537-
*/
538-
::-webkit-input-placeholder {
539-
color: #9a1B1E;
540-
}
541-
:-moz-placeholder { /* 1 */
542-
color: #9a1B1E;
543-
}
544-
::-moz-placeholder {
545-
color: #9a1B1E;
546-
}
547-
:-ms-placeholder {
548-
color: #9a1B1E;
549-
}
550-
:placeholder { /* 2 */
534+
::placeholder {
551535
color: #9a1B1E;
552536
}
553537

@@ -887,15 +871,8 @@ ul.icons li [class*=" icon-"] {
887871
}
888872
.icon-spin {
889873
display: inline-block;
890-
-moz-animation: spin 2s infinite linear;
891-
-o-animation: spin 2s infinite linear;
892-
-webkit-animation: spin 2s infinite linear;
893874
animation: spin 2s infinite linear;
894875
}
895-
@-webkit-keyframes spin {
896-
0% { -webkit-transform: rotate(0deg); }
897-
100% { -webkit-transform: rotate(359deg); }
898-
}
899876
@keyframes spin {
900877
0% { transform: rotate(0deg); }
901878
100% { transform: rotate(359deg); }
@@ -2236,7 +2213,6 @@ input[type="submit"].dark:hover {
22362213
#sidebar h3 {
22372214
font-size: 20px;
22382215
line-height: 18px;
2239-
background-image: -webkit-linear-gradient(left, #efefef, #f3f3f3);
22402216
background-image: linear-gradient(to right, #efefef, #f3f3f3);
22412217
margin-left: -20px;
22422218
margin-right: -20px;
@@ -2348,8 +2324,7 @@ footer .footer-icon-links li:hover a:before {
23482324
}
23492325

23502326
.multiplebgs.cssgradients footer {
2351-
background-image: -webkit-linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.0)), url(../images/bg-footer-noise.jpg); /* Chrome 10+, Saf6 */
2352-
background-image: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,0)), url(../images/bg-footer-noise.jpg); /* Firefox 16+, IE 10+, Opera 12.50+ */
2327+
background-image: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,0)), url(../images/bg-footer-noise.jpg);
23532328
background-repeat: repeat-x, repeat;
23542329
background-size: 100px 15px, 140px 140px;
23552330
}
@@ -2717,9 +2692,7 @@ footer .books li a cite {
27172692

27182693
#options header h2, #methods header h2, #extension-points header h2, #events header h2, #quick-nav h2 {
27192694
background: #cccccc; /* Old browsers */
2720-
background: -webkit-linear-gradient(top, #ffffff 0%,#eeeeee 17%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
27212695
background: linear-gradient(to bottom, #ffffff 0%,#eeeeee 17%,#cccccc 100%); /* W3C */
2722-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
27232696
margin: -10px -10px 10px -10px;
27242697
padding: 10px;
27252698
}
@@ -3140,11 +3113,6 @@ footer .books li a cite {
31403113
}
31413114
}
31423115

3143-
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
3144-
only screen and (min-resolution: 144dpi) {
3145-
3146-
}
3147-
31483116
/* Helper classes
31493117
========================================================================== */
31503118

themes/jquerymobile.com/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ a, .title, .entry-title { color: #108040; }
6363
#banner-secondary .download-box {
6464
border: 1px solid #aaa;
6565
background: #333;
66-
background: -webkit-linear-gradient(left, #333 0%, #444 100%);
6766
background: linear-gradient(to right, #333 0%, #444 100%);
6867
float: right;
6968
width: 335px;

themes/jqueryui.com/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ a,
2121
#banner-secondary .download-box {
2222
border: 1px solid #aaa;
2323
background: #333;
24-
background: -webkit-linear-gradient(left, #333 0%, #444 100%);
2524
background: linear-gradient(to right, #333 0%, #444 100%);
2625
float: right;
2726
width: 40%;

themes/learn.jquery.com/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ a {
7777
box-shadow: 0 0 5px -0.5px #ddd;
7878
border: 1px solid white;
7979
background: #fff7e3;
80-
background: -webkit-linear-gradient(top, #fffaf5 0%,#fff7e3 100%,#fff7e3 100%);
8180
background: linear-gradient(to bottom, #fffaf5 0%,#fff7e3 100%,#fff7e3 100%);
8281
margin-bottom: 1.8em;
8382
padding: 1em 1em 0 1em;

themes/plugins.jquery.com/style.css

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,7 @@ a {
7474
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(122, 206, 244, 0.6);
7575
}
7676

77-
/*
78-
* 1. :-moz-placeholder has been deprecated in favor of ::-moz-placeholder.
79-
* 2. Using :placeholder for completeness.
80-
*/
81-
#banner-secondary .searchform input::-webkit-input-placeholder {
82-
color: #aaa;
83-
}
84-
#banner-secondary .searchform input:-moz-placeholder { /* 1 */
85-
color: #aaa;
86-
}
87-
#banner-secondary .searchform input::-moz-placeholder {
88-
color: #aaa;
89-
}
90-
#banner-secondary .searchform input:-ms-input-placeholder {
91-
color: #aaa;
92-
}
93-
#banner-secondary .searchform input:placeholder { /* 2 */
77+
#banner-secondary .searchform input::placeholder {
9478
color: #aaa;
9579
}
9680

themes/sizzlejs.com/style.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ p {
99
a {
1010
color: #ff8200;
1111
}
12-
::-moz-selection {
13-
color: #fff;
14-
background: #78645a;
15-
}
1612
::selection {
1713
color: #fff;
1814
background: #78645a;
@@ -37,10 +33,6 @@ a {
3733
color: #ff6400;
3834
background-position: 0 100%;
3935
}
40-
#header span::-moz-selection {
41-
color: #fff;
42-
background: #ff6400;
43-
}
4436
#header span::selection {
4537
color: #fff;
4638
background: #ff6400;

0 commit comments

Comments
 (0)