mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-03 13:01:12 +02:00
* fix button padding * rename spacing variables using numerical values * fix toggle aligment * remove unused toggle classes * replace margin and padding with spacing vars * increase base font size * remove switch css, use toggle consistently * remaining margin/padding size vars to spacing pixels * add deprecated note, rever changes to size vars * decrease console size * remove function * adjust card size for small selectable cards * fix select to fit to content width * fix toolbar-scroller height * add changelog; * fix checkbox styling
98 lines
1.4 KiB
SCSS
98 lines
1.4 KiB
SCSS
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
.level {
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.level code {
|
|
border-radius: $radius;
|
|
}
|
|
|
|
.level:not(:last-child) {
|
|
@include vault-block;
|
|
}
|
|
|
|
.level-left,
|
|
.level-right {
|
|
flex-basis: auto;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.level-right {
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.level-left {
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.level.is-mobile,
|
|
.level.is-mobile .level-left,
|
|
.level.is-mobile .level-right {
|
|
display: flex;
|
|
}
|
|
|
|
.level.is-mobile .level-left + .level-right {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.level.is-mobile .level-item:not(:last-child) {
|
|
margin-bottom: 0;
|
|
margin-right: $spacing-10;
|
|
}
|
|
|
|
.level.is-mobile .level-item:not(.is-narrow) {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.level.has-padded-items {
|
|
.level-item {
|
|
flex: 0 1 auto;
|
|
}
|
|
.level-item {
|
|
padding-right: 1.5rem;
|
|
}
|
|
.level-item.is-fixed-25 {
|
|
flex-basis: 25%;
|
|
}
|
|
}
|
|
|
|
.level-item {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-basis: auto;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
justify-content: center;
|
|
}
|
|
|
|
// responsive css
|
|
@media screen and (min-width: 769px), print {
|
|
.level {
|
|
display: flex;
|
|
}
|
|
.level > .level-item:not(.is-narrow) {
|
|
flex-grow: 1;
|
|
}
|
|
.level-left {
|
|
display: flex;
|
|
}
|
|
|
|
.level-right {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
.level-item:not(:last-child) {
|
|
margin-bottom: $spacing-10;
|
|
}
|
|
}
|