eb7b69cc24
This includes an update of our CSS npm module. The majority of this is just moving files from one folder to another. 1. %breadrumbs: As well as moving we've added 'milestone' breadcrumbs 2. %checkbox-group: Moved 3. %radio-group: Moved 4. %sliding-toggle: Moved (used to be called just %toggle) 5. %form-elements: Moved and added a new %inline-alert for form field messaging (see Structure design system) 6. %action-group is now a composition of %menu-panel, %toggle-button, plus edits to existing style to bring the %action-groups inline with the dropdowns from Structure). %action-group also includes a composed %confirmation-alert that is yet to be include. This will be compiled out until we integrate it. We've also removed some of our old icon placeholders as the above work seased to use some of them. Now we done this I'd say all in all over half of our CSS components now use the CSS npm module. The CSS specific to Consul UI also uses much of this CSS module by way of helper placeholders such as our %frames.
53 lines
916 B
SCSS
53 lines
916 B
SCSS
%form-element,
|
|
%form-element-label,
|
|
%form-element-note,
|
|
%form-element textarea {
|
|
display: block;
|
|
}
|
|
%form-element a {
|
|
display: inline;
|
|
}
|
|
%form-element-note > code {
|
|
display: inline-block;
|
|
}
|
|
%form-element [type='text'],
|
|
%form-element [type='password'] {
|
|
display: inline-flex;
|
|
justify-content: flex-start;
|
|
}
|
|
%form-element textarea {
|
|
resize: vertical;
|
|
}
|
|
%form-row {
|
|
margin-bottom: 1.4em;
|
|
}
|
|
%form-element-label {
|
|
margin-bottom: 0.3em;
|
|
}
|
|
%form-element [type='text'],
|
|
%form-element [type='password'] {
|
|
max-width: 100%;
|
|
width: 100%;
|
|
/* height: 2.25em; */
|
|
height: 0;
|
|
padding: 17px 13px;
|
|
}
|
|
%form-element textarea {
|
|
max-width: 100%;
|
|
min-width: 100%;
|
|
min-height: 70px;
|
|
padding: 6px 13px;
|
|
}
|
|
%form-element-note {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* this is for label span em input */
|
|
%form-element-label + em {
|
|
margin-top: -0.5em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
%form-element-note > code {
|
|
padding: 0 4px;
|
|
}
|