Merge branch 'caffinatedmonkey-styles't push origin master

This commit is contained in:
An Phan 2016-05-22 19:58:06 +08:00
commit 1cff51d4ac
4 changed files with 19 additions and 15 deletions

View file

@ -110,7 +110,6 @@
padding: 24px 16px $footerHeight; padding: 24px 16px $footerHeight;
background: $colorExtraBgr; background: $colorExtraBgr;
max-height: calc(100vh - #{$headerHeight + $footerHeight}); max-height: calc(100vh - #{$headerHeight + $footerHeight});
display: none;
color: $color2ndText; color: $color2ndText;
overflow: auto; overflow: auto;
-ms-overflow-style: -ms-autohiding-scrollbar; -ms-overflow-style: -ms-autohiding-scrollbar;
@ -176,16 +175,18 @@
@media only screen and (max-width : 1024px) { @media only screen and (max-width : 1024px) {
position: fixed; position: fixed;
height: calc(100vh - #{$headerHeight + $footerHeight});
padding-bottom: $footerHeight; // make sure the footer can never overlap the content
width: $extraPanelWidth;
z-index: 5;
top: $headerHeight; top: $headerHeight;
right: -100%; right: 0;
transition: right .3s ease-in; height: calc(100vh - #{$headerHeight + $footerHeight});
width: $extraPanelWidth;
padding-bottom: $footerHeight; // make sure the footer can never overlap the content
z-index: 5;
transform: translateX(100%);
transition: transform .3s $slideAnimation;
&.showing { &.showing {
right: 0; transform: translateX(0);
} }
} }

View file

@ -105,6 +105,7 @@
align-items: center; align-items: center;
align-content: stretch; align-content: stretch;
display: flex; display: flex;
line-height: 1em;
span:first-child { span:first-child {
flex: 1; flex: 1;

View file

@ -263,16 +263,17 @@
@media only screen and (max-width : 667px) { @media only screen and (max-width : 667px) {
position: fixed; position: fixed;
height: calc(100vh - #{$headerHeight + $footerHeight});
padding-bottom: $footerHeight; // make sure the footer can never overlap the content
width: 100%;
z-index: 99;
top: $headerHeight; top: $headerHeight;
left: -100%; height: calc(100vh - #{$headerHeight + $footerHeight});
transition: left .3s ease-in; width: 100%;
padding-bottom: $footerHeight; // make sure the footer can never overlap the content
z-index: 99;
transform: translateX(-100%);
transition: transform .3s $slideAnimation;
&.showing { &.showing {
left: 0; transform: translateX(0);
} }
} }
} }

View file

@ -35,3 +35,4 @@ $footerHeight: 64px;
$mainHeadingHeight: 64px; $mainHeadingHeight: 64px;
$extraPanelWidth: 334px; $extraPanelWidth: 334px;
$slideAnimation: cubic-bezier(0,0,0.3,1);