/* Navigations-Seitenleiste */ .sidebar { border-left: 1px solid #ccc; box-shadow: 0px 1px 1.5px 1px #c0c0c0; /**/ position: fixed; display: block; top: 0px; right: -270px; width: 270px; height: 100%; padding-top: 55px; overflow: hidden; overflow-y: auto; z-index: 10; background-color: white; transition: 0.5s; border-left: none; .sidebar-logo { margin-bottom: 20px; } .sidebar-list { padding-left: 0; list-style: none; margin-left: -5px; &>li { width: 100%; padding: 10px 0px; &:hover { background-color: @color-almost-white; } &>label, &>a { &:focus { outline: none; } &>i.fa { width: 30px; text-align: center; margin-right: 7px; } } &>label { font-size: 16px; font-weight: normal; text-decoration: none; text-indent: 12px; color: black; line-height: 20px; display: inline-block; width: 100%; &:hover { color: red; } } } } .metager-dropdown-content { min-width: 160px; max-height: 0px; text-align: left; list-style-type: none; z-index: 30; overflow: hidden; transition: 0.5s ease; &>li>a { display: block; font-size: 13px; padding: 6px 20px; width: 100%; clear: both; font-weight: normal; line-height: 1.42857143; margin-left: 2px; &:hover { text-decoration: none; } } label:after { #navbar-static-pages { z-index: 40; width: 100%; } } } a { font-size: 16px; line-height: 20px; text-decoration: none; text-indent: 12px; display: inline-block; width: 100%; color: black; &:hover { color: red; } } p { width: 90%; text-align: center; font-weight: bold; font-style: italic; font-size: large; background-color: @metager-orange; border-radius: .25em; margin: 5%; color: white; font-size: 30px; line-height: 35px; } .caret { position: absolute; left: 90%; margin-top: 8px; } input.sidebarCheckbox { display: none; &:checked { &~.metager-dropdown-content { max-height: 1000px; padding: 5px 0px 0px 0px; } &~label>.caret { border-top: 0 solid; border-bottom: 4px solid; transition: border-top .1s, border-bottom .1s .1s; } } &:not(:checked) { &~.metager-dropdown-content { padding: 0px 0; } } } input#nav0:checked~& { border-left: 1px solid LightGray; } hr { margin: 0px; border-color: #e0e0e0; } } input#sidebarToggle:checked { &~.sidebar { right: 0px; } &~.sidebar-opener { &:after { content: "×"; } } } // Top right starting position of the sidebar icon @sidebar-opener-top: 23px; @sidebar-opener-right: 25px; .sidebar-opener { position: fixed; top: @sidebar-opener-top; right: @sidebar-opener-right; margin: 0px; z-index: 20; font-size: 36px; line-height: 23px; border-radius: 5px; color: grey; background-color: white; &:after { content: "≡"; } &:hover { color: @metager-orange; } } .sidebar-opener-placeholder { display: none; width: 45px; } @media (max-width: @screen-xs-max) { .sidebar { padding-top: 15px; right: -90%; width: 90%; overflow: auto; .sidebar-list { max-height: 1000px; } .sidebar-logo { display: none; } ul.metager-dropdown-content { position: inherit; width: 100%; } } .sidebar-opener { // Make the open and close button bigger, so it is easier to hit @sidebar-opener-mobile-magnification: 10px; margin: @sidebar-opener-mobile-magnification; top: (@sidebar-opener-top - @sidebar-opener-mobile-magnification); right: (@sidebar-opener-right - @sidebar-opener-mobile-magnification); } .sidebar-opener-placeholder { display: initial; } }