/*! * Copyright 2015 BookingSync SAS. * Licensed under MIT (https://github.com/BookingSync/bootstrap-bookingsync-sass/blob/master/LICENSE) */ // // Typography // -------------------------------------------------- h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { & > i { padding-right: 7px; color: $gray-light; } font-weight: 400; } .text-overflow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } // // Menu // -------------------------------------------------- // Recommended addition // // .menu { // height: 100vh; // position: fixed; // top: 0; // left: 0; // } // .menu { background-color: $menu-bg; color: $menu-color; border-radius: $menu-border-radius; width: 60px; height: 100%; overflow: hidden; z-index: 9000; transition: width 0.2s cubic-bezier(.4,0,.2,1); border-radius: 0; &:hover { width: 230px; .body { overflow-y: overlay; } .menu-dropdown ol { overflow-y: overlay; } .menu-dropright { overflow-y: overlay; } } header, footer { .bar { height: $menu-header-height; position: relative; } .brand, .avatar { height: 24px; width: 24px; font-size: 24px; position: absolute; top: 18px; left: 18px; } .brand { font-size: 24px; padding-top: 5px; } p { margin: 0; margin-left: 60px; padding-top: 17.5px; line-height: 1.24em; white-space: nowrap; } } header { background-color: $menu-header-bg; color: $menu-header-color; position: relative; a { color: $menu-header-link-color; } ol { margin-bottom: 0; border-top: 1px solid $menu-header-link-hover-bg; background-color: $menu-header-bg; width: 100%; position: absolute; z-index: 1000; max-height: 100vh; overflow: hidden; a:hover { background-color: $menu-header-link-hover-bg; color: $menu-header-link-hover-color; } } .bar { background-color: $menu-header-bg; z-index: 2000; } #menu-header-submenu { width: 100%; &.open { top: $menu-header-height; } } } footer { background-color: $menu-footer-bg; color: $menu-footer-color; a { color: $menu-footer-link-color; } .back { i { color: $menu-footer-back-color; } a:hover i { color: $menu-footer-back-color; } } i { margin-left: 2px; } #menu-footer-submenu { top: 0; width: 100%; height: 100%; ol { margin-top: $menu-header-height; margin-bottom: 0; } &.open { ol { background-color: $menu-footer-bg; } } } } ol { // No need to set list-style: none; since li is block level padding-left: 0; // reset padding because ul and ol } li { display: block; a { display: block; padding: 10px 22px; text-decoration: none; white-space: nowrap; line-height: 30px; } i { width: 16px; height: 16px; } } .body { overflow: hidden; } .body, footer { li { a { background-color: $menu-link-bg; color: $menu-link-color; i { color: $menu-link-icon-color; } span { padding-left: 18px; font-weight: 600; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } &:hover { background-color: $menu-link-hover-bg; color: $menu-link-hover-color; i { color: $menu-link-hover-icon-color; } } } &.active a, &.active:hover a, &.active:focus a { background-color: $menu-active-bg; color: $menu-active-color; i { color: $menu-active-icon-color; } } } } } .menu-toggle { height: $menu-header-height; .icon-bar { background-color: $menu-default-toggle-icon-bar-bg; } } // // Label // -------------------------------------------------- .label-transparent { border: 1px solid $label-color; } // // Dropdowns // -------------------------------------------------- .menu-dropdown { position: absolute; top: -100vh; transition: top 0.3s ease-out; } .menu-dropdown.open { top: 0; } .menu-dropright { position: absolute; left: 100%; transition: left 0.3s ease-out; } .menu-dropright.open { left: 0; } // // Utilities // -------------------------------------------------- .flex-col { display: flex; flex-direction: column; } .flex-row { display: flex; } .flex-1 { flex: 1; } .flex-middle { margin-top: auto; margin-bottom: auto; } // @import "bookingsync-theme-forms"; @media (max-width: $screen-xs-max) { .navbar-form { border-top: none; border-bottom: none; margin-top: 0; margin-bottom: 0; } } @media (min-width: $screen-sm-min) { .navbar-form { margin-top: 20px; margin-bottom: 20px; } } // Navbar toggle // // Custom button for toggling the `.navbar-collapse`, powered by the collapse // JavaScript plugin. .navbar-toggle-context { border: 0; border-radius: 15px; .icon-bar { width: 3px; height: 3px; border-radius: 2px; } .icon-bar + .icon-bar { margin-top: 3px; } } // Sheet // // Custom wrapper to simulate a paper sheet container .sheet { width: auto; position: relative; border: 1px solid $sheet-border; background-color: $sheet-bg; border-radius: $sheet-border-radius; margin: $sheet-margin; padding: $sheet-padding; } .sheet-header { margin: (-1 * $sheet-padding); margin-bottom: $sheet-padding; padding: $sheet-padding; border-bottom: 1px solid $sheet-inner-border; h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, p { padding: 0; margin: 0; } } // Tables // caption { color: $table-caption-color; }