Skip to content
Snippets Groups Projects
Commit d56e9206 authored by Viola Elsenhans's avatar Viola Elsenhans Committed by Mathias Maaß
Browse files

refs #23981 [finc] set margin for all input fields

parent 47ff1295
Branches
Tags
No related merge requests found
...@@ -465,8 +465,8 @@ $label-edit-favorites-list-padding-left: 0 !default; ...@@ -465,8 +465,8 @@ $label-edit-favorites-list-padding-left: 0 !default;
$input-border-focus: $brand-primary !default; $input-border-focus: $brand-primary !default;
// Inputs with labels -- top margin for better alignment // Inputs with labels -- top margin for better alignment
$input-top-margin: .2rem !default; $input-top-margin: .2rem !default;
// Invalid input AND textarea elements // Input AND textarea elements
$input-textarea-invalid-margin-right: 2px !default; $input-textarea-margin-right: 2px !default;
// Invalid input highlighting on focus // Invalid input highlighting on focus
$input-invalid-focus-border-color: $brand-danger-transparent !default; $input-invalid-focus-border-color: $brand-danger-transparent !default;
$input-invalid-focus-box-shadow: 0 0 2px 1px $brand-danger-transparent !default; $input-invalid-focus-box-shadow: 0 0 2px 1px $brand-danger-transparent !default;
......
...@@ -139,6 +139,9 @@ label { ...@@ -139,6 +139,9 @@ label {
// ***************************************************************** // *****************************************************************
input { input {
// Same variable used for textarea as well!
margin-right: $input-textarea-margin-right;
// Set max-width to make sure boxes don't bleed over // Set max-width to make sure boxes don't bleed over
// the edge on XS (e.g. acquisitionpda, source_id:3) - same // the edge on XS (e.g. acquisitionpda, source_id:3) - same
// variable used on textarea and select // variable used on textarea and select
...@@ -190,8 +193,6 @@ input { ...@@ -190,8 +193,6 @@ input {
// show red border only when submitted empty or when in focus // show red border only when submitted empty or when in focus
&:invalid { &:invalid {
box-shadow: inherit; box-shadow: inherit;
// Same variable used for textarea as well!
margin-right: $input-textarea-invalid-margin-right;
} }
&:focus { &:focus {
...@@ -280,17 +281,15 @@ select { ...@@ -280,17 +281,15 @@ select {
// ***************************************************************** // *****************************************************************
textarea { textarea {
// Same variable used for input as well!
margin-right: $input-textarea-margin-right;
// Set max-width to make sure boxes don't bleed over // Set max-width to make sure boxes don't bleed over
// the edge on XS (e.g. acquisitionpda, source_id:3) - same // the edge on XS (e.g. acquisitionpda, source_id:3) - same
// variable used on input and select // variable used on input and select
@media (max-width: $screen-xs-max) { @media (max-width: $screen-xs-max) {
max-width: $input-select-textarea-xs-max-width; max-width: $input-select-textarea-xs-max-width;
} }
&:invalid {
// Same variable used for input as well!
margin-right: $input-textarea-invalid-margin-right;
}
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment