mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 07:37:27 +02:00
Use the same font on the button as on the field itself
This commit is contained in:
@@ -575,7 +575,15 @@ legend {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1. Change font properties to `inherit` in Safari.
|
|
||||||
|
// Inherit font family and line height for file input buttons
|
||||||
|
|
||||||
|
// stylelint-disable-next-line selector-pseudo-element-no-unknown
|
||||||
|
::file-selector-button {
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 1. Change font properties to `inherit`
|
||||||
// 2. Correct the inability to style clickable types in iOS and Safari.
|
// 2. Correct the inability to style clickable types in iOS and Safari.
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
::-webkit-file-upload-button {
|
||||||
|
@@ -72,7 +72,6 @@
|
|||||||
margin: (-$input-padding-y) (-$input-padding-x);
|
margin: (-$input-padding-y) (-$input-padding-x);
|
||||||
margin-inline-end: $input-padding-x;
|
margin-inline-end: $input-padding-x;
|
||||||
-moz-margin-end: subtract($input-padding-x, 5px); // stylelint-disable-line property-no-vendor-prefix
|
-moz-margin-end: subtract($input-padding-x, 5px); // stylelint-disable-line property-no-vendor-prefix
|
||||||
line-height: inherit;
|
|
||||||
color: $form-file-button-color;
|
color: $form-file-button-color;
|
||||||
@include gradient-bg($form-file-button-bg);
|
@include gradient-bg($form-file-button-bg);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
@@ -93,7 +92,6 @@
|
|||||||
padding: $input-padding-y $input-padding-x;
|
padding: $input-padding-y $input-padding-x;
|
||||||
margin: (-$input-padding-y) (-$input-padding-x);
|
margin: (-$input-padding-y) (-$input-padding-x);
|
||||||
margin-inline-end: $input-padding-x;
|
margin-inline-end: $input-padding-x;
|
||||||
line-height: inherit;
|
|
||||||
color: $form-file-button-color;
|
color: $form-file-button-color;
|
||||||
@include gradient-bg($form-file-button-bg);
|
@include gradient-bg($form-file-button-bg);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
Reference in New Issue
Block a user