1
1
mirror of https://github.com/primer/css.git synced 2024-12-25 23:23:47 +03:00

increase input font-size to 16px on mobile

This commit is contained in:
Diana Mounter 2018-01-11 13:45:26 -05:00
parent e291421ee7
commit f1abbe2333

View File

@ -19,7 +19,7 @@ label {
.form-select { .form-select {
min-height: 34px; min-height: 34px;
padding: 6px $spacer-2; padding: 6px $spacer-2;
font-size: $body-font-size; font-size: $h4-size;
line-height: 20px; line-height: 20px;
color: $text-gray-dark; color: $text-gray-dark;
vertical-align: middle; vertical-align: middle;
@ -37,6 +37,11 @@ label {
outline: none; outline: none;
box-shadow: $form-control-shadow, $btn-input-focus-shadow; box-shadow: $form-control-shadow, $btn-input-focus-shadow;
} }
// Ensures inputs don't zoom on mobile but are body-font size on desktop
@include breakpoint(md) {
font-size: $body-font-size;
}
} }
// Inputs with contrast for easy light gray backgrounds against white. // Inputs with contrast for easy light gray backgrounds against white.