1
0
Fork 0
blog/src/components/atoms/Input.module.scss

33 lines
701 B
SCSS
Raw Normal View History

2018-08-25 11:15:40 +02:00
@import 'variables';
.input {
2019-10-02 13:35:50 +02:00
display: block;
width: 100%;
padding: $padding-base-vertical $padding-base-horizontal;
font-size: $input-font-size;
font-weight: $input-font-weight;
line-height: $line-height;
color: $input-color;
background-color: $input-bg;
background-image: none; // Reset unusual Firefox-on-Android default style
border: 0;
border-radius: $input-border-radius;
box-shadow: none;
transition: all ease-in-out 0.15s;
appearance: none;
2018-08-25 11:15:40 +02:00
2019-10-02 13:35:50 +02:00
&:hover {
background: lighten($input-bg, 30%);
}
2018-08-25 11:15:40 +02:00
2019-10-02 13:35:50 +02:00
&:focus {
background-color: $input-bg-focus;
border-color: $input-border-focus;
outline: 0;
}
2018-10-13 20:13:50 +02:00
2019-10-02 13:35:50 +02:00
&[disabled] {
color: $brand-grey-dimmed;
}
2018-08-25 11:15:40 +02:00
}