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
100 lines
1.9 KiB
SCSS
100 lines
1.9 KiB
SCSS
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
// This file defines the styles for file, file-cta, file-delete-button, file-icon, file-input, file-label, file-name.
|
|
|
|
.file {
|
|
user-select: none;
|
|
}
|
|
|
|
.file-cta {
|
|
align-items: center;
|
|
border: $base-border;
|
|
border-radius: $radius;
|
|
display: inline-flex;
|
|
height: 2.25em;
|
|
justify-content: flex-start;
|
|
min-width: auto;
|
|
padding-bottom: calc(0.375em - 1px);
|
|
padding-left: 1em;
|
|
padding-right: 1em;
|
|
padding-top: calc(0.375em - 1px);
|
|
position: relative;
|
|
vertical-align: top;
|
|
white-space: nowrap;
|
|
|
|
&.button {
|
|
height: $size-2; // in older parts of the code (Ex: shamir-modal-flow) this class is not a button. In newer parts of the code it is, and height needs to match the height of a button (2.5rem).
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.icon:first-child:last-child {
|
|
display: inline-block;
|
|
margin-right: 0.1rem;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.file-delete-button {
|
|
@extend .button;
|
|
@extend .is-transparent;
|
|
color: $grey;
|
|
position: absolute;
|
|
right: $spacing-8;
|
|
}
|
|
|
|
.file-icon {
|
|
align-items: center;
|
|
display: flex;
|
|
height: 1em;
|
|
justify-content: center;
|
|
margin-right: 0.5em;
|
|
width: 1em;
|
|
}
|
|
|
|
.file-input {
|
|
height: 0.01em;
|
|
left: 0;
|
|
outline: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 0.01em;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.file-label {
|
|
align-items: stretch;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
position: relative;
|
|
}
|
|
|
|
.file-name {
|
|
@extend .input;
|
|
border: $base-border;
|
|
border-radius: $radius;
|
|
box-shadow: 0 4px 1px rgba(10, 10, 10, 0.06) inset;
|
|
display: block;
|
|
font-size: 1em;
|
|
line-height: 1.5;
|
|
overflow: hidden;
|
|
padding-bottom: calc(0.375em - 1px);
|
|
padding-left: 1em;
|
|
padding-right: 1em;
|
|
padding-top: calc(0.375em - 1px);
|
|
position: relative;
|
|
text-align: left;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
}
|