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.
54 lines
950 B
SCSS
54 lines
950 B
SCSS
%stats-card {
|
|
position: relative;
|
|
}
|
|
%stats-card header a,
|
|
%stats-card header a > * {
|
|
display: block;
|
|
}
|
|
%stats-card header a > *,
|
|
%stats-card li a > :last-child {
|
|
/* TODO: %truncate */
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
%stats-card header a {
|
|
padding: 12px 15px;
|
|
}
|
|
%stats-card header > :not(a) {
|
|
@extend %stats-card-icon;
|
|
}
|
|
%stats-card-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
%stats-card-icon:last-child {
|
|
position: absolute;
|
|
background-size: 16px;
|
|
background-position: 5px 5px;
|
|
font-size: 1.5em;
|
|
width: 28px;
|
|
height: 28px;
|
|
top: calc(-28px / 2);
|
|
left: 15px;
|
|
font-size: 0;
|
|
}
|
|
%stats-card-icon:first-child {
|
|
float: right;
|
|
padding-left: 30px;
|
|
height: 16px;
|
|
margin-top: 15px;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
%stats-card li {
|
|
height: 33px;
|
|
}
|
|
%stats-card li a {
|
|
display: flex;
|
|
vertical-align: text-top;
|
|
align-items: center;
|
|
padding: 0 15px 0 12px;
|
|
height: 100%;
|
|
}
|