2019-04-11 00:23:18 +08:00
|
|
|
// --------------------------------------------------
|
2019-04-12 02:11:26 +08:00
|
|
|
// Footer nav bar (displayed in DiscourseHub app and PWAs)
|
2019-04-11 00:23:18 +08:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2021-09-14 03:09:06 +08:00
|
|
|
$footer-nav-height: 49px;
|
2019-04-11 00:23:18 +08:00
|
|
|
|
2022-08-02 06:01:06 +08:00
|
|
|
:root {
|
2024-01-31 21:41:12 +08:00
|
|
|
--footer-nav-height: #{$footer-nav-height};
|
2024-02-01 17:24:44 +08:00
|
|
|
}
|
2024-01-31 21:41:12 +08:00
|
|
|
|
2024-02-01 17:24:44 +08:00
|
|
|
html.footer-nav-visible {
|
2019-04-16 03:25:40 +08:00
|
|
|
#main-outlet {
|
2022-08-02 06:01:06 +08:00
|
|
|
padding-bottom: calc(var(--footer-nav-height) + 15px);
|
2019-04-16 03:25:40 +08:00
|
|
|
}
|
|
|
|
|
2019-04-11 00:23:18 +08:00
|
|
|
#reply-control.draft {
|
2022-08-02 06:01:06 +08:00
|
|
|
bottom: var(--footer-nav-height);
|
2019-04-16 07:10:18 +08:00
|
|
|
margin-bottom: env(safe-area-inset-bottom);
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
2020-12-11 02:25:09 +08:00
|
|
|
|
2021-10-29 21:23:15 +08:00
|
|
|
#topic-progress-wrapper:not(.docked) {
|
2022-08-02 06:01:06 +08:00
|
|
|
margin-bottom: calc(var(--footer-nav-height) + env(safe-area-inset-bottom));
|
2021-10-29 21:23:15 +08:00
|
|
|
}
|
2020-12-11 02:25:09 +08:00
|
|
|
.posts-filtered-notice {
|
|
|
|
transition: all linear 0.1s;
|
2022-08-02 06:01:06 +08:00
|
|
|
bottom: calc(var(--footer-nav-height) + env(safe-area-inset-bottom));
|
2020-12-11 02:25:09 +08:00
|
|
|
}
|
2019-04-11 00:23:18 +08:00
|
|
|
}
|
|
|
|
|
2019-04-12 02:11:26 +08:00
|
|
|
.footer-nav {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: rgba(var(--header_background-rgb), 0.9);
|
2023-06-14 04:38:31 +08:00
|
|
|
box-shadow: var(--shadow-footer-nav);
|
2022-08-02 06:01:06 +08:00
|
|
|
height: var(--footer-nav-height);
|
2019-04-11 00:23:18 +08:00
|
|
|
position: fixed;
|
2022-08-02 06:01:06 +08:00
|
|
|
bottom: calc(var(--footer-nav-height) * -1);
|
2019-04-11 00:23:18 +08:00
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
2019-04-12 02:11:26 +08:00
|
|
|
z-index: z("footer-nav");
|
|
|
|
transition: all linear 0.1s;
|
2019-04-11 00:23:18 +08:00
|
|
|
|
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--header_primary-medium);
|
2019-04-11 00:23:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.visible {
|
|
|
|
bottom: 0px;
|
|
|
|
}
|
|
|
|
|
2019-04-12 02:11:26 +08:00
|
|
|
.footer-nav-widget {
|
2019-04-11 00:23:18 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: "space-evenly";
|
|
|
|
@include unselectable;
|
|
|
|
button {
|
|
|
|
flex: 1;
|
2019-05-13 22:23:59 +08:00
|
|
|
margin: 4px;
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 14px 18px;
|
2019-04-11 00:23:18 +08:00
|
|
|
&:disabled {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-12 02:11:26 +08:00
|
|
|
|
2019-05-13 22:23:59 +08:00
|
|
|
@supports (padding: max(0px)) {
|
|
|
|
.footer-nav.visible {
|
|
|
|
padding-bottom: unquote("max(5px, env(safe-area-inset-bottom))");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-12 02:11:26 +08:00
|
|
|
@supports (-webkit-backdrop-filter: blur(10px)) {
|
2024-02-01 17:24:44 +08:00
|
|
|
html:not(.footer-nav-ipad) .footer-nav {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: rgba(var(--header_background-rgb), 0.7);
|
2019-04-13 00:29:54 +08:00
|
|
|
-webkit-backdrop-filter: blur(20px);
|
2019-04-12 02:11:26 +08:00
|
|
|
}
|
|
|
|
}
|
2019-04-16 03:25:40 +08:00
|
|
|
|
2024-02-01 17:24:44 +08:00
|
|
|
html.footer-nav-ipad {
|
2022-08-02 06:01:06 +08:00
|
|
|
padding-top: var(--footer-nav-height);
|
2019-04-16 03:25:40 +08:00
|
|
|
.footer-nav {
|
|
|
|
bottom: auto;
|
|
|
|
top: 0px;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--header_background);
|
2019-04-16 03:25:40 +08:00
|
|
|
z-index: z("ipad-header-nav");
|
2019-05-09 22:25:22 +08:00
|
|
|
padding-bottom: 0; // resets safe-area-inset-bottom
|
2019-04-16 03:25:40 +08:00
|
|
|
}
|
|
|
|
|
2019-10-03 02:13:33 +08:00
|
|
|
#reply-control,
|
2019-10-01 20:22:17 +08:00
|
|
|
#reply-control.fullscreen {
|
|
|
|
z-index: z("ipad-header-nav") + 1;
|
|
|
|
}
|
|
|
|
|
2020-10-27 01:53:20 +08:00
|
|
|
&.docked .d-header-wrap {
|
2022-08-02 06:01:06 +08:00
|
|
|
top: var(--footer-nav-height);
|
2020-10-27 01:53:20 +08:00
|
|
|
}
|
2019-04-16 03:25:40 +08:00
|
|
|
}
|