Fix availabilities style

This commit is contained in:
Arnaud 2024-11-21 12:39:16 +01:00
parent b576d716e2
commit cd48cbc646
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -112,140 +112,14 @@
}
}
}
}
.availabilities-actions {
padding: 1rem;
display: flex;
align-items: center;
justify-content: flex-end;
}
.space-allocation {
flex-direction: column;
.availabilities-loader {
margin: auto;
display: block;
}
.availabilities-header {
position: relative;
}
.availabilities-content {
display: flex;
flex-direction: column;
}
.nodeSpaceAllocation-bar {
background-color: var(--codex-background-light);
padding: 0.25rem;
border-radius: var(--codex-border-radius);
}
.availabilities-space-allocation .nodeSpaceAllocation-legendRow,
.availabilities-space-allocation .nodeSpaceAllocation-barItem {
transition: opacity 0.35s;
opacity: 0.3;
}
.availabilities-space-allocation .nodeSpaceAllocation-barItem:hover {
opacity: 1;
}
.availabilities-space-allocation {
flex: 1;
}
/*
// This isn't the best approach, but it will suffice for now.
// The issue is that there is no sibling index to create a generic rule.
// Additionally, rerendering the components with React on hover feels like overkill.
// We are also uncertain about the number of availabilities that will be in the table,
// so this workaround is acceptable for the time being.
// @for $i from 1 through 30 {
// .availabilities-table:has(.table-tbodyTr:nth-child(#{$i}):hover)
// + .availabilities-space
// .nodeSpaceAllocation-barItem:nth-child(#{$i}),
// .availabilities-table:has(.table-tbodyTr:nth-child(#{$i}):hover)
// + .availabilities-space
// .nodeSpaceAllocation-legendRow:nth-child(#{$i}) {
// opacity: 1;
// }
// .availabilities-table:has(.table-tbodyTr:nth-child(#{$i}):hover)
// + .availabilities-space
// .nodeSpaceAllocation-barItem:nth-child(#{$i})::after {
// opacity: 1;
// z-index: 1;
// }
// .availabilities-table:has(
// ~ .availabilities-space
// .nodeSpaceAllocation-barItem:nth-child(#{$i}):hover
// )
// .table-tbodyTr:nth-child(#{$i}) {
// background-color: var(--codex-background-light);
// }
// }
*/
.plus {
border-radius: 50%;
width: 5rem;
height: 5rem;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
margin: auto;
z-index: 1;
}
.plus .button-label {
display: none;
}
.progress {
border: 1px solid var(--codex-border-color);
height: 8px;
width: 200px;
border-radius: var(--codex-border-radius);
background-color: var(--codex-background);
display: flex;
}
.progress-bar {
height: 100%;
background-color: var(--codex-progress-bar);
display: inline-block;
border-radius: var(--codex-border-radius);
}
.progress-container {
text-align: right;
display: flex;
flex-direction: column;
gap: 0.5rem;
align-items: center;
}
.slot {
background-color: transparent;
background-image: repeating-linear-gradient(
-45deg,
transparent,
transparent 1rem,
rgb(var(--codex-color-primary-rgb)) 1rem,
rgb(var(--codex-color-primary-rgb)) 1.5rem
);
background-size: 200% 200%;
animation: barberpole 10s linear infinite;
}
@keyframes barberpole {
100% {
background-position: 100% 100%;
header {
width: 100%;
margin-bottom: 0;
margin-top: 0;
}
}
}