Retrospring/app/javascript/styles/components/_mobile-nav.scss

60 lines
1.3 KiB
SCSS
Raw Normal View History

2021-08-05 15:36:02 -07:00
#rs-mobile-nav {
.container {
padding: 0;
}
padding: 4px 0 unquote('calc(env(safe-area-inset-bottom) + 4px)') 0;
2021-08-05 15:36:02 -07:00
2021-08-07 10:18:01 -07:00
.navbar-icon-row {
2021-08-05 15:36:02 -07:00
flex-direction: row;
justify-content: space-around;
2021-08-05 15:36:02 -07:00
width: 100%;
2021-08-06 14:19:50 -07:00
.nav-link {
padding: 0;
.fa {
padding-top: 8px;
font-size: 20px;
}
2021-08-12 04:29:50 -07:00
.badge {
position: absolute;
top: 4px;
transform: translateX(16px);
2021-08-12 04:29:50 -07:00
}
2021-08-06 14:19:50 -07:00
}
2021-08-05 15:36:02 -07:00
}
2021-08-07 10:18:01 -07:00
}
@include media-breakpoint-down("md") {
.notification-dropdown,
.profile-dropdown {
bottom: unquote("calc(env(safe-area-inset-bottom) + #{$navbar-height + 2px})");
position: fixed;
top: unset;
}
.profile-dropdown {
left: unset;
right: unquote("calc(env(safe-area-inset-right) + 15px)");
}
2022-07-20 07:52:13 -07:00
.dropdown-menu.notification-dropdown {
left: unquote("calc(env(safe-area-inset-left) + 8px)");
max-width: unquote("calc(100vw - (8px + env(safe-area-inset-right)) - (8px + env(safe-area-inset-left)))");
2022-07-20 07:52:13 -07:00
min-width: unset;
right: unquote("calc(env(safe-area-inset-right) + 8px)");
2022-07-20 07:52:13 -07:00
width: unquote("calc(100vw - (8px + env(safe-area-inset-right)) - (8px + env(safe-area-inset-left)))");
.dropdown-item {
padding: 8px;
2022-07-20 07:52:13 -07:00
}
2022-07-20 07:52:13 -07:00
.notification {
padding: 0;
white-space: normal;
}
}
2021-08-07 10:18:01 -07:00
}