.aligncenter { text-align: center; } * { box-sizing: border-box; } body { /* max-width: 320px; */ /* background: #bcc5c3; */ background: #16a085; /* Максимальная ширина страницы в пикселах */ } .no-select { -webkit-touch-callout: none; -moz-user-select: none; -o-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .button { width: 250px; height: 70px; padding: 15px 50px; font-size: 24px; text-align: center; outline: 1px solid #666; color: #fff; background-color: #0ffa6d; border: #0ffa6d; border-radius: 5px; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .button:active { background-color: #fa0f0f; transform: translateY(2px); } .nav { /* ширна произвольная, не стесняйтесь экспериментировать */ width: 320px; min-width: 320px; /* фиксируем и выставляем высоту панели на максимум */ height: 100%; position: fixed; top: 0; bottom: 0; margin: 0; /* сдвигаем (прячем) панель относительно левого края страницы */ left: -320px; /* внутренние отступы */ padding: 15px 20px; /* плавный переход смещения панели */ -webkit-transition: left 0.3s; -moz-transition: left 0.3s; transition: left 0.3s; /* определяем цвет фона панели */ background: #16a085; /* background: #bcc5c3; */ /* поверх других элементов */ z-index: 2000; } /** * Кнопка переключения панели * тег