lbry-desktop/src/renderer/scss/component/_form-field.scss

104 lines
1.5 KiB
SCSS
Raw Normal View History

2018-03-26 23:32:43 +02:00
.form-row {
2018-01-21 20:29:48 +01:00
display: flex;
2018-03-26 23:32:43 +02:00
flex-direction: row;
align-items: flex-end;
2018-01-21 20:29:48 +01:00
2018-03-26 23:32:43 +02:00
.form-field:not(:first-of-type) {
padding-left: $spacing-vertical;
2018-01-21 20:29:48 +01:00
}
2017-04-10 14:32:40 +02:00
&.form-row--centered {
justify-content: center;
}
2018-03-26 23:32:43 +02:00
&.form-row--padded {
padding-top: $spacing-vertical * 2/3;
2017-04-10 20:12:07 +02:00
}
&.form-row--vertically-centered {
2018-03-26 23:32:43 +02:00
align-items: center;
2017-10-15 21:50:13 +02:00
}
2018-03-26 23:32:43 +02:00
.form-field.form-field--stretch {
2017-10-15 06:52:32 +02:00
width: 100%;
2017-08-20 07:58:03 +02:00
2018-03-26 23:32:43 +02:00
input {
width: 100%;
max-width: 400px;
2017-04-12 16:55:19 +02:00
}
2017-04-10 14:32:40 +02:00
}
2018-03-26 23:32:43 +02:00
input + .btn {
margin-left: $spacing-vertical * 1/3;
2017-04-10 14:32:40 +02:00
}
}
2017-10-16 01:13:32 +02:00
2017-06-15 21:30:56 +02:00
.form-field--SimpleMDE {
display: block;
2018-03-26 23:32:43 +02:00
width: 100%;
2017-06-15 21:30:56 +02:00
}
2017-04-10 14:32:40 +02:00
2018-03-26 23:32:43 +02:00
.form-field__input {
display: flex;
padding-top: $spacing-vertical / 3;
input[type='checkbox'] {
margin-top: 4px;
}
2018-03-26 23:32:43 +02:00
input[type='radio'] {
margin-top: 2px;
2017-10-15 00:37:40 +02:00
}
input.paginate-channel {
width: 35px;
}
&.form-field--auto-height {
height: auto;
}
2017-04-10 14:32:40 +02:00
}
2017-04-09 17:06:23 +02:00
2018-03-26 23:32:43 +02:00
.form-field__help,
.form-field__label,
.form-field__error {
font-size: 12px;
font-family: 'metropolis-medium';
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
.form-field__label {
color: var(--color-black);
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
.form-field__help {
color: var(--color-grey-dark);
padding-top: $spacing-vertical * 1/3;
2017-04-12 16:55:19 +02:00
}
2018-03-26 23:32:43 +02:00
.form-field__error {
color: var(--color-error);
2017-04-10 20:12:07 +02:00
}
2018-03-26 23:32:43 +02:00
.form-field__prefix,
.form-field__postfix {
font-family: 'metropolis-medium';
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
.form-field__prefix {
padding-right: $spacing-vertical * 1/3;
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
.form-field__postfix {
padding-left: $spacing-vertical * 1/3;
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
// Not sure if I like these
// Maybe this should be in gui.scss?
.input--price-amount {
width: 60px;
2017-06-15 21:30:56 +02:00
}
2018-03-26 23:32:43 +02:00
.input--address {
width: 370px;
2017-08-18 07:37:35 +02:00
}