/* * Copyright (C) 2013 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-header { -ms-flex: 0 0 auto; -moz-box-flex: 0; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; /* IE10 */ display: -ms-flexbox; -ms-flex-align: center; -ms-flex-direction: row; /* Ancient Mozilla */ display: -moz-box; -moz-box-align: center; -moz-box-orient: horizontal; /* Ancient WebKit */ display: -webkit-box; -webkit-box-align: center; -webkit-box-orient: horizontal; /* Old WebKit */ display: -webkit-flex; -webkit-align-items: center; -webkit-flex-direction: row; /* W3C */ display: flex; align-items: center; flex-direction: row; padding: 0.75em 0.5em; border-bottom: 1px solid rgba(0, 0, 0, 0.125); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.125); background: rgba(0, 0, 0, 0.04); } .menu-header > * { -ms-flex: 0 0 auto; -moz-box-flex: 0; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; } .menu-header > h2 { -ms-flex: 1 1 auto; -moz-box-flex: 1; -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; border: none; padding: 0; box-shadow: none; background: none; margin: 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 h3 { margin: 0; padding: 0; padding-bottom: 1em; } #menu .content { padding: 0; margin: 0; /* 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 .content + h3 { padding-top: 1em; } #menu .content > * { margin: 0; -ms-flex: 0 0 auto; -moz-box-flex: 0; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; } #menu .content > * + * { margin-top: 1em; } #menu, #menu.closed { left: -480px; opacity: 0; } #menu.open { left: 0px; opacity: 1; } #menu #clipboard-settings textarea { width: 100%; border: 1px solid #AAA; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; -khtml-border-radius: 0.25em; border-radius: 0.25em; white-space: pre; display: block; font-size: 1em; } #menu #mouse-settings .choice { text-align: center; } #menu #mouse-settings .choice .figure { display: inline-block; vertical-align: middle; width: 75%; max-width: 320px; } #menu #keyboard-settings .caption { font-size: 0.9em; margin-left: 2em; margin-right: 2em; } #menu #mouse-settings .figure .caption { text-align: center; font-size: 0.9em; } #menu #mouse-settings .figure img { display: block; width: 100%; max-width: 320px; margin: 1em auto; } #menu #keyboard-settings .figure { float: right; max-width: 30%; margin: 1em; } #menu #keyboard-settings .figure img { max-width: 100%; } #menu #zoom-settings { text-align: center; } #menu #zoom-out, #menu #zoom-in, #menu #zoom-state { display: inline-block; vertical-align: middle; } #menu #zoom-out, #menu #zoom-in { max-width: 3em; border: 1px solid rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.1); border-radius: 2em; margin: 0.5em; cursor: pointer; } #menu #zoom-out img, #menu #zoom-in img { max-width: 100%; opacity: 0.5; } #menu #zoom-out:hover, #menu #zoom-in:hover { border: 1px solid rgba(0, 0, 0, 1); background: #CDA; } #menu #zoom-out:hover img, #menu #zoom-in:hover img { opacity: 1; } #menu #zoom-state { font-size: 2em; }