discourse/app/assets/stylesheets/common/components/footer-nav.scss
2019-04-12 12:29:54 -04:00

56 lines
1.1 KiB
SCSS

// --------------------------------------------------
// Footer nav bar (displayed in DiscourseHub app and PWAs)
// --------------------------------------------------
$footer-nav-height: 55px;
body.footer-nav-visible {
padding-bottom: $footer-nav-height + 15;
#topic-progress-wrapper,
#reply-control.draft {
bottom: $footer-nav-height;
}
}
.footer-nav {
background-color: rgba($header_background, 0.9);
box-shadow: shadow("footer-nav");
height: $footer-nav-height;
position: fixed;
bottom: -$footer-nav-height;
left: 0;
width: 100%;
z-index: z("footer-nav");
transition: all linear 0.1s;
.d-icon {
color: $header_primary-medium;
}
&.visible {
bottom: 0px;
padding-bottom: env(safe-area-inset-bottom);
}
.footer-nav-widget {
display: flex;
justify-content: "space-evenly";
@include unselectable;
button {
flex: 1;
margin: 12px;
&:disabled {
opacity: 0.6;
}
}
}
}
@supports (-webkit-backdrop-filter: blur(10px)) {
.footer-nav {
background-color: rgba($header_background, 0.7);
-webkit-backdrop-filter: blur(20px);
}
}