mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
CLEANUP: Coalesce repeated CSS properties
This commit is contained in:
1
app/assets/stylesheets/vendor/bootstrap.scss
vendored
1
app/assets/stylesheets/vendor/bootstrap.scss
vendored
@@ -14,6 +14,7 @@
|
||||
|
||||
@import "common/foundation/mixins";
|
||||
|
||||
//noinspection CssOverwrittenProperties
|
||||
a:focus {
|
||||
outline: thin dotted #333;
|
||||
outline: 5px auto -webkit-focus-ring-color;
|
||||
|
||||
4
app/assets/stylesheets/vendor/pikaday.scss
vendored
4
app/assets/stylesheets/vendor/pikaday.scss
vendored
@@ -86,9 +86,7 @@
|
||||
text-indent: 20px; // hide text using text-indent trick, using width value (it's enough)
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
background-color: transparent;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background: transparent no-repeat center center;
|
||||
background-size: 75% 75%;
|
||||
opacity: .5;
|
||||
*position: absolute;
|
||||
|
||||
49
app/assets/stylesheets/vendor/select2.scss
vendored
49
app/assets/stylesheets/vendor/select2.scss
vendored
@@ -200,6 +200,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
//noinspection CssOverwrittenProperties
|
||||
.select2-search input {
|
||||
width: 100%;
|
||||
height: auto !important;
|
||||
@@ -228,6 +229,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
//noinspection CssOverwrittenProperties
|
||||
.select2-search input.select2-active {
|
||||
background: #fff asset-url('select2-spinner.gif') no-repeat 100%;
|
||||
background: asset-url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
|
||||
@@ -389,16 +391,14 @@ disabled look for disabled choices in the results dropdown
|
||||
/* disabled styles */
|
||||
|
||||
.select2-container.select2-container-disabled .select2-choice {
|
||||
background-color: #f4f4f4;
|
||||
background-image: none;
|
||||
border: 1px solid #ddd;
|
||||
cursor: default;
|
||||
background: #f4f4f4 none;
|
||||
border: 1px solid #ddd;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.select2-container.select2-container-disabled .select2-choice .select2-arrow {
|
||||
background-color: #f4f4f4;
|
||||
background-image: none;
|
||||
border-left: 0;
|
||||
background: #f4f4f4 none;
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.select2-container.select2-container-disabled .select2-choice abbr {
|
||||
@@ -540,17 +540,15 @@ html[dir="rtl"] .select2-search-choice-close {
|
||||
|
||||
/* disabled styles */
|
||||
.select2-container-multi.select2-container-disabled .select2-choices {
|
||||
background-color: #f4f4f4;
|
||||
background-image: none;
|
||||
border: 1px solid #ddd;
|
||||
cursor: default;
|
||||
background: #f4f4f4 none;
|
||||
border: 1px solid #ddd;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
|
||||
padding: 3px 5px 3px 5px;
|
||||
border: 1px solid #ddd;
|
||||
background-image: none;
|
||||
background-color: #f4f4f4;
|
||||
padding: 3px 5px 3px 5px;
|
||||
border: 1px solid #ddd;
|
||||
background: #f4f4f4 none;
|
||||
}
|
||||
|
||||
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
|
||||
@@ -594,16 +592,15 @@ html[dir="rtl"] .select2-search-choice-close {
|
||||
/* Retina-ize icons */
|
||||
|
||||
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
|
||||
.select2-search input,
|
||||
.select2-search-choice-close,
|
||||
.select2-container .select2-choice abbr,
|
||||
.select2-container .select2-choice .select2-arrow b {
|
||||
background-image: asset-url('select2x2.png') !important;
|
||||
background-repeat: no-repeat !important;
|
||||
background-size: 60px 40px !important;
|
||||
}
|
||||
.select2-search input,
|
||||
.select2-search-choice-close,
|
||||
.select2-container .select2-choice abbr,
|
||||
.select2-container .select2-choice .select2-arrow b {
|
||||
background: asset-url('select2x2.png') no-repeat !important;
|
||||
background-size: 60px 40px !important;
|
||||
}
|
||||
|
||||
.select2-search input {
|
||||
background-position: 100% -21px !important;
|
||||
}
|
||||
.select2-search input {
|
||||
background-position: 100% -21px !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user