mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 17:02:17 -05:00
Sticky footer in desktop nav
This commit is contained in:
parent
67384695f1
commit
a5c6400601
@ -19,6 +19,19 @@
|
|||||||
width: $aside-width;
|
width: $aside-width;
|
||||||
background: $color-main;
|
background: $color-main;
|
||||||
color: $color-main-text;
|
color: $color-main-text;
|
||||||
|
|
||||||
|
@include respond-to(smaller-lg) {
|
||||||
|
transform: translateX(-100%);
|
||||||
|
}
|
||||||
|
@include respond-to(lg) {
|
||||||
|
width: $aside-width-lg;
|
||||||
|
background: $color-bg;
|
||||||
|
color: $color-text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__aside-scroll {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
@include scrollbar(main);
|
@include scrollbar(main);
|
||||||
@ -28,13 +41,7 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include respond-to(smaller-lg) {
|
|
||||||
transform: translateX(-100%);
|
|
||||||
}
|
|
||||||
@include respond-to(lg) {
|
@include respond-to(lg) {
|
||||||
width: $aside-width-lg;
|
|
||||||
background: $color-bg;
|
|
||||||
color: $color-text;
|
|
||||||
@include scrollbar(base);
|
@include scrollbar(base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
// Main Navigation Menu
|
// Main Navigation Menu
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
$nav-padding-left: 8px;
|
$nav-entry-indentation: 8px;
|
||||||
|
$nav-padding-sm: 15px;
|
||||||
$nav-padding-h: 10px;
|
$nav-padding-h: 10px;
|
||||||
$footer-height: 30px;
|
$footer-height: 30px;
|
||||||
|
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: $nav-padding-h + 5px;
|
padding: $nav-padding-sm;
|
||||||
background: $color-main;
|
background: $color-main;
|
||||||
color: $color-main-text;
|
color: $color-main-text;
|
||||||
|
|
||||||
@ -78,7 +79,7 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
&__secondary {
|
&__secondary {
|
||||||
margin: 30px 0 15px;
|
margin: 30px 0 0;
|
||||||
border-top: 1px solid $color-main-text;
|
border-top: 1px solid $color-main-text;
|
||||||
padding: 15px 0 0;
|
padding: 15px 0 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@ -108,12 +109,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
& > footer {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include respond-to(lg) {
|
@include respond-to(lg) {
|
||||||
padding: $nav-padding-h;
|
padding-left: $nav-padding-h;
|
||||||
|
padding-right: $nav-padding-h;
|
||||||
padding-top: 27px; // magic number to valign logo with action bar
|
padding-top: 27px; // magic number to valign logo with action bar
|
||||||
padding-bottom: $footer-height;
|
padding-bottom: $footer-height;
|
||||||
background: $color-bg;
|
background: $color-bg;
|
||||||
@ -141,7 +140,7 @@
|
|||||||
}
|
}
|
||||||
&__folder {
|
&__folder {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
padding-left: $nav-padding-left;
|
padding-left: $nav-entry-indentation;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
a {
|
a {
|
||||||
@ -170,11 +169,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
&__secondary {
|
&__secondary {
|
||||||
|
margin-bottom: 15px;
|
||||||
border-top-color: $color-border-light;
|
border-top-color: $color-border-light;
|
||||||
& > li {
|
& > li {
|
||||||
font-size: $font-size-small;
|
font-size: $font-size-small;
|
||||||
padding-left: $nav-padding-left;
|
padding-left: $nav-entry-indentation;
|
||||||
padding-right: 5px;
|
|
||||||
a {
|
a {
|
||||||
color: $color-text-light;
|
color: $color-text-light;
|
||||||
& > svg {
|
& > svg {
|
||||||
@ -183,7 +182,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
& > footer {
|
}
|
||||||
|
|
||||||
|
@at-root {
|
||||||
|
.nav-footer {
|
||||||
|
display: none;
|
||||||
|
|
||||||
|
@include respond-to(lg) {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@ -191,6 +196,7 @@
|
|||||||
right: $nav-padding-h;
|
right: $nav-padding-h;
|
||||||
height: $footer-height;
|
height: $footer-height;
|
||||||
border-top: 1px solid $color-border-light;
|
border-top: 1px solid $color-border-light;
|
||||||
|
background: $color-bg;
|
||||||
font-size: $font-size-smaller;
|
font-size: $font-size-smaller;
|
||||||
line-height: $footer-height - 4px;
|
line-height: $footer-height - 4px;
|
||||||
color: $color-text-light;
|
color: $color-text-light;
|
||||||
@ -205,3 +211,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,5 +1,8 @@
|
|||||||
<div class="app" ng-class="{'app--show-aside': state.nav.open}">
|
<div class="app" ng-class="{'app--show-aside': state.nav.open}">
|
||||||
<aside class="app__aside" ng-include="'tpl/nav.html'"></aside>
|
<aside class="app__aside">
|
||||||
|
<div class="app__aside-scroll" ng-include="'tpl/nav.html'"></div>
|
||||||
|
<footer class="nav-footer" ng-include="'tpl/status-display.html'"></footer>
|
||||||
|
</aside>
|
||||||
<div class="app__container" ng-click="state.nav.toggle(false)">
|
<div class="app__container" ng-click="state.nav.toggle(false)">
|
||||||
<header class="app__header" ng-include="'tpl/action-bar.html'"></header>
|
<header class="app__header" ng-include="'tpl/action-bar.html'"></header>
|
||||||
<main class="app__main">
|
<main class="app__main">
|
||||||
|
@ -78,6 +78,4 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul><!--/nav__secondary-->
|
</ul><!--/nav__secondary-->
|
||||||
|
|
||||||
<footer ng-include="'tpl/status-display.html'"></footer>
|
|
||||||
</nav>
|
</nav>
|
Loading…
Reference in New Issue
Block a user