开发侧边栏
测试文本
:root { --base-font-size: 0.875rem; --body-width-on-desktop: 92rem; --sidebar-wirth-on-desktop: calc((var(--base-font-size)*(7/8))*15); } @keyframes respire { 0% { border-top: 1px solid rgba(var(--rhodes-light), 0.3);} 100% { border-top: 1px solid rgba(var(--rhodes-light), 1);} } @media (min-width: 767px) { #side-bar { display: grid; width: var(--sidebar-width-on-desktop); height: 100vh; float: left; padding-right: 1em; clear: left; position: fixed; left: 0; top: 3em; max-height: 100%; overflow-x: hidden; overflow-y: visible; z-index: 12; -webkit-backdrop-filter: blur(1em); backdrop-filter: blur(1em); } } @media (max-width: 767px) { #side-bar { float: left; width: 14em; padding-right: 1em; clear: left; position: fixed; left: 0; top: 2em; overflow-y: visible; overflow-x: auto; } } @media (min-width: 767px) { #side-bar a { color: rgba(var(--si-a)) !important; text-decoration: none; background: rgba(var(--trans)); transition: all .4 ease-in-out; -moz-transition: all .4s ease-in-out; -webkit-transition: all .4s ease-in-out !important; text-shadow: none !important; font-size: 108%; padding: 5px 0px; padding-left: 18px; display: flex; width: 166px !important; height: 100%; margin: -1em; margin-left: 0em; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } } #side-bar div.menu-item a:before { --base-font-size: 0.9375rem; --clip-path: polygon(0 0,0 0,0 100%,0 100%); clip-path: var(--clip-path) calc(100% + var(--base-font-size)*.93333); content: ' '; transition: all 0.2s ease-out; -moz-transition: all all 0.2s ease-out; -webkit-transition: all all 0.2s ease-out; width: 1%; height: 100%; background: rgba(var(--trans)); position: absolute; top: 0; left: 0; z-index: -1; } #side-bar div.menu-item a:hover:before { background: rgba(var(--si-a-bg)); width: 100%; } @media (min-width: 767px) { #side-bar a:hover { color: rgba(var(--si-a-text)) !important; background: rgba(var(--si-a-deep)) !important; text-decoration: none; text-shadow: none !important; transition: all .4 ease-in-out; -moz-transition: all .4s ease-in-out; -webkit-transition: all .4s ease-in-out; } #side-bar a:hover:active { filter: brightness(1.1); text-decoration: none; text-shadow: none !important; overflow: hidden !important; } } @media (max-width: 767px) { #side-bar a { color: rgba(var(--si-a)) !important; text-decoration: none; background: rgba(var(--trans)); transition: all .4 ease-in-out; -moz-transition: all .4s ease-in-out; -webkit-transition: all .4s ease-in-out !important; text-shadow: none !important; font-size: 108%; padding: 5px 0px; padding-left: 18px; display: block; width: 199px !important; height: 100%; margin: -1em; margin-left: 0em; } } #side-bar a:visited { text-shadow: none !important; } #side-bar .side-block:first-child { display: grid; background: linear-gradient(to top, rgba(var(--si-bg)), rgba(var(--trans))); padding: 0; box-shadow: 0 1px 5px rgba(var(--si-mo-shadow)); margin-right: -.6rem; z-index: -20 !important; visibility: hidden; } #side-bar .side-block { display: grid; background-color: rgba(var(--si-bg)); padding: 0; box-shadow: 0 1px 5px rgba(var(--si-shadow)); margin-right: -.6rem; align-content: center; align-items: center; justify-items: center; } @media (max-width: 767px) { #side-bar .side-block:first-child { display: grid; background: linear-gradient(to top, rgba(var(--si-bg)), rgba(var(--trans))); padding: 1px 14px; padding-left: 14px; box-shadow: 0 1px 5px rgba(var(--si-mo-shadow)); margin-right: -.6rem; z-index: -20 !important; } #side-bar .side-block { display: grid; background-color: rgba(var(--si-bg)); padding: 1px 14px; padding-left: 14px; box-shadow: 0 1px 5px rgba(var(--si-bg)); margin-right: -.6rem; } #side-bar .side-block .heading { font-family: "Source Han Serif", "Source Han Serif CN", Songti SC, serif !important; color: rgba(var(--ti-color)); letter-spacing: -.2em !important; font-size: 142%; font-weight: 900; border-bottom: 1px solid rgba(var(--rhodes-light)); width: 172px !important; margin-left: -14px; padding-left: 2.5em !important; margin-top: -2px; margin-bottom: -1px; } } #side-bar .side-block .heading { font-family: "Source Han Serif", "Source Han Serif CN", Songti SC, serif !important; color: rgba(var(--ti-color)); letter-spacing: -.2em !important; font-size: 130%; font-weight: 900; border-bottom: 2px solid rgba(var(--rhodes-light)); width: 158px; margin-left: 0px; padding-left: 1.5rem; margin-top: -2px; margin-bottom: -1px; } @media (min-width: 767px) { #side-bar .side-block .menu-item { display: flex; flex-shrink: 0; flex-basis: 100%; flex-flow: row wrap; align-items: center; justify-content: flex-start; margin-top: -1px; width: 183px; margin-left: 0px; animation: respire 4s linear; -moz-animation: respire 4s linear; /* Firefox */ -webkit-animation: respire 4s linear; /* Safari and Chrome */ -o-animation: respire 4s linear; /* Opera */ animation-direction: alternate-reverse; animation-iteration-count: infinite; } #side-bar .side-block .menu-item:first-child { display: flex; flex-shrink: 0; flex-basis: 100%; flex-flow: row wrap; align-items: center; justify-content: flex-start; animation: respire 4s linear; -moz-animation: respire 4s linear; /* Firefox */ -webkit-animation: respire 4s linear; /* Safari and Chrome */ -o-animation: respire 4s linear; /* Opera */ animation-direction: alternate-reverse; animation-iteration-count: infinite; margin-top: -1px; width: 179px; margin-left: -14px; } } @media (max-width: 767px) { #side-bar .side-block .menu-item { flex-shrink: 0; flex-basis: 100%; flex-flow: row wrap; align-items: center; justify-content: flex-start; display: flex; top: solid 1px rgba(var(--rhodes-light)); margin-top: -1px; width: 217px; margin-left: -14px; } #side-bar .side-block .menu-item:first-child { display: flex; flex-shrink: 0; flex-basis: 100%; flex-flow: row wrap; align-items: center; justify-content: flex-start; border-top: solid 2px rgba(var(--rhodes-light)); width: 217px; margin-left: -14px; margin-top: -1px; } } .subt:nth-child(odd) { display: inline-block; transform: skewY(10deg) translateY(-.5px); -ms-transform: skewY(10deg) translateY(-.5px); -moz-transform: skewY(10deg) translateY(-.5px); -webkit-transform: skewY(10deg) translateY(-.5px); -o-transform: skewY(10deg) translateY(-.5px); } .subt:nth-child(even) { display: inline-block; transform: skewY(10deg) translateY(.5px); -ms-transform: skewY(10deg) translateY(.5px); -moz-transform: skewY(10deg) translateY(.5px); -webkit-transform: skewY(10deg) translateY(.5px); -o-transform: skewY(10deg) translateY(.5px); } @media (min-width: 767px) { .screen { visibility: hidden; } } /* 移动端侧边栏 */ @media (max-width: 767px) { #side-bar > .side-block > .menu-item > a:hover { color: rgba(var(--ti-shadow)); background: rgba(var(--rhodes-light)) !important; text-decoration: none; text-shadow: none !important; } #side-bar a:hover { color: rgba(var(--ti-shadow)); background: rgba(var(--trans)) !important; text-decoration: none; text-shadow: none !important; } } .close-menu { display: none; } @media (max-width: 767px) { .page-history tbody tr td:last-child { width: 35%; } .owindow { min-width: 80%; max-width: 99%; } .modal-body .table, .modal-body .table ~ div { float: left; } .owindow .button-bar { float: right; } .owindow div .btn-primary { width: 100%; float: left; } .owindow div .btn-primary ~ div { width: 100%; } .yui-navset { z-index: 1; } #navi-bar, #navi-bar-shadow { display: none; } .open-menu a { position: fixed; top: 0.32175em; left: 0.325em; z-index: 15; font-family: 'Nanum Gothic', san-serif; font-size: 30px; font-weight: 900; width: 30px; height: 30px; text-align: center; color: rgba(var(--ti-shadow)) !important; filter: invert(1); } .open-menu a:hover { text-decoration: none !important; -webkit-box-shadow: 0px 0px 20px 3px rgba(153,153,153,1); -moz-box-shadow: 0px 0px 20px 3px rgba(153,153,153,1); -ms-box-shadow: 0px 0px 20px 3px rgba(153,153,153,1); -o-box-shadow: 0px 0px 20px 3px rgba(153,153,153,1); box-shadow: 0px 0px 20px 3px rgba(153,153,153,1); } #main-content { max-width: 90%; margin: 0 5%; padding: 0; -webkit-transition: 0.5s ease-in-out 0.1s; -moz-transition: 0.5s ease-in-out 0.1s; -ms-transition: 0.5s ease-in-out 0.1s; -o-transition: 0.5s ease-in-out 0.1s; transition: 0.5s ease-in-out 0.1s; } #side-bar { display: block; position: fixed; top: 0; left: -25em; width: 17em; height: 100%; background-color: rgba(var(--target-frame)); overflow-y: auto; z-index: 10; padding: 1em 1em 0 1em; -webkit-transition: left 0.5s ease-in-out 0.1s; -moz-transition: left 0.5s ease-in-out 0.1s; -ms-transition: left 0.5s ease-in-out 0.1s; -o-transition: left 0.5s ease-in-out 0.1s; transition: left 0.5s ease-in-out 0.1s; } #side-bar:after { content: ""; position: absolute; top: 0; width: 0; height: 100%; background-color: rgba(0, 0, 0, 0.2); } #side-bar:target { display: block; left: 0; width: 17em; margin: 0; border: 1px solid rgba(var(--target-frame)); z-index: 10; overflow-x: visible; } #side-bar:target + #main-content { left: 0; } #side-bar:target .close-menu { display: block; position: fixed; width: 1000% !important; height: 100%; top: 0; left: 0; background: rgba(0,0,0,0.3) 1px 1px repeat; z-index: -1; } }