Files
fleet/frontend/components/FileDetails/_styles.scss
T

75 lines
1.5 KiB
SCSS

.file-details {
display: flex;
justify-content: space-between;
width: 100%;
gap: $pad-medium;
&__info {
display: flex;
gap: $pad-medium;
align-items: center;
width: 100%;
text-align: left;
&--disabled-by-gitops-mode {
@include disabled;
}
}
&__name {
font-size: $x-small;
font-weight: $bold;
overflow-wrap: anywhere; // Prevent long file name overflow
}
&__description {
font-size: $xx-small;
color: $ui-fleet-black-75;
}
&__edit,
&__delete {
display: flex;
align-items: center; // Center the button vertically
margin-right: -$pad-medium; // Adjust for button padding
}
label {
display: flex;
&:hover {
cursor: pointer;
}
}
&__progress-wrapper {
display: flex;
width: 184px; // 144px bar + $pad-small gap + 32px text
flex-shrink: 0; // don't let the sibling __info collapse this wrapper to its min-content (#47539)
justify-content: space-between;
align-items: center;
gap: $pad-small;
}
&__progress-bar {
display: inline-block;
height: 6px;
width: 144px;
background-color: $ui-fleet-black-10;
border-radius: 32px;
overflow: hidden;
}
&__progress-bar--uploaded {
background-color: $core-fleet-green;
height: 100%;
}
&__progress-text {
width: 32px; // fixed width so "1%" → "100%" doesn't shift the bar (#47539)
flex-shrink: 0;
text-align: right;
font-size: $x-small;
color: $ui-fleet-black-50;
}
}