Skip to content

Commit 1cb97a5

Browse files
committed
Remove unnecessary transitions
1 parent efa71d7 commit 1cb97a5

1 file changed

Lines changed: 17 additions & 111 deletions

File tree

qa-theme/SnowFlat/qa-styles.css

Lines changed: 17 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ blockquote p {
324324
text-indent: -9999px;
325325
border: none;
326326
outline: none;
327-
-webkit-transition: background-image 0.5s;
328327
transition: background-image 0.5s;
329328
}
330329
.qa-notice-close-button:hover, .qa-notice-close-button:focus {
@@ -915,8 +914,6 @@ blockquote p {
915914
height: 38px;
916915
margin: 0;
917916
border: none;
918-
-webkit-transition: background-position 0s;
919-
transition: background-position 0s;
920917
}
921918
.qa-favorite-button:hover, .qa-unfavorite-button:hover {
922919
background-color: #f39c12;
@@ -1071,8 +1068,6 @@ blockquote p {
10711068
padding: 0;
10721069
position: absolute;
10731070
left: 4px;
1074-
-webkit-transition: all 0s;
1075-
transition: all 0s;
10761071
}
10771072
.qa-vote-up-button:hover, .qa-vote-up-button:focus, .qa-vote-up-button:active,
10781073
.qa-vote-down-button:hover, .qa-vote-down-button:focus, .qa-vote-down-button:active,
@@ -1313,13 +1308,12 @@ blockquote p {
13131308
padding: 2px 8px;
13141309
margin-bottom: 2px;
13151310
text-decoration: none !important;
1316-
transition: all 0.75s ease-in-out 0s;
1311+
transition: background 0.25s ease-in-out;
13171312
}
13181313
.qa-tag-link:hover,
13191314
.qa-widget-side .qa-q-view-tag-item:hover {
13201315
background: #f39c12;
13211316
color: #fff !important;
1322-
transition: all 0.25s ease-in-out 0s;
13231317
}
13241318
.qa-tag-link.qa-tag-favorited,
13251319
.qa-widget-side .qa-q-view-tag-item.qa-tag-favorited {
@@ -1526,8 +1520,6 @@ blockquote p {
15261520
@media (min-width: 980px) {
15271521
.qa-top-users-label .qa-user-link:hover:after,
15281522
.qa-top-users-label .qa-user-link:focus:after {
1529-
-ms-transform: translate(80px, 0);
1530-
-webkit-transform: translate(80px, 0);
15311523
transform: translate(80px, 0);
15321524
}
15331525

@@ -1543,11 +1535,8 @@ blockquote p {
15431535
border-top: 7px solid transparent;
15441536
border-bottom: 7px solid transparent;
15451537
border-left: 7px solid #e74c3c;
1546-
-ms-transform: translate(0, 0);
1547-
-webkit-transform: translate(0, 0);
15481538
transform: translate(0, 0);
1549-
-webkit-transition: all 0.5s ease;
1550-
transition: all 0.5s ease;
1539+
transition: transform 0.5s ease;
15511540
}
15521541
}
15531542

@@ -1801,8 +1790,6 @@ input, textarea, select {
18011790
border: 1px solid #bdc3c7;
18021791
background-color: #fff;
18031792
font-family: "Ubuntu", "Helvetica", "Arial", "FreeSans", sans-serif;
1804-
-webkit-transition: all 0.3s;
1805-
transition: all 0.3s;
18061793
}
18071794
input:focus, textarea:focus, select:focus {
18081795
background-color: #fff;
@@ -1866,8 +1853,6 @@ input[type="submit"], button {
18661853
padding: 10px 15px;
18671854
border: 0;
18681855
font-size: 14px;
1869-
-webkit-transition-duration: 0s;
1870-
transition-duration: 0s;
18711856
background: #3498db none;
18721857
color: #fff;
18731858
}
@@ -2172,8 +2157,6 @@ input[type="submit"], button {
21722157
padding: 10px 15px;
21732158
border: 0;
21742159
font-size: 14px;
2175-
-webkit-transition-duration: 0s;
2176-
transition-duration: 0s;
21772160
background: #2c3e50 none center no-repeat;
21782161
color: #fff;
21792162
width: 32px;
@@ -2564,8 +2547,7 @@ input[type="submit"], button {
25642547
margin: 0;
25652548
position: relative;
25662549
background: url('images/answer-select.png') no-repeat center;
2567-
-webkit-transition: all 0.5s;
2568-
transition: all 0.5s;
2550+
transition: background-color 0.5s;
25692551
}
25702552

25712553
.qa-a-select-button {
@@ -3018,8 +3000,6 @@ input[type="submit"], button {
30183000
.qa-activity-count-item:hover:before {
30193001
opacity: 1;
30203002
-webkit-animation: shake 0.25s;
3021-
-moz-animation: shake 0.25s;
3022-
-o-animation: shake 0.25s;
30233003
animation: shake 0.25s;
30243004
}
30253005
.qa-activity-count-item:nth-child(1) {
@@ -3421,96 +3401,22 @@ input[type="submit"], button {
34213401
}
34223402

34233403
@-webkit-keyframes shake {
3424-
0% {
3425-
transform: scale(1);
3426-
}
3427-
17% {
3428-
transform: scale(1.5);
3429-
}
3430-
34% {
3431-
transform: scale(0.8);
3432-
}
3433-
51% {
3434-
transform: scale(1.1);
3435-
}
3436-
68% {
3437-
transform: scale(0.9);
3438-
}
3439-
85% {
3440-
transform: scale(1.05);
3441-
}
3442-
100% {
3443-
transform: scale(1);
3444-
}
3445-
}
3446-
@-moz-keyframes shake {
3447-
0% {
3448-
transform: scale(1);
3449-
}
3450-
17% {
3451-
transform: scale(1.5);
3452-
}
3453-
34% {
3454-
transform: scale(0.8);
3455-
}
3456-
51% {
3457-
transform: scale(1.1);
3458-
}
3459-
68% {
3460-
transform: scale(0.9);
3461-
}
3462-
85% {
3463-
transform: scale(1.05);
3464-
}
3465-
100% {
3466-
transform: scale(1);
3467-
}
3468-
}
3469-
@-ms-keyframes shake {
3470-
0% {
3471-
transform: scale(1);
3472-
}
3473-
17% {
3474-
transform: scale(1.5);
3475-
}
3476-
34% {
3477-
transform: scale(0.8);
3478-
}
3479-
51% {
3480-
transform: scale(1.1);
3481-
}
3482-
68% {
3483-
transform: scale(0.9);
3484-
}
3485-
85% {
3486-
transform: scale(1.05);
3487-
}
3488-
100% {
3489-
transform: scale(1);
3490-
}
3404+
0% { transform: scale(1); }
3405+
17% { transform: scale(1.5); }
3406+
34% { transform: scale(0.8); }
3407+
51% { transform: scale(1.1); }
3408+
68% { transform: scale(0.9); }
3409+
85% { transform: scale(1.05); }
3410+
100% { transform: scale(1); }
34913411
}
34923412
@keyframes shake {
3493-
0% {
3494-
transform: scale(1);
3495-
}
3496-
17% {
3497-
transform: scale(1.5);
3498-
}
3499-
34% {
3500-
transform: scale(0.8);
3501-
}
3502-
51% {
3503-
transform: scale(1.1);
3504-
}
3505-
68% {
3506-
transform: scale(0.9);
3507-
}
3508-
85% {
3509-
transform: scale(1.05);
3510-
}
3511-
100% {
3512-
transform: scale(1);
3513-
}
3413+
0% { transform: scale(1); }
3414+
17% { transform: scale(1.5); }
3415+
34% { transform: scale(0.8); }
3416+
51% { transform: scale(1.1); }
3417+
68% { transform: scale(0.9); }
3418+
85% { transform: scale(1.05); }
3419+
100% { transform: scale(1); }
35143420
}
35153421

35163422
@-webkit-keyframes answer-highlight {

0 commit comments

Comments
 (0)