open-vault/ui/app/styles/components/selectable-card.scss
Angel Garbarino 793ad94d08
Add Core Usage Metrics Components to Storybook (#8401)
* add core usage metrics components to storybook, rename component from small to simple

* remove const from js file

* remove grid container knob from selectable-card
2020-03-02 10:12:34 -07:00

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-simple {
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);
}