.vn-gui { height: inherit; /* Font */ .user-name, .menu-title { font-size: 1.1em; } /* Navigation bar */ .navbar { position: fixed; background-color: #1A1A1A; left: 250px; top: 0; right: 0; z-index: 1; overflow: hidden; height: 64px; color: white; transition-property: left, background-color, transform; transition-duration: 200ms; transition-timing-function: ease-in-out; } .menu-button { position: absolute; left: 0; display: none; border: none; background-color: transparent; padding: 0 1em; margin: 0; height: 100%; } .menu-button:hover { background-color: rgba(0, 0, 0, .2); } .menu-button img { vertical-align: middle; height: 1.8em; } .title { float: left; } .title h1 { font-weight: normal; font-size: 1.4em; padding: .8em .6em; padding-right: .3em; margin: 0; } .navbar > .htk-spinner { float: left; margin: 1.05em .8em; } /* Action bar */ .action-bar { float: right; padding: 0; margin: 0; height: 100%; & > div { padding: 0; margin: 0; height: 100%; display: flex; align-items: center; padding: 0 1em; gap: .5em; & > * { float: right; } } button { margin: 0; padding: 10px 15px; &:hover { background-color: rgba(2550, 255, 255, .2); } } } /* Background */ & > .background { z-index: 10; position: fixed; top: 0; left: 0; right: 0; bottom: 0; visibility: hidden; background-color: rgba(1, 1, 1, .7); opacity: 0; } & > .background.show { visibility: visible; transition: opacity 200ms ease-out; opacity: 1; } /* Left panel */ .left-panel { z-index: 20; position: fixed; left: 0; bottom: 0; top: 0; background-color: white; z-index: 20; width: 250px; } .menu-overflow { position: absolute; top: 0; left: 0; right: 0; bottom: 4em; overflow: auto; } .menu-header { background-color: #1A1A1A; color: white; height: 64px; display: flex; } .logo { display: block; width: 160px; margin-left: 37px; } .user-info > div { display: flex; justify-content: space-between; align-items: center; overflow: hidden; font-weight: bold; border: 1px solid #eaeaea; margin: 25px; & > span { padding: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .logout { display: block; margin: 0; text-align: left; &:hover { background-color: #1a1a1a; color: white; } } &.supplant { display: none; } } /* Test link */ .test-link { display: none; margin: .5em; background-color: #3f51b5; color: white; padding: 0 1em; line-height: 2em; border-radius: .1em; text-align: center; } .test-link:hover { background-color: #4f61c5; } .dev-info { display: none; padding: .3em .5em; color: white; background-color: #3f51b5; font-size: .9em; margin: .5em; border-radius: .1em; } .dev-info > p { margin: .2em 0; } .dev-info > .mode { color: #BBF; } /* Menu */ .main-menu, ul.submenu { list-style-type: none; padding: 0; margin: 0; } .main-menu > li { display: block; padding: 0; margin: 0; width: 100%; } .main-menu a { width: 70%; padding: 0 15%; display: block; line-height: 2.8em; } .main-menu a:hover, .main-menu a.selected { background-color: rgba(1, 1, 1, .1); } ul.submenu { display: none; } ul.submenu.popup { display: inline; position: fixed; border: none; border-radius: 1px; background-color: white; box-shadow: 0 0 .3em rgba(1, 1, 1, .3); z-index: 50; width: 13em; max-height: 30em; } /* Social */ .menu-footer { position: absolute; bottom: 0; right: 0; left: 0; } /* Body */ & > .body { margin-left: 250px; padding-top: 4.4em; height: inherit; box-sizing: border-box; height: inherit; transition-property: margin-left, margin-right; transition-duration: 200ms; } .form-holder { position: relative; height: inherit; opacity: 0; transform: translateZ(0) translateX(-2em); -webkit-transform: translateZ(0) translateX(-2em); transition-property: opacity, transform; transition-duration: 200ms; transition-timing-function: ease-out; } .form-holder.show { opacity: 1; transform: translateZ(0) translateX(0em); -webkit-transform: translateZ(0) translateX(0em); } /* Mobile */ @media (max-width: 960px) { .action-bar { span.label, .htk-button > .text { display: none; } .htk-button { padding: 10px; } } & > .navbar { padding-left: 2.8em; left: 0; } & > .body { margin-left: 0; } .menu-button { display: block; } .left-panel { top: 0; left: -250px; box-shadow: 0 0 .2em rgba(1, 1, 1, .3); transition: transform 200ms ease-out; -webkit-transition: transform 200ms ease-out; } .left-panel.show { transform: translateZ(0) translateX(250px); -webkit-transform: translateZ(0) translateX(250px); } .form-holder { left: 0; } ul.submenu { display: block; background-color: #888; color: white; box-shadow: inset 0 0 .2em rgba(1, 1, 1, .2); overflow: hidden; max-height: 0; transition: max-height 300ms ease-out; webkit-transition: max-height 300ms ease-out; } .main-menu li:hover > ul.submenu { max-height: 20em; } } }