/* Global Layout /* ---------------------------------------------------------- */ /* Main viewport, contains main content, and alerts */ .gh-app { display: flex; flex-direction: column; overflow: hidden; height: 100vh; } /* Content viewport, contains everything else */ .gh-viewport { flex-grow: 1; display: flex; } .gh-main { position: relative; flex-grow: 1; display: flex; margin-left: 15px; } .open-nav .gh-main { margin-left: 0; } /* Global Nav /* ---------------------------------------------------------- */ .gh-nav { position: absolute; top: 0; left: -220px; z-index: 10; display: block; width: 235px; height: 100%; border-right: #e1e1e1 1px solid; background: #f6f6f6; transition: transform 0.2s; transform: translateX(0); } .gh-nav:hover { transform: translateX(220px); } .open-nav .gh-nav { position: static; flex: 0 0 235px; display: flex; flex-direction: column; width: auto; height: auto; transform: translateX(0); } .gh-nav-toggle { position: absolute; top: 0; right: 0; z-index: 5; width: 15px; height: 100%; text-align: center; cursor: pointer; } .gh-nav-toggle:hover { background-color: rgb(224, 238, 250); } .gh-nav-toggle:after { content: ">"; position: absolute; top: 50%; left: 50%; font-size: 14px; opacity: 0.25; transform: translateX(-50%) translateY(-50%); } .open-nav .gh-nav-toggle:after { content: "<"; } .gh-nav-menu { flex-shrink: 0; display: flex; align-items: center; padding: 15px 30px 15px 15px; } .gh-nav-menu i { margin-right: 8px; width: 11px; height: 11px; font-size: 11px; line-height: 11px; } .gh-nav-menu:hover { cursor: pointer; } .gh-nav-menu-icon { flex-shrink: 0; margin-right: 10px; width: 34px; height: 34px; background-color: #222; background-size: 34px; border-radius: 4px; } .gh-nav-menu-details { flex-grow: 1; padding-right: 10px; } .gh-nav-menu-details-blog { overflow: hidden; margin-bottom: 1px; text-overflow: ellipsis; white-space: nowrap; font-size: 1.5rem; line-height: 1.3em; font-weight: 600; } .gh-nav-menu-details-user { overflow: hidden; color: var(--midgrey); text-overflow: ellipsis; white-space: nowrap; font-size: 1.2rem; line-height: 1.2em; } .gh-nav-body { flex-grow: 1; overflow-y: auto; } .gh-nav-search { position: relative; margin: 0 30px 10px; } .gh-nav-search-input { padding: 5px 8px; border-radius: 4px; font-size: 1.3rem; } .gh-nav-search-button { position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; padding: 0 6px 0 5px; } .gh-nav-search-button i { width: 16px; height: 16px; color: var(--midgrey); font-size: 13px; transition: color 0.2s ease; transform: rotate(90deg); } .gh-nav-search-button:hover i { color: var(--darkgrey); } .gh-nav-list { margin: 0; padding: 0 30px 0 0; list-style: none; font-size: 1.3rem; line-height: 1.5em; } .gh-nav-list-h { overflow: hidden; margin-top: 15px; padding: 5px 10px 5px 15px; color: #828282; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 1px; font-size: 1.2rem; line-height: 1.1em; } .gh-nav-list a { display: flex; align-items: center; padding: 5px 10px 5px 15px; border-radius: 0 4px 4px 0; color: var(--darkgrey); transition: none; } .gh-nav-list .active { background: color(var(--blue) lightness(+10%)); color: #fff; } .gh-nav-list a:not(.active):hover { background: color(var(--blue) lightness(+30%)); color: var(--darkgrey); } .gh-nav-list i { margin-right: 8px; width: 15px; height: 15px; text-align: center; font-size: 15px; } .gh-nav-footer { position: absolute; bottom: 0; flex-shrink: 0; display: flex; align-items: center; padding-right: 15px; width: 100%; height: 40px; border-top: #e1e1e1 1px solid; } .gh-nav-footer-sitelink { flex-grow: 1; display: flex; padding: 12px; color: var(--midgrey); font-size: 1.3rem; line-height: 1.2em; } .gh-nav-footer-sitelink i { margin-left: 5px; font-size: 1rem; } .gh-nav-footer-sitelink:hover { color: var(--blue); } /* Help (?) Menu /* ---------------------------------------------------------- */ .gh-help-menu { display: flex; align-items: center; padding: 5px 10px; border-left: #e1e1e1 1px solid; cursor: pointer; } .gh-help-button { padding: 0 5px; color: var(--midgrey); text-align: center; font-size: 1.4rem; line-height: 1.2em; transition: all 0.5s; } .gh-help-menu:hover .gh-help-button { color: var(--blue); transition: all 0.3s; } .gh-help-menu .dropdown { right: 112px; bottom: 215px; } .gh-help-menu .dropdown .dropdown-menu { min-width: 200px; } .gh-help-menu .dropdown.fade-in-scale { animation-duration: 0.1s; } .gh-help-menu .dropdown.fade-out { animation-duration: 0.01s; } /* Container for App View /* ---------------------------------------------------------- */ .gh-view { flex-grow: 1; display: flex; flex-direction: column; } .view-header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 65px; border-bottom: #e1e1e1 1px solid; } .view-title { display: flex; align-items: baseline; overflow: hidden; margin: 0; padding: 0; text-overflow: ellipsis; white-space: nowrap; font-size: 2rem; line-height: 1.2em; font-weight: 400; } .view-title a { color: inherit; } .view-title a:hover { color: var(--blue); } .view-title i { margin: 0 10px; color: #818181; font-size: 1.4rem; } .view-container, .view-content { flex-grow: 1; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; } .view-content { padding: 20px; } .view-content p, .view-content p * { user-select: text; }