hensei-web/components/common/DialogFooter/index.module.scss
Justin Edmund af9064a356 Some fixes for scrollable dialogs on mobile
This is 100% not going to scale to devices that are not my iPhone 14 Pro Max, but I can't get env variables working in CSS and something is better than nothing for right now.
2023-07-06 19:22:11 -07:00

26 lines
535 B
SCSS

.footer {
$multiplier: 4;
align-items: flex-end;
background: var(--dialog-bg);
bottom: -1px; // hack to fix content being visible 1px below
display: flex;
flex-direction: row;
justify-content: space-between;
padding: ($unit * 1.5) ($unit * $multiplier) $unit-3x;
position: sticky;
transition: box-shadow 0.1s ease-out, border-top 0.1s ease-out;
.left,
.right {
display: flex;
gap: $unit;
}
@include breakpoint(phone) {
position: fixed;
bottom: $unit-14x;
left: 0;
right: 0;
}
}