insomnia/app/css/components/forms.scss

76 lines
1.1 KiB
SCSS
Raw Normal View History

2016-03-23 05:26:27 +00:00
@import '../constants/dimensions';
@import '../constants/colors';
.form-control {
outline: none;
border: 0;
2016-03-23 05:58:16 +00:00
height: $line-height-md;
2016-03-23 05:26:27 +00:00
input {
width: 100%;
height: 100%;
}
&.form-control--right button:last-child,
&.form-control--left input {
padding-left: $padding-md;
}
&.form-control--left button:first-child,
&.form-control--right input {
padding-right: $padding-md;
}
&.form-control--outlined {
border: 1px solid $hl-lg;
border-radius: $radius-md;
height: auto;
margin: $padding-sm;
input {
padding: $padding-sm;
}
}
}
.btn {
text-align: center;
padding: 0 ($padding-md * 1.5);
height: $line-height-md;
&.btn--compact {
2016-04-04 07:15:30 +00:00
padding: 0 $padding-md;
height: $line-height-sm;
2016-03-23 05:26:27 +00:00
}
}
.btn:hover {
background: $hl-xs;
}
.btn:active {
background: $hl-md;
}
input, button {
box-sizing: border-box;
2016-03-23 18:34:39 +00:00
text-align: left;
2016-03-23 05:26:27 +00:00
font-size: inherit;
text-decoration: inherit;
background: none;
border: 0;
outline: 0;
margin: 0;
&::-webkit-input-placeholder {
color: $hl-xl;
}
}
button {
width: auto;
2016-03-23 18:34:39 +00:00
cursor: pointer;
2016-04-04 07:15:30 +00:00
padding: 0;
margin: 0;
2016-03-23 05:26:27 +00:00
}