-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathFieldset.module.css
50 lines (43 loc) · 1.29 KB
/
Fieldset.module.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@import '../../design-tokens/mixins.css';
/*------------------------------------*\
# FIELDSET
\*------------------------------------*/
/**
* The fieldset groups a legend and several controls.
*/
.fieldset {
@mixin fieldsetStyles;
/* Overrides default browser styling. */
margin: var(--eds-size-2);
}
/*------------------------------------*\
# FIELDSET ITEMS
\*------------------------------------*/
/**
* The contents of the fieldset. Spaces them apart.
*/
.fieldset-items > :not(:last-child) {
margin-bottom: var(--eds-size-1-and-half);
}
/*------------------------------------*\
# FIELDSET LEGEND
\*------------------------------------*/
/**
* A label that's rendered as a <legend> for fieldsets.
* It contains the same characteristics as a label (ability to add flag for optional field, etc),
* but semantically/stylistically a bit different.
*/
.fieldset-legend {
/* Removes some default browser styles. */
@mixin legendReset;
font: var(--eds-theme-typography-form-label);
/* Adjust margin between legend and option list */
margin-bottom: var(--eds-size-2);
}
/**
* Label flag to mark whether or not a field is required
* or optional. Currently a flag is only present for optional fields
*/
.fieldset-legend__flag {
font: var(--eds-theme-typography-body-sm);
}