Files
python-tdd/src/static_src/scss/_game-kit.scss

115 lines
2.5 KiB
SCSS
Raw Normal View History

#id_kit_btn {
position: fixed;
bottom: 0.5rem;
right: 0.5rem;
@media (orientation: landscape) and (max-width: 1023px) {
right: calc(4rem + 0.5rem);
bottom: 0.75rem;
top: auto;
}
z-index: 305;
font-size: 1.75rem;
cursor: pointer;
color: rgba(var(--secUser), 1);
display: inline-flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
border-radius: 50%;
background-color: rgba(var(--priUser), 1);
border: 0.15rem solid rgba(var(--secUser), 1);
&.active {
color: rgba(var(--quaUser), 1);
border-color: rgba(var(--quaUser), 1);
}
}
#id_kit_bag_dialog {
// Override dialog's native display:none so we can drive visibility via max-height
display: block !important;
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
max-width: none;
margin: 0;
padding: 0;
border: none;
border-top: 0.1rem solid rgba(var(--terUser), 0.3);
background: rgba(var(--priUser), 0.97);
z-index: 204;
overflow: hidden;
@media (orientation: landscape) and (max-width: 1023px) {
z-index: 301; // above navbar sidebar (z-index: 300) in landscape
}
// Closed state
max-height: 0;
visibility: hidden;
transition: max-height 0.25s ease-out, visibility 0s 0.25s;
&[open] {
max-height: 5rem;
visibility: visible;
transition: max-height 0.25s ease-out, visibility 0s;
display: flex !important;
flex-direction: row;
gap: 1.5rem;
align-items: center;
padding: 0.4rem 1rem;
}
}
.kit-bag-section {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.kit-bag-label {
font-size: 0.55rem;
text-transform: uppercase;
text-decoration: underline;
letter-spacing: 0.12em;
color: rgba(var(--secUser), 0.35);
writing-mode: vertical-rl;
text-orientation: mixed;
transform: rotate(180deg);
padding: 0 0.25rem 0 0.5rem;
}
.kit-bag-row {
display: flex;
flex-direction: row;
gap: 0.75rem;
}
#id_kit_bag_dialog {
.token {
font-size: 1.5rem;
cursor: pointer;
transition: filter 0.15s;
padding: 0 0.125rem;
&:hover .token-tooltip { display: none; } // JS positions these as fixed
}
.token-tooltip {
z-index: 9999;
}
}
.kit-bag-empty {
font-size: 0.7rem;
color: rgba(var(--secUser), 0.4);
}