Skip to content

Commit 6185fbb

Browse files
committed
Latest form/button amends from my framework
1 parent 9470020 commit 6185fbb

File tree

3 files changed

+32
-22
lines changed

3 files changed

+32
-22
lines changed

dist/classic/assets/css/textpattern.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/sass/modules/_buttons.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
========================================================================== */
33

44
/**
5-
* 1. Correct `button` style inheritance in Firefox, IE 11, and Opera.
5+
* 1. Remove the inheritance of text transform in Edge, Firefox, and IE.
66
* 2. Address `overflow` set to `hidden` in IE 11.
77
*/
88

@@ -13,6 +13,18 @@ button {
1313
overflow: visible;
1414
}
1515

16+
/**
17+
* Remove the inner border and padding in Firefox.
18+
*/
19+
20+
button::-moz-focus-inner,
21+
[type="button"]::-moz-focus-inner,
22+
[type="reset"]::-moz-focus-inner,
23+
[type="submit"]::-moz-focus-inner {
24+
padding: 0;
25+
border-style: none;
26+
}
27+
1628
/**
1729
* 1. Improve usability and consistency of cursor style between image-type
1830
* `input` and others.

src/assets/sass/modules/_forms.scss

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,6 @@ textarea,
7777
box-sizing: border-box;
7878
}
7979

80-
/**
81-
* Remove the inner border and padding in Firefox.
82-
*/
83-
84-
button::-moz-focus-inner,
85-
[type="button"]::-moz-focus-inner,
86-
[type="reset"]::-moz-focus-inner,
87-
[type="submit"]::-moz-focus-inner {
88-
padding: 0;
89-
border-style: none;
90-
}
91-
92-
/**
93-
* Remove the inner padding in Chrome and Safari on macOS.
94-
*/
95-
96-
[type="search"]::-webkit-search-decoration {
97-
-webkit-appearance: none;
98-
}
99-
10080
/**
10181
* Styling of form input fields.
10282
*
@@ -172,6 +152,24 @@ textarea {
172152
}
173153
}
174154

155+
/**
156+
* Correct the cursor style of increment and decrement buttons in Chrome.
157+
*/
158+
159+
[type="number"]::-webkit-inner-spin-button,
160+
[type="number"]::-webkit-outer-spin-button {
161+
height: auto;
162+
}
163+
164+
/**
165+
* Remove the inner padding in Chrome and Safari on macOS.
166+
*/
167+
168+
[type="search"]::-webkit-search-decoration {
169+
/* autoprefixer: off */
170+
appearance: none;
171+
}
172+
175173
/**
176174
* Use indicator icon to signify the drop-down ability of `select`.
177175
*/

0 commit comments

Comments
 (0)