Commit 9f600d0a by Scott

SnowFlat: reduce CSS duplication some more

parent 826f169d
...@@ -350,19 +350,14 @@ blockquote p { ...@@ -350,19 +350,14 @@ blockquote p {
text-indent: -9999px; text-indent: -9999px;
border: none; border: none;
outline: none; outline: none;
-webkit-transition-property: background-image; -webkit-transition: background-image 0.5s;
transition-property: background-image; transition: background-image 0.5s;
-webkit-transition-duration: 0.5s;
transition-duration: 0.5s;
} }
.qa-notice-close-button:hover, .qa-notice-close-button:focus { .qa-notice-close-button:hover, .qa-notice-close-button:focus {
background-color: transparent; /* override generic input styles */
background-image: url('images/icons/close-red.png'); background-image: url('images/icons/close-red.png');
outline: none; outline: none;
border: none; border: none;
-webkit-transition-property: background-image;
transition-property: background-image;
-webkit-transition-duration: 0.15s;
transition-duration: 0.15s;
} }
/*------[ main nav css ]------*/ /*------[ main nav css ]------*/
...@@ -1017,18 +1012,12 @@ h1 a:hover, h1 a:focus, h1 a:visited { ...@@ -1017,18 +1012,12 @@ h1 a:hover, h1 a:focus, h1 a:visited {
height: 38px; height: 38px;
margin: 0; margin: 0;
border: none; border: none;
-webkit-transition-property: background-position; -webkit-transition: background-position 0s;
transition-property: background-position; transition: background-position 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s;
} }
.qa-favorite-button:hover, .qa-unfavorite-button:hover { .qa-favorite-button:hover, .qa-unfavorite-button:hover {
background-color: #f39c12; background-color: #f39c12;
background-position: center -38px; background-position: center -38px;
-webkit-transition-property: background-position;
transition-property: background-position;
-webkit-transition-duration: 0s;
transition-duration: 0s;
} }
.qa-favorite-button { .qa-favorite-button {
...@@ -1151,10 +1140,8 @@ h1 a:hover, h1 a:focus, h1 a:visited { ...@@ -1151,10 +1140,8 @@ h1 a:hover, h1 a:focus, h1 a:visited {
padding: 0; padding: 0;
position: absolute; position: absolute;
left: 4px; left: 4px;
-webkit-transition-property: all; -webkit-transition: all 0s;
transition-property: all; transition: all 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s;
} }
.qa-vote-up-button:hover, .qa-vote-up-button:focus, .qa-vote-up-button:active,.qa-vote-down-button:hover, .qa-vote-down-button:focus, .qa-vote-down-button:active, .qa-vote-up-button:hover, .qa-vote-up-button:focus, .qa-vote-up-button:active,.qa-vote-down-button:hover, .qa-vote-down-button:focus, .qa-vote-down-button:active,
.qa-voted-up-button:hover, .qa-voted-up-button:focus, .qa-voted-up-button:active,.qa-voted-down-button:hover, .qa-voted-down-button:focus, .qa-voted-down-button:active, .qa-voted-up-button:hover, .qa-voted-up-button:focus, .qa-voted-up-button:active,.qa-voted-down-button:hover, .qa-voted-down-button:focus, .qa-voted-down-button:active,
...@@ -1583,12 +1570,8 @@ h1 a:hover, h1 a:focus, h1 a:visited { ...@@ -1583,12 +1570,8 @@ h1 a:hover, h1 a:focus, h1 a:visited {
-ms-transform: translate(0, 0); -ms-transform: translate(0, 0);
-webkit-transform: translate(0, 0); -webkit-transform: translate(0, 0);
transform: translate(0, 0); transform: translate(0, 0);
-webkit-transition-property: all; -webkit-transition: all 0.5s ease;
transition-property: all; transition: all 0.5s ease;
-webkit-transition-duration: 0.5s;
transition-duration: 0.5s;
-webkit-transition-timing-function: ease;
transition-timing-function: ease;
} }
} }
.qa-top-users-label .qa-user-link.qa-user-favorited { .qa-top-users-label .qa-user-link.qa-user-favorited {
...@@ -1806,10 +1789,8 @@ input, textarea, select { ...@@ -1806,10 +1789,8 @@ input, textarea, select {
padding: 5px; padding: 5px;
margin: 2px 0 15px 0; margin: 2px 0 15px 0;
border: 1px solid #e6ebed; border: 1px solid #e6ebed;
-webkit-transition-property: all; -webkit-transition: all 0.3s;
transition-property: all; transition: all 0.3s;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
} }
input:focus, textarea:focus, select:focus { input:focus, textarea:focus, select:focus {
background-color: #fff; background-color: #fff;
...@@ -2566,10 +2547,8 @@ input[type="submit"], button { ...@@ -2566,10 +2547,8 @@ input[type="submit"], button {
background-image: url('images/answer-select.png'); background-image: url('images/answer-select.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
-webkit-transition-property: all; -webkit-transition: all 0.5s;
transition-property: all; transition: all 0.5s;
-webkit-transition-duration: 0.5s;
transition-duration: 0.5s;
} }
.qa-a-select-button { .qa-a-select-button {
...@@ -2757,7 +2736,7 @@ input[type="submit"], button { ...@@ -2757,7 +2736,7 @@ input[type="submit"], button {
font-size: 24px; font-size: 24px;
background: #9b59b6; background: #9b59b6;
cursor: pointer; cursor: pointer;
transition: all ease 0.15s; transition: all 0.15s ease;
color: #95a5a6; color: #95a5a6;
opacity: 0.5; opacity: 0.5;
z-index: 999; z-index: 999;
...@@ -2784,7 +2763,7 @@ input[type="submit"], button { ...@@ -2784,7 +2763,7 @@ input[type="submit"], button {
.stick { .stick {
top: 10px !important; top: 10px !important;
transition: all ease 0.15s; transition: all 0.15s ease;
} }
@media (max-width: 767px) { @media (max-width: 767px) {
...@@ -2797,12 +2776,12 @@ input[type="submit"], button { ...@@ -2797,12 +2776,12 @@ input[type="submit"], button {
width: 250px; width: 250px;
overflow-y: auto; overflow-y: auto;
z-index: 99999; z-index: 99999;
transition: all ease 0.15s; transition: all 0.15s ease;
box-shadow: 0 0 0 0 transparent; box-shadow: 0 0 0 0 transparent;
} }
#qam-sidepanel-mobile.open { #qam-sidepanel-mobile.open {
right: 0 !important; right: 0 !important;
transition: all ease 0.15s; transition: all 0.15s ease;
box-shadow: -5px 0 15px 0 rgba(0, 0, 0, 0.5); box-shadow: -5px 0 15px 0 rgba(0, 0, 0, 0.5);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment