vault/ui/app/styles/components/selectable-card-container.scss
claire bontempo a5b60cd8cc
UI: move selectable card to add-on (#23739)
* remove title-number class and consolidate border radius

* move selectable card to core addon

* add top padding to db cards

* update transform icon color

* new selectable card component

* fix db test

* use selectable card in mount backend form

* fix query param for overview card

* update tests

* fix replication card styling

* make card accessible;

* update tabindex

* change to standalone for error handling

* update test selector

* update tests

* go back to number only css class

* fix on click tests

* add changelog

* update class name in template file

* delete box radio
2023-10-20 15:10:49 -07:00

35 lines
683 B
SCSS

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
.selectable-card-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
grid-template-rows: 1fr;
grid-gap: 2rem;
&.one-card {
max-width: 33%;
min-width: 350px;
margin-left: auto;
margin-right: auto;
}
}
.selectable-card-container.has-grid {
display: grid;
grid-template-columns: 2fr 1fr;
grid-template-rows: repeat(2, 1fr);
grid-gap: 2rem;
@include until($mobile) {
grid-template-columns: 2fr;
}
}
.selectable-card-container.has-grid.has-three-col-grid {
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: none;
}