124 lines
3.3 KiB
CSS
124 lines
3.3 KiB
CSS
/*
|
|
Copyright 2019 Adobe. All rights reserved.
|
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software distributed under
|
|
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
governing permissions and limitations under the License.
|
|
*/
|
|
|
|
@import "../vars/css/components/spectrum-fieldlabel.css";
|
|
|
|
.spectrum-FieldLabel--sizeS {
|
|
@remapvars {
|
|
find: --spectrum-fieldlabel-s-;
|
|
replace: --spectrum-fieldlabel-;
|
|
}
|
|
}
|
|
|
|
.spectrum-FieldLabel--sizeM {
|
|
@remapvars {
|
|
find: --spectrum-fieldlabel-m-;
|
|
replace: --spectrum-fieldlabel-;
|
|
}
|
|
}
|
|
|
|
.spectrum-FieldLabel--sizeL {
|
|
@remapvars {
|
|
find: --spectrum-fieldlabel-l-;
|
|
replace: --spectrum-fieldlabel-;
|
|
}
|
|
}
|
|
|
|
.spectrum-FieldLabel--sizeXL {
|
|
@remapvars {
|
|
find: --spectrum-fieldlabel-xl-;
|
|
replace: --spectrum-fieldlabel-;
|
|
}
|
|
}
|
|
|
|
.spectrum-FieldLabel {
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-block: var(--spectrum-fieldlabel-padding-top) var(--spectrum-fieldlabel-padding-bottom);
|
|
padding-inline: 0;
|
|
|
|
font-size: var(--spectrum-fieldlabel-text-size);
|
|
font-weight: var(--spectrum-fieldlabel-text-font-weight);
|
|
line-height: var(--spectrum-fieldlabel-text-line-height);
|
|
|
|
vertical-align: top;
|
|
|
|
-webkit-font-smoothing: subpixel-antialiased;
|
|
-moz-osx-font-smoothing: auto;
|
|
font-smoothing: subpixel-antialiased;
|
|
}
|
|
|
|
.spectrum-FieldLabel-requiredIcon {
|
|
margin-block: var(--spectrum-fieldlabel-asterisk-margin-y) 0;
|
|
margin-inline: var(--spectrum-fieldlabel-asterisk-gap) 0;
|
|
}
|
|
|
|
.spectrum-FieldLabel--left {
|
|
display: inline-block;
|
|
padding-block: var(--spectrum-fieldlabel-side-m-padding-top) 0;
|
|
padding-inline: 0 var(--spectrum-fieldlabel-side-m-padding-right);
|
|
|
|
& .spectrum-FieldLabel-requiredIcon {
|
|
margin-block: var(--spectrum-fieldlabel-side-m-asterisk-margin-y) 0;
|
|
margin-inline: var(--spectrum-fieldlabel-asterisk-gap) 0;
|
|
}
|
|
}
|
|
|
|
.spectrum-FieldLabel--right {
|
|
display: inline-block;
|
|
text-align: end;
|
|
padding-block: var(--spectrum-fieldlabel-side-m-padding-top) 0;
|
|
/* todo: correct missing DNA variable */
|
|
padding-inline: 0 var(--spectrum-fieldlabel-side-m-padding-right);
|
|
}
|
|
|
|
.spectrum-Form {
|
|
--spectrum-tableform-border-spacing: 0 var(--spectrum-global-dimension-size-300);
|
|
--spectrum-tableform-margin: calc(var(--spectrum-global-dimension-size-250) * -1) 0;
|
|
--spectrum-tableform-labelsabove-item-gap: var(--spectrum-global-dimension-size-100);
|
|
|
|
display: table;
|
|
border-collapse: separate;
|
|
border-spacing: var(--spectrum-tableform-border-spacing);
|
|
margin: var(--spectrum-tableform-margin);
|
|
}
|
|
|
|
.spectrum-Form-item {
|
|
display: table-row;
|
|
}
|
|
|
|
.spectrum-Form-itemLabel {
|
|
@extend .spectrum-FieldLabel;
|
|
display: table-cell;
|
|
}
|
|
|
|
.spectrum-Form-itemField {
|
|
display: table-cell;
|
|
}
|
|
|
|
.spectrum-Form--labelsAbove {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
|
|
.spectrum-Form-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
& + .spectrum-Form-item {
|
|
margin-block-start: var(--spectrum-tableform-labelsabove-item-gap);
|
|
}
|
|
}
|
|
}
|