2019-06-28 09:27:55 +02:00
|
|
|
// lbry/components overrides and minor styles
|
|
|
|
// Some items have very specific styling
|
|
|
|
// This is because many styles inside `lbry/components/sass/form/` are very specific
|
|
|
|
// As styles become hardened here, they _should_ slowly move over to that repo
|
|
|
|
|
2019-05-01 07:16:12 +02:00
|
|
|
input-submit {
|
|
|
|
align-items: center;
|
2020-05-11 17:54:39 +02:00
|
|
|
|
|
|
|
input {
|
|
|
|
z-index: 2;
|
|
|
|
}
|
2019-05-01 07:16:12 +02:00
|
|
|
}
|
2019-02-13 17:27:20 +01:00
|
|
|
|
2019-02-18 18:24:56 +01:00
|
|
|
input[type='number'] {
|
2020-06-16 15:38:35 +02:00
|
|
|
width: 8rem;
|
2019-02-18 18:24:56 +01:00
|
|
|
}
|
|
|
|
|
2019-02-20 06:20:29 +01:00
|
|
|
fieldset-group {
|
2019-11-22 22:13:00 +01:00
|
|
|
+ fieldset-group {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-s);
|
2019-11-22 22:13:00 +01:00
|
|
|
}
|
2019-10-28 15:04:37 +01:00
|
|
|
|
2019-02-20 06:20:29 +01:00
|
|
|
&.fieldset-group--smushed {
|
|
|
|
justify-content: flex-start;
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2019-02-20 06:20:29 +01:00
|
|
|
fieldset-section {
|
|
|
|
width: auto;
|
2019-11-19 18:41:31 +01:00
|
|
|
margin: 0;
|
2018-04-01 12:46:38 +02:00
|
|
|
|
2019-08-19 18:10:48 +02:00
|
|
|
&:first-child {
|
|
|
|
input,
|
|
|
|
select {
|
2019-02-20 06:20:29 +01:00
|
|
|
border-right: none;
|
2019-05-08 03:29:30 +02:00
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-of-type(2) {
|
|
|
|
input,
|
|
|
|
select {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
2019-02-20 06:20:29 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fieldgroup--paginate {
|
2020-06-01 19:03:19 +02:00
|
|
|
padding-bottom: var(--spacing-l);
|
|
|
|
margin-top: var(--spacing-l);
|
2019-06-11 20:10:58 +02:00
|
|
|
align-items: flex-end;
|
2019-02-20 06:20:29 +01:00
|
|
|
justify-content: center;
|
2019-02-13 17:27:20 +01:00
|
|
|
}
|
2017-10-15 00:37:40 +02:00
|
|
|
}
|
2018-03-22 17:14:26 +01:00
|
|
|
|
2019-02-20 06:20:29 +01:00
|
|
|
// This is a special case where the prefix appears "inside" the input
|
|
|
|
// It would be way simpler to just use position: absolute and give it a width
|
|
|
|
// but the width can change when we use it for the name prefix
|
|
|
|
// lbry:// {input}, lbry://@short {input}, @lbry://longername {input}
|
|
|
|
// The spacing/alignment isn't very robust and will probably need to be changed
|
|
|
|
// if we use this in more places
|
|
|
|
&.fieldset-group--disabled-prefix {
|
|
|
|
align-items: flex-end;
|
|
|
|
|
2019-02-21 23:45:17 +01:00
|
|
|
label {
|
|
|
|
min-height: 18px;
|
2019-08-27 16:43:42 +02:00
|
|
|
white-space: nowrap;
|
|
|
|
// Set width 0 and overflow visible so the label can act as if it's the input label and not a random text node in a side by side div
|
|
|
|
overflow: visible;
|
|
|
|
width: 0;
|
2019-02-21 23:45:17 +01:00
|
|
|
}
|
|
|
|
|
2019-02-20 06:20:29 +01:00
|
|
|
fieldset-section:first-child {
|
2020-06-08 07:13:48 +02:00
|
|
|
max-width: 40%;
|
|
|
|
|
2019-02-20 06:20:29 +01:00
|
|
|
.form-field__prefix {
|
2019-02-21 23:45:17 +01:00
|
|
|
white-space: nowrap;
|
2020-06-08 07:13:48 +02:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2019-11-22 22:13:00 +01:00
|
|
|
padding: 0.5rem;
|
2020-06-01 19:03:19 +02:00
|
|
|
padding-right: var(--spacing-s);
|
2019-11-22 22:13:00 +01:00
|
|
|
height: var(--height-input);
|
2019-02-20 06:20:29 +01:00
|
|
|
border: 1px solid;
|
2019-11-22 22:13:00 +01:00
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
border-bottom-left-radius: var(--border-radius);
|
2019-02-20 06:20:29 +01:00
|
|
|
border-right: 0;
|
2019-11-22 22:13:00 +01:00
|
|
|
border-color: var(--color-input-border);
|
2020-02-11 17:22:23 +01:00
|
|
|
color: var(--color-text-help);
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-input-bg);
|
2020-06-30 07:51:15 +02:00
|
|
|
border-right: 1px solid var(--border-color);
|
2019-02-20 06:20:29 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fieldset-section:last-child {
|
|
|
|
width: 100%;
|
|
|
|
|
2020-06-08 08:29:52 +02:00
|
|
|
label {
|
|
|
|
// Overwrite the input's label to wrap instead. This is usually
|
|
|
|
// an error message, which could be long in other languages.
|
|
|
|
width: 100%;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
2019-02-20 06:20:29 +01:00
|
|
|
input {
|
|
|
|
border-left: 0;
|
2019-05-08 03:29:30 +02:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
2019-11-22 22:13:00 +01:00
|
|
|
border-color: var(--color-input-border);
|
2020-06-01 19:03:19 +02:00
|
|
|
padding-left: var(--spacing-xs);
|
2019-07-24 02:12:34 +02:00
|
|
|
}
|
2019-02-13 17:27:20 +01:00
|
|
|
}
|
2018-06-13 07:20:53 +02:00
|
|
|
}
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.form-field--copyable {
|
|
|
|
padding: 0.2rem 0.75rem;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
user-select: text;
|
2019-02-20 06:20:29 +01:00
|
|
|
cursor: default;
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
|
|
|
|
2019-09-26 18:07:11 +02:00
|
|
|
.form-field--short {
|
|
|
|
width: 25em;
|
|
|
|
}
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.form-field--price-amount {
|
|
|
|
width: 7em;
|
2017-04-09 17:06:23 +02:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.form-field--address {
|
2019-09-30 23:48:30 +02:00
|
|
|
min-width: 18em;
|
2018-05-25 06:36:43 +02:00
|
|
|
}
|
2019-12-13 20:47:50 +01:00
|
|
|
|
|
|
|
.form-field__help {
|
|
|
|
@extend .help;
|
|
|
|
}
|
|
|
|
|
2019-12-18 06:27:08 +01:00
|
|
|
.form-field__help + .checkbox,
|
|
|
|
.form-field__help + .radio {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-l);
|
2019-12-18 06:27:08 +01:00
|
|
|
}
|
|
|
|
|
2019-12-13 20:47:50 +01:00
|
|
|
.form-field__conjuction {
|
|
|
|
padding-top: 1rem;
|
|
|
|
}
|
|
|
|
|
2020-05-21 09:25:37 +02:00
|
|
|
.form-field__two-column {
|
|
|
|
column-count: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__quick-action {
|
|
|
|
float: right;
|
|
|
|
font-size: var(--font-xsmall);
|
|
|
|
margin-top: 2.5%;
|
|
|
|
}
|
|
|
|
|
2019-12-13 20:47:50 +01:00
|
|
|
fieldset-section {
|
|
|
|
.form-field__internal-option {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-s);
|
2019-12-13 20:47:50 +01:00
|
|
|
margin-left: 2.2rem;
|
|
|
|
|
|
|
|
&:first-of-type {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-s); // Extra specificity needed here since _section.scss is applied after this file
|
2019-12-13 20:47:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|