2019-06-28 03:27:55 -04: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 01:16:12 -04:00
|
|
|
input-submit {
|
|
|
|
align-items: center;
|
2020-05-11 11:54:39 -04:00
|
|
|
|
|
|
|
input {
|
|
|
|
z-index: 2;
|
|
|
|
}
|
2019-05-01 01:16:12 -04:00
|
|
|
}
|
2019-02-13 12:27:20 -04:00
|
|
|
|
2019-02-18 12:24:56 -05:00
|
|
|
input[type='number'] {
|
2020-06-08 14:42:29 -04:00
|
|
|
width: 5rem;
|
2019-02-18 12:24:56 -05:00
|
|
|
}
|
|
|
|
|
2019-02-20 00:20:29 -05:00
|
|
|
fieldset-group {
|
2019-11-22 16:13:00 -05:00
|
|
|
+ fieldset-group {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-top: var(--spacing-s);
|
2019-11-22 16:13:00 -05:00
|
|
|
}
|
2019-10-28 10:04:37 -04:00
|
|
|
|
2019-02-20 00:20:29 -05:00
|
|
|
&.fieldset-group--smushed {
|
|
|
|
justify-content: flex-start;
|
2018-03-26 14:32:43 -07:00
|
|
|
|
2019-02-20 00:20:29 -05:00
|
|
|
fieldset-section {
|
|
|
|
width: auto;
|
2019-11-19 12:41:31 -05:00
|
|
|
margin: 0;
|
2018-04-01 13:46:38 +03:00
|
|
|
|
2019-08-19 12:10:48 -04:00
|
|
|
&:first-child {
|
|
|
|
input,
|
|
|
|
select {
|
2019-02-20 00:20:29 -05:00
|
|
|
border-right: none;
|
2019-05-07 21:29:30 -04: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 00:20:29 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fieldgroup--paginate {
|
2020-06-01 13:03:19 -04:00
|
|
|
padding-bottom: var(--spacing-l);
|
|
|
|
margin-top: var(--spacing-l);
|
2019-06-11 14:10:58 -04:00
|
|
|
align-items: flex-end;
|
2019-02-20 00:20:29 -05:00
|
|
|
justify-content: center;
|
2019-02-13 12:27:20 -04:00
|
|
|
}
|
2017-10-14 16:37:40 -06:00
|
|
|
}
|
2018-03-22 18:14:26 +02:00
|
|
|
|
2019-02-20 00:20:29 -05: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 17:45:17 -05:00
|
|
|
label {
|
|
|
|
min-height: 18px;
|
2019-08-27 10:43:42 -04: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 17:45:17 -05:00
|
|
|
}
|
|
|
|
|
2019-02-20 00:20:29 -05:00
|
|
|
fieldset-section:first-child {
|
2020-06-08 07:13:48 +02:00
|
|
|
max-width: 40%;
|
|
|
|
|
2019-02-20 00:20:29 -05:00
|
|
|
.form-field__prefix {
|
2019-02-21 17:45:17 -05:00
|
|
|
white-space: nowrap;
|
2020-06-08 07:13:48 +02:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2019-11-22 16:13:00 -05:00
|
|
|
padding: 0.5rem;
|
2020-06-01 13:03:19 -04:00
|
|
|
padding-right: var(--spacing-s);
|
2019-11-22 16:13:00 -05:00
|
|
|
height: var(--height-input);
|
2019-02-20 00:20:29 -05:00
|
|
|
border: 1px solid;
|
2019-11-22 16:13:00 -05:00
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
border-bottom-left-radius: var(--border-radius);
|
2019-02-20 00:20:29 -05:00
|
|
|
border-right: 0;
|
2019-11-22 16:13:00 -05:00
|
|
|
border-color: var(--color-input-border);
|
2020-02-11 11:22:23 -05:00
|
|
|
color: var(--color-text-help);
|
2019-11-22 16:13:00 -05:00
|
|
|
background-color: var(--color-input-bg);
|
2020-02-11 11:22:23 -05:00
|
|
|
border-right: 1px solid var(--color-text-help);
|
2019-02-20 00:20:29 -05: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 00:20:29 -05:00
|
|
|
input {
|
|
|
|
border-left: 0;
|
2019-05-07 21:29:30 -04:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
2019-11-22 16:13:00 -05:00
|
|
|
border-color: var(--color-input-border);
|
2020-06-01 13:03:19 -04:00
|
|
|
padding-left: var(--spacing-xs);
|
2019-07-23 20:12:34 -04:00
|
|
|
}
|
2019-02-13 12:27:20 -04:00
|
|
|
}
|
2018-06-13 01:20:53 -04:00
|
|
|
}
|
2017-04-09 11:06:23 -04:00
|
|
|
}
|
|
|
|
|
2019-02-13 12:27:20 -04:00
|
|
|
.form-field--copyable {
|
|
|
|
padding: 0.2rem 0.75rem;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
user-select: text;
|
2019-02-20 00:20:29 -05:00
|
|
|
cursor: default;
|
2017-04-09 11:06:23 -04:00
|
|
|
}
|
|
|
|
|
2019-09-26 12:07:11 -04:00
|
|
|
.form-field--short {
|
|
|
|
width: 25em;
|
|
|
|
}
|
|
|
|
|
2019-02-13 12:27:20 -04:00
|
|
|
.form-field--price-amount {
|
|
|
|
width: 7em;
|
2017-04-09 11:06:23 -04:00
|
|
|
}
|
2018-03-26 14:32:43 -07:00
|
|
|
|
2019-02-13 12:27:20 -04:00
|
|
|
.form-field--address {
|
2019-09-30 17:48:30 -04:00
|
|
|
min-width: 18em;
|
2018-05-25 00:36:43 -04:00
|
|
|
}
|
2019-12-13 14:47:50 -05:00
|
|
|
|
|
|
|
.form-field__help {
|
|
|
|
@extend .help;
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-top: var(--spacing-xxs);
|
|
|
|
margin-bottom: var(--spacing-s);
|
2019-12-13 14:47:50 -05:00
|
|
|
}
|
|
|
|
|
2019-12-18 00:27:08 -05:00
|
|
|
.form-field__help + .checkbox,
|
|
|
|
.form-field__help + .radio {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-top: var(--spacing-l);
|
2019-12-18 00:27:08 -05:00
|
|
|
}
|
|
|
|
|
2019-12-13 14:47:50 -05:00
|
|
|
.form-field__conjuction {
|
|
|
|
padding-top: 1rem;
|
|
|
|
}
|
|
|
|
|
2020-05-21 15:25:37 +08: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 14:47:50 -05:00
|
|
|
fieldset-section {
|
|
|
|
.form-field__internal-option {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-top: var(--spacing-s);
|
2019-12-13 14:47:50 -05:00
|
|
|
margin-left: 2.2rem;
|
|
|
|
|
|
|
|
&:first-of-type {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-top: var(--spacing-s); // Extra specificity needed here since _section.scss is applied after this file
|
2019-12-13 14:47:50 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|