2016-03-23 05:26:27 +00:00
|
|
|
@import '../constants/dimensions';
|
|
|
|
@import '../constants/colors';
|
|
|
|
|
|
|
|
.form-control {
|
|
|
|
outline: none;
|
|
|
|
border: 0;
|
2016-08-29 17:58:59 +00:00
|
|
|
height: @line-height-md;
|
2016-03-23 05:26:27 +00:00
|
|
|
|
2016-04-10 02:58:48 +00:00
|
|
|
textarea,
|
2016-03-23 05:26:27 +00:00
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2016-10-21 17:20:36 +00:00
|
|
|
input:invalid {
|
|
|
|
border: 1px solid @warning !important;
|
2016-06-16 06:16:24 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
&.form-control--padded,
|
2016-04-09 01:14:25 +00:00
|
|
|
&.form-control--outlined,
|
|
|
|
&.form-control--underlined {
|
2016-03-23 05:26:27 +00:00
|
|
|
height: auto;
|
2016-08-29 17:58:59 +00:00
|
|
|
margin: @padding-sm;
|
2016-03-23 05:26:27 +00:00
|
|
|
|
2016-04-10 02:58:48 +00:00
|
|
|
textarea,
|
2016-03-23 05:26:27 +00:00
|
|
|
input {
|
2016-08-29 17:58:59 +00:00
|
|
|
border: 1px solid @hl-md;
|
|
|
|
padding: @padding-sm;
|
|
|
|
border-radius: @radius-md;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
2016-04-09 01:14:25 +00:00
|
|
|
|
2016-04-10 02:58:48 +00:00
|
|
|
textarea,
|
2016-04-09 01:14:25 +00:00
|
|
|
input:focus {
|
2016-08-29 17:58:59 +00:00
|
|
|
border-color: @hl-xl;
|
2016-04-09 01:14:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
&.form-control--padded {
|
|
|
|
textarea,
|
|
|
|
input {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-09 01:14:25 +00:00
|
|
|
&.form-control--underlined {
|
2016-04-10 02:58:48 +00:00
|
|
|
textarea,
|
2016-04-09 01:14:25 +00:00
|
|
|
input {
|
2016-04-15 02:13:49 +00:00
|
|
|
border-radius: 0;
|
2016-04-09 01:14:25 +00:00
|
|
|
border-top: 0;
|
|
|
|
border-right: 0;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-10 02:58:48 +00:00
|
|
|
// Push form all the way to the sides if inside label
|
2016-04-12 06:10:46 +00:00
|
|
|
label > .form-control,
|
|
|
|
.form-control--wide {
|
2016-04-10 02:58:48 +00:00
|
|
|
margin-left: 0 !important;
|
|
|
|
margin-right: 0 !important;
|
|
|
|
}
|
|
|
|
|
2016-03-23 05:26:27 +00:00
|
|
|
.btn {
|
|
|
|
text-align: center;
|
2016-08-29 17:58:59 +00:00
|
|
|
padding: 0 (@padding-md * 1.5);
|
|
|
|
height: @line-height-md;
|
2016-08-15 17:04:36 +00:00
|
|
|
border: 1px solid transparent;
|
2016-03-23 05:26:27 +00:00
|
|
|
|
|
|
|
&.btn--compact {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding: 0 @padding-md;
|
|
|
|
height: @line-height-sm;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
2016-07-19 19:13:51 +00:00
|
|
|
|
|
|
|
&.btn--super-compact {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding: 0 @padding-md;
|
|
|
|
height: @line-height-xs;
|
2016-07-19 19:13:51 +00:00
|
|
|
}
|
|
|
|
|
2016-09-09 18:28:57 +00:00
|
|
|
&.btn--super-duper-compact {
|
|
|
|
padding: 0 @padding-sm;
|
|
|
|
height: @line-height-xxs;
|
|
|
|
}
|
|
|
|
|
2016-07-19 19:13:51 +00:00
|
|
|
&.btn--outlined {
|
2016-08-29 17:58:59 +00:00
|
|
|
border: 1px solid @hl-lg;
|
|
|
|
border-radius: @radius-md;
|
2016-07-19 19:13:51 +00:00
|
|
|
}
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 22:26:52 +00:00
|
|
|
.btn:disabled {
|
2016-11-12 00:58:23 +00:00
|
|
|
opacity: 0.4;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 22:26:52 +00:00
|
|
|
.btn:focus:not(:disabled),
|
|
|
|
.btn.focus:not(:disabled),
|
|
|
|
.btn:hover:not(:disabled) {
|
2016-08-29 17:58:59 +00:00
|
|
|
background: @hl-xs;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 22:26:52 +00:00
|
|
|
.btn:active:not(:disabled) {
|
2016-08-29 17:58:59 +00:00
|
|
|
background: @hl-md;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-11-22 22:26:52 +00:00
|
|
|
.btn.btn--no-background {
|
|
|
|
opacity: 0.5;
|
|
|
|
background: transparent;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-10 02:58:48 +00:00
|
|
|
textarea, input, button {
|
2016-03-23 05:26:27 +00:00
|
|
|
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;
|
2016-07-08 06:02:40 +00:00
|
|
|
padding: 0;
|
2016-05-01 19:56:30 +00:00
|
|
|
color: inherit;
|
2016-03-23 05:26:27 +00:00
|
|
|
|
|
|
|
&::-webkit-input-placeholder {
|
2016-08-29 17:58:59 +00:00
|
|
|
color: @hl-xl;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-15 17:04:36 +00:00
|
|
|
input.input--error {
|
2016-08-29 17:58:59 +00:00
|
|
|
border-color: @danger !important;
|
2016-08-15 17:04:36 +00:00
|
|
|
}
|
|
|
|
|
2016-03-23 05:26:27 +00:00
|
|
|
button {
|
|
|
|
width: auto;
|
2016-04-04 07:15:30 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2016-03-23 05:26:27 +00:00
|
|
|
}
|
2016-04-30 05:01:57 +00:00
|
|
|
|
|
|
|
textarea.no-resize {
|
|
|
|
resize: none;
|
|
|
|
}
|