lostplaces-frontend/components/01_Atoms/input/_input.scss

116 lines
2.5 KiB
SCSS
Raw Normal View History

2020-09-01 18:19:51 +02:00
.LP-Input {
2020-07-31 16:54:35 +02:00
$-margin-bottom: 30px;
display: flex;
flex-direction: column;
margin-bottom: -$-margin-bottom;
padding: 10px 0;
2020-07-31 16:54:35 +02:00
2020-09-01 18:19:51 +02:00
&--tagging {
.LP-Button {
height: 53px;
}
.LP-Input__Field {
min-height: 36px;
height: max-content;
font-family: $-primary-sans-serif-font;
font-size: 1em;
padding: 0;
padding-left: 8px;
}
}
.LP-Input__Field {
2020-07-31 16:54:35 +02:00
border: none;
2020-08-01 10:27:23 +02:00
border-bottom: 1px solid $-grey;
2020-09-01 18:19:51 +02:00
padding: 8px 0;
margin-bottom: $-margin-bottom;
width: 100%;
2020-07-31 16:54:35 +02:00
2020-09-01 18:19:51 +02:00
&:focus,
&:active,
&:invalid,
&--active {
2020-07-31 16:54:35 +02:00
margin-bottom: $-margin-bottom - 1px;
2020-08-01 10:27:23 +02:00
border-bottom: 2px solid $-wine-red;
background-color: $-almost-white;
border-radius: 3px 3px 0 0;
box-shadow: none;
}
2020-09-01 18:19:51 +02:00
&[type=submit] {
background-color: $-light-brown;
color: $-grey;
border: none;
padding: 8px 14px;
border-radius: 2px;
font-weight: bold;
cursor: pointer;
2020-08-12 18:28:47 +02:00
2020-09-01 18:19:51 +02:00
&:active {
background-color: $-wine-red;
2020-09-01 18:19:51 +02:00
color: $-almost-white;
}
2020-08-12 18:28:47 +02:00
}
2020-07-31 16:54:35 +02:00
}
2020-07-31 19:52:57 +02:00
2020-09-01 18:19:51 +02:00
.LP-Input__Label {
2020-07-31 16:54:35 +02:00
font-family: $-primary-sans-serif-font;
2020-09-01 18:19:51 +02:00
font-size: 16px;
white-space: wrap;
overflow: hidden;
2020-07-31 16:54:35 +02:00
}
2020-07-31 19:52:57 +02:00
2020-09-01 18:19:51 +02:00
.LP-Input__Message {
2020-07-31 16:54:35 +02:00
font-family: $-primary-sans-serif-font;
font-style: italic;
font-size: 13px;
padding: 3px;
position: relative;
2020-09-01 18:19:51 +02:00
top: -$-margin-bottom;
overflow: hidden;
2020-07-31 16:54:35 +02:00
}
2020-09-01 18:19:51 +02:00
&--error {
.LP-Input__Field {
2020-07-31 16:54:35 +02:00
margin-bottom: 25px;
2020-08-01 10:27:23 +02:00
border-bottom: 2px solid $-wine-red;
2020-07-31 16:54:35 +02:00
margin-bottom: $-margin-bottom - 1px;
}
2020-09-01 18:19:51 +02:00
.LP-Input__Message {
2020-08-01 10:27:23 +02:00
color: $-wine-red;
2020-07-31 16:54:35 +02:00
}
}
2020-09-01 18:19:51 +02:00
&--disabled {
.LP-Input__Field,
.LP-Input__Field:disabled {
background-color: transparent;
border-bottom: 1px dashed $-grey;
cursor: not-allowed;
2020-09-01 18:19:51 +02:00
label+& {
color: red;
}
2020-07-31 16:54:35 +02:00
2020-09-01 18:19:51 +02:00
&:focus,
&:active {
margin-bottom: $-margin-bottom;
border-radius: 0;
}
2020-07-31 16:54:35 +02:00
2020-09-01 18:19:51 +02:00
~.LP-Input__Message {
visibility: hidden;
2020-09-01 18:19:51 +02:00
}
}
2020-07-31 23:12:06 +02:00
2020-09-01 18:19:51 +02:00
.LP-Input__Label {
color: $-grey;
}
}
2021-10-02 07:19:34 +02:00
}