refactor(prettier): add formater prettier code
This commit is contained in:
40
styles/vendors/_normalize.scss
vendored
40
styles/vendors/_normalize.scss
vendored
@ -149,18 +149,18 @@ select {
|
||||
// Correct the inability to style clickable types in iOS and Safari.
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
[type='button'],
|
||||
[type='reset'],
|
||||
[type='submit'] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
// Remove the inner border and padding in Firefox.
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
[type='button']::-moz-focus-inner,
|
||||
[type='reset']::-moz-focus-inner,
|
||||
[type='submit']::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
@ -168,9 +168,9 @@ button::-moz-focus-inner,
|
||||
// Restore the focus styles unset by the previous rule.
|
||||
|
||||
button:-moz-focusring,
|
||||
[type="button"]:-moz-focusring,
|
||||
[type="reset"]:-moz-focusring,
|
||||
[type="submit"]:-moz-focusring {
|
||||
[type='button']:-moz-focusring,
|
||||
[type='reset']:-moz-focusring,
|
||||
[type='submit']:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
@ -209,30 +209,30 @@ textarea {
|
||||
// 1. Add the correct box sizing in IE 10.
|
||||
// 2. Remove the padding in IE 10.
|
||||
|
||||
[type="checkbox"],
|
||||
[type="radio"] {
|
||||
[type='checkbox'],
|
||||
[type='radio'] {
|
||||
box-sizing: border-box; // 1
|
||||
padding: 0; // 2
|
||||
}
|
||||
|
||||
// Correct the cursor style of increment and decrement buttons in Chrome.
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
[type='number']::-webkit-inner-spin-button,
|
||||
[type='number']::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
// 1. Correct the odd appearance in Chrome and Safari.
|
||||
// 2. Correct the outline style in Safari.
|
||||
|
||||
[type="search"] {
|
||||
[type='search'] {
|
||||
-webkit-appearance: textfield; // 1
|
||||
outline-offset: -2px; // 2
|
||||
}
|
||||
|
||||
// Remove the inner padding in Chrome and Safari on macOS.
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
[type='search']::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
@ -275,10 +275,10 @@ template {
|
||||
}
|
||||
|
||||
// Disable outline when intent is clearly mouse and touch
|
||||
[data-whatintent="mouse"],
|
||||
[data-whatintent="touch"],
|
||||
[data-whatinput="mouse"],
|
||||
[data-whatinput="touch"] {
|
||||
[data-whatintent='mouse'],
|
||||
[data-whatintent='touch'],
|
||||
[data-whatinput='mouse'],
|
||||
[data-whatinput='touch'] {
|
||||
*,
|
||||
*:focus {
|
||||
outline: none;
|
||||
@ -286,7 +286,7 @@ template {
|
||||
}
|
||||
|
||||
// Disable iOS callouts when draggable is false
|
||||
[draggable="false"] {
|
||||
[draggable='false'] {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
Reference in New Issue
Block a user