mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 16:33:44 +08:00
56 lines
1.1 KiB
SCSS
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);
|
|
}
|
|
}
|