mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 13:09:42 -04:00
114 lines
1.8 KiB
SCSS
114 lines
1.8 KiB
SCSS
@use "uswds-core" as *;
|
|
|
|
$delivered: color('blue-50v');
|
|
$pending: color('green-cool-40v');
|
|
$failed: color('orange-30v');
|
|
|
|
.chart-container {
|
|
display: flex;
|
|
height: units(8);
|
|
&.usage {
|
|
height: units(4);
|
|
}
|
|
}
|
|
|
|
.bar {
|
|
border-radius: units(0.5);
|
|
&.delivered, &.usage {
|
|
background-color: $delivered;
|
|
margin-right: 1px;
|
|
}
|
|
&.pending{
|
|
background-color: $pending;
|
|
margin-right: 1px;
|
|
}
|
|
&.failed, &.remaining {
|
|
background-color: $failed;
|
|
}
|
|
}
|
|
|
|
.legend {
|
|
display: flex;
|
|
margin: units(1) 0;
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-right: units(2);
|
|
}
|
|
.legend-color {
|
|
width: units(3);
|
|
height: units(3);
|
|
margin-right: 0;
|
|
padding: 0;
|
|
border-radius: 2px;
|
|
background-color: $delivered;
|
|
&.pending {
|
|
background-color: $pending;
|
|
}
|
|
&.failed, &.remaining {
|
|
background-color: $failed;
|
|
}
|
|
}
|
|
.legend-value {
|
|
margin: 0 units(1);
|
|
}
|
|
}
|
|
|
|
.usa-tooltip {
|
|
line-height: 1;
|
|
.usa-tooltip__body {
|
|
width: units(mobile);
|
|
height: auto;
|
|
white-space: wrap;
|
|
line-height: 1.3;
|
|
}
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 300px;
|
|
height: 20px;
|
|
background-color: #eee;
|
|
border-radius: 5px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.progress-bar-inner {
|
|
height: 100%;
|
|
background-color: #007bff;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
|
|
// tabs
|
|
|
|
.tab {
|
|
display: flex;
|
|
margin-bottom: units(2);
|
|
}
|
|
|
|
.tab button {
|
|
cursor: pointer;
|
|
border-radius: 0;
|
|
margin-right: units(-1px);
|
|
&:focus {
|
|
outline-width: 2px;
|
|
}
|
|
&.active, &:hover {
|
|
background-color: color("blue-60v");
|
|
color: #FFF;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
.tabcontent {
|
|
display: none;
|
|
padding: units(1);
|
|
}
|
|
.chart-subtitle {
|
|
text-align: left;
|
|
width: 100%;
|
|
font-size: size("body", 5);
|
|
font-weight: bold;
|
|
padding: units(1);
|
|
margin: 0;
|
|
}
|