diff --git a/index.css b/index.css new file mode 100644 index 0000000..7a89a2b --- /dev/null +++ b/index.css @@ -0,0 +1,160 @@ +sidebar *, +nav * { + font-family: "Helvetica Neue", "Helvetica", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "Arial", sans-serif; + margin: 0; + padding: 0; + outline: none; + color: #333; + word-break: break-all; + text-decoration: none; +} + +.pull-left { + float: left; +} + +nav { + position: fixed; + top: 0; + left: 0; + height: 50px; + display: block; + width: 100%; + background-color: #fff; + border-bottom: 1px solid #e5e5e5; + z-index: 1; + line-height: 50px; +} + +nav img { + vertical-align: middle; + margin: 0 5px 0 10px; +} + +sidebar { + position: fixed; + top: 51px; + left: 0; + width: 250px; + background-color: #fff; + border-right: 1px solid #e5e5e5; + font-size: 14px; + height: -webkit-calc(100% - 50px); + height: -ms-calc(100% - 50px); + height: -moz-calc(100% - 50px); + height: calc(100% - 50px); + overflow: auto; +} + +sidebar li { + list-style-type: none; + line-height: 40px; +} + +sidebar li p { + cursor: pointer; + text-indent: 10px; +} + +sidebar li p a { + display: block; + font-size: 14px; +} + + +sidebar li .ico_up .ico { + background-position: 0 -4px; +} + +.hidden ul { + display: none; +} + +.ico { + background-image: url(./assets/jiantou.png); + width: 8px; + height: 4px; + margin-top: 18px; + margin-left: 10px; +} + +.unchild-span { + width: 8px; + height: 4px; + margin-top: 18px; + margin-left: 10px; +} + +.common-level-1 p a { + padding-left: 1em; +} + +.common-level-2 p a { + padding-left: 2em; +} + +.level0 { + background-color: #f3f3f3; +} + +.level1 { + background-color: #eaeaea; +} + +.level0 .common-level-1 { + background-color: #e9e9e9; +} + +.level1 .common-level-2 { + background-color: #ddd; +} + +.elem-active a { + background-color: #2196F3; + color: #fff; +} + +sidebar li .ico_down .ico { + background-position: 0 0; +} + +article { + position: absolute; + top: 60px; + left: 290px; +} + +article .markdown-body img { + border: 1px solid #ededed; +} + + +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + + + +/* Track */ + +::-webkit-scrollbar-track { + //-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); + //-webkit-border-radius: 10px; + //border-radius: 10px; + background: #fff; +} + + + +/* Handle */ + +::-webkit-scrollbar-thumb { + -webkit-border-radius: 10px; + border-radius: 10px; + background: #ccc; //-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5); +} + +::-webkit-scrollbar-thumb:window-inactive { + background: #ddd; +} \ No newline at end of file