Skip to content

Commit

Permalink
feat(chore): remove unneeded vendor prefixes
Browse files Browse the repository at this point in the history
Again removed some not needed vendor prefixes
  • Loading branch information
lubber-de authored Feb 2, 2023
1 parent b6cde0e commit 8415a7a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 62 deletions.
18 changes: 4 additions & 14 deletions src/definitions/collections/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -383,26 +383,22 @@
--------------------- */

/* browsers require these rules separate */
.ui.form ::-webkit-input-placeholder {
.ui.form ::placeholder {
color: @inputPlaceholderColor;
}
.ui.form :-ms-input-placeholder when (@supportIE) {
color: @inputPlaceholderColor !important;
}
.ui.form ::-moz-placeholder {
color: @inputPlaceholderColor;
opacity: 1;
}

.ui.form :focus::-webkit-input-placeholder {
.ui.form :focus::placeholder {
color: @inputPlaceholderFocusColor;
}
.ui.form :focus:-ms-input-placeholder when (@supportIE) {
color: @inputPlaceholderFocusColor !important;
}
.ui.form :focus::-moz-placeholder {
color: @inputPlaceholderFocusColor;
}

/* --------------------
Focus
Expand Down Expand Up @@ -649,25 +645,19 @@
}

/* Placeholder */
.ui.form .@{state} ::-webkit-input-placeholder {
.ui.form .@{state} ::placeholder {
color: @formStates[@@state][inputPlaceholderColor];
}
.ui.form .@{state} :-ms-input-placeholder when (@supportIE) {
color: @formStates[@@state][inputPlaceholderColor] !important;
}
.ui.form .@{state} ::-moz-placeholder {
color: @formStates[@@state][inputPlaceholderColor];
}

.ui.form .@{state} :focus::-webkit-input-placeholder {
.ui.form .@{state} :focus::placeholder {
color: @formStates[@@state][inputPlaceholderFocusColor];
}
.ui.form .@{state} :focus:-ms-input-placeholder when (@supportIE) {
color: @formStates[@@state][inputPlaceholderFocusColor] !important;
}
.ui.form .@{state} :focus::-moz-placeholder {
color: @formStates[@@state][inputPlaceholderFocusColor];
}

/*------------------
Dropdown State
Expand Down
26 changes: 6 additions & 20 deletions src/definitions/elements/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@

/* browsers require these rules separate */

.ui.input > input::-webkit-input-placeholder {
.ui.input > input::placeholder {
color: @placeholderColor;
}
.ui.input > input::-moz-placeholder {
color: @placeholderColor;
opacity: 1;
}
.ui.input > input:-ms-input-placeholder when (@supportIE) {
Expand Down Expand Up @@ -148,12 +147,8 @@
color: @focusColor;
box-shadow: @focusBoxShadow;
}
.ui.input.focus > input::-webkit-input-placeholder,
.ui.input > input:focus::-webkit-input-placeholder {
color: @placeholderFocusColor;
}
.ui.input.focus > input::-moz-placeholder,
.ui.input > input:focus::-moz-placeholder {
.ui.input.focus > input::placeholder,
.ui.input > input:focus::placeholder {
color: @placeholderFocusColor;
}
& when (@supportIE) {
Expand Down Expand Up @@ -192,21 +187,15 @@
}

/* Placeholder */
.ui.input.@{state} > input::-webkit-input-placeholder {
color: @formStates[@@state][inputPlaceholderColor];
}
.ui.input.@{state} > input::-moz-placeholder {
.ui.input.@{state} > input::placeholder {
color: @formStates[@@state][inputPlaceholderColor];
}
.ui.input.@{state} > input:-ms-input-placeholder when (@supportIE) {
color: @formStates[@@state][inputPlaceholderColor] !important;
}

/* Focused Placeholder */
.ui.input.@{state} > input:focus::-webkit-input-placeholder {
color: @formStates[@@state][inputPlaceholderFocusColor];
}
.ui.input.@{state} > input:focus::-moz-placeholder {
.ui.input.@{state} > input:focus::placeholder {
color: @formStates[@@state][inputPlaceholderFocusColor];
}
.ui.input.@{state} > input:focus:-ms-input-placeholder when (@supportIE){
Expand Down Expand Up @@ -258,10 +247,7 @@
color: inherit;
}

.ui.transparent.inverted.input > input::-webkit-input-placeholder {
color: @transparentInvertedPlaceholderColor;
}
.ui.transparent.inverted.input > input::-moz-placeholder {
.ui.transparent.inverted.input > input::placeholder {
color: @transparentInvertedPlaceholderColor;
}
.ui.transparent.inverted.input > input:-ms-input-placeholder when (@supportIE) {
Expand Down
18 changes: 0 additions & 18 deletions src/definitions/globals/site.less
Original file line number Diff line number Diff line change
Expand Up @@ -195,30 +195,12 @@ a:hover {
*******************************/

/* Site */
::-webkit-selection {
background-color: @highlightBackground;
color: @highlightColor;
}
::-moz-selection {
background-color: @highlightBackground;
color: @highlightColor;
}
::selection {
background-color: @highlightBackground;
color: @highlightColor;
}

/* Form */
textarea::-webkit-selection,
input::-webkit-selection {
background-color: @inputHighlightBackground;
color: @inputHighlightColor;
}
textarea::-moz-selection,
input::-moz-selection {
background-color: @inputHighlightBackground;
color: @inputHighlightColor;
}
textarea::selection,
input::selection {
background-color: @inputHighlightBackground;
Expand Down
10 changes: 0 additions & 10 deletions src/definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -1898,16 +1898,6 @@ select.ui.dropdown {
}

/* Selection for form elements */
.ui.inverted.dropdown textarea::-webkit-selection,
.ui.inverted.dropdown input::-webkit-selection {
background-color: @invertedInputHighlightBackground;
color: @invertedInputHighlightColor;
}
.ui.inverted.dropdown textarea::-moz-selection,
.ui.inverted.dropdown input::-moz-selection {
background-color: @invertedInputHighlightBackground;
color: @invertedInputHighlightColor;
}
.ui.inverted.dropdown textarea::selection,
.ui.inverted.dropdown input::selection {
background-color: @invertedInputHighlightBackground;
Expand Down

0 comments on commit 8415a7a

Please sign in to comment.