mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-24 04:01:37 +01:00
* Core usage metrics v1 (merge to side-branch) (#8238) * restructure menu layout per designs * setup new routing that will set the stage for a metrics landing page * fix formatting * Revert "fix formatting" This reverts commit e77cdec5e58cdcea49aa1b97f80238433c4f7d1e. * fix formatting * small styling changes * change request routing to metrics * rename route js file * Core usage metrics v2 (#8263) * restructure menu layout per designs * setup new routing that will set the stage for a metrics landing page * fix formatting * Revert "fix formatting" This reverts commit e77cdec5e58cdcea49aa1b97f80238433c4f7d1e. * fix formatting * small styling changes * change request routing to metrics * rename route js file * setup selectable card component and api request * add token and http request models to route and template * add entities to route and template * clean up * add breadcrumbs and some clean up work * remove unused selectable-card component * refactor to a serializer * move adapters, serializers, and models into metrics folder * remove unused file * address pr comments * address pr comments * Core Usage Metrics V3 (#8316) * restructure menu layout per designs * setup new routing that will set the stage for a metrics landing page * fix formatting * Revert "fix formatting" This reverts commit e77cdec5e58cdcea49aa1b97f80238433c4f7d1e. * fix formatting * small styling changes * change request routing to metrics * rename route js file * setup selectable card component and api request * add token and http request models to route and template * add entities to route and template * clean up * add breadcrumbs and some clean up work * remove unused selectable-card component * setup smaller http request bar chart * refactor to a serializer * move adapters, serializers, and models into metrics folder * remove unused file * setup change part of component * fix broken model * add conditional class * setting up computed properties in new component * small fixes * setup components * minor fixes * rename * clean up * firefox fix * remove shadow bars * move out of metrics folders * modify permissions to show difference between token entities and requests * make tests * fix class names and associated tests * clean up * fix text overflow in non-chrome browsers * address pr comments, specifically class names and tests * move into one component * clean up component descriptions in comments * small wording changes * fix for accessibility * address pr comments around component examples for storybook * fix test * fix failing test * fix test
83 lines
1.5 KiB
SCSS
83 lines
1.5 KiB
SCSS
.selectable-card {
|
|
box-shadow: 0 0 0 1px rgba($grey-dark, 0.3);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: $spacing-l 0 $spacing-l $spacing-l;
|
|
line-height: 0;
|
|
|
|
&:hover {
|
|
box-shadow: 0 0 0 1px $grey-light, $box-shadow-middle;
|
|
}
|
|
|
|
> a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.card-details {
|
|
grid-column-start: 2;
|
|
grid-row-start: 3;
|
|
align-self: center;
|
|
justify-self: right;
|
|
padding-right: $spacing-l;
|
|
}
|
|
|
|
.http-requests-bar-chart-small {
|
|
grid-column: 1 / span 2;
|
|
grid-row-start: 2;
|
|
align-self: end;
|
|
min-width: 100%; // necessary for Firefox
|
|
}
|
|
|
|
.change-metric {
|
|
justify-self: right;
|
|
padding-right: $spacing-l;
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
|
|
.hs-icon {
|
|
color: $grey-light;
|
|
align-self: center;
|
|
justify-self: right;
|
|
}
|
|
|
|
.amount-change {
|
|
align-self: center;
|
|
justify-self: center;
|
|
|
|
font-weight: 500;
|
|
}
|
|
.item-c {
|
|
grid-column: 1 / span 2;
|
|
align-self: start;
|
|
justify-self: end;
|
|
|
|
font-weight: $font-weight-semibold;
|
|
white-space: nowrap;
|
|
|
|
@include until($mobile) {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
.title-number {
|
|
color: $black;
|
|
font-size: 36px;
|
|
font-weight: 500;
|
|
line-height: 1.33;
|
|
}
|
|
}
|
|
|
|
.selectable-card.is-rounded {
|
|
border-radius: $radius;
|
|
}
|
|
|
|
.change-metric-icon.is-decrease {
|
|
transform: rotate(135deg);
|
|
}
|
|
|
|
.change-metric-icon.is-increase {
|
|
transform: rotate(45deg);
|
|
}
|