/* * Copyright (C) 2015 Glyptodon LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ .menu { overflow: hidden; position: absolute; top: 0; height: 100%; max-width: 100%; width: 480px; background: #EEE; box-shadow: inset -1px 0 2px white, 1px 0 2px black; z-index: 10; -webkit-transition: left 0.125s, opacity 0.125s; -moz-transition: left 0.125s, opacity 0.125s; -ms-transition: left 0.125s, opacity 0.125s; -o-transition: left 0.125s, opacity 0.125s; transition: left 0.125s, opacity 0.125s; } .menu-content { /* IE10 */ display: -ms-flexbox; -ms-flex-align: stretch; -ms-flex-direction: column; /* Ancient Mozilla */ display: -moz-box; -moz-box-align: stretch; -moz-box-orient: vertical; /* Ancient WebKit */ display: -webkit-box; -webkit-box-align: stretch; -webkit-box-orient: vertical; /* Old WebKit */ display: -webkit-flex; -webkit-align-items: stretch; -webkit-flex-direction: column; /* W3C */ display: flex; align-items: stretch; flex-direction: column; width: 100%; height: 100%; } .menu-content .header { -ms-flex: 0 0 auto; -moz-box-flex: 0; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-bottom: 0; } .menu-body { -ms-flex: 1 1 auto; -moz-box-flex: 1; -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; padding: 1em; overflow: auto; /* IE10 */ display: -ms-flexbox; -ms-flex-align: stretch; -ms-flex-direction: column; /* Ancient Mozilla */ display: -moz-box; -moz-box-align: stretch; -moz-box-orient: vertical; /* Ancient WebKit */ display: -webkit-box; -webkit-box-align: stretch; -webkit-box-orient: vertical; /* Old WebKit */ display: -webkit-flex; -webkit-align-items: stretch; -webkit-flex-direction: column; /* W3C */ display: flex; align-items: stretch; flex-direction: column; } .menu-body > * { -ms-flex: 0 0 auto; -moz-box-flex: 0; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; } .menu-section h3 { margin: 0; padding: 0; padding-bottom: 1em; } .menu-section ~ .menu-section h3 { padding-top: 1em; } .menu, .menu.closed { left: -480px; opacity: 0; } .menu.open { left: 0px; opacity: 1; }