@import "normalize"; @import "github-markdown"; @import "./theme/syntax.monokai"; html { scroll-behavior: smooth; } body { color: #666; font-weight: 300; font-size: 14px; margin: 0px; padding: 0px 0 20px 0px; background: #eae6d1; } header { background: #333; text-align: center; padding: 10px 0; h1 { color: #fff; text-shadow: 0 2px 0 #235796; font-size: 1.6em; margin: .1em 0; } p { margin-top: 5px; margin-bottom: 0; color: #dfdfdf; font-size: 1em; text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0; } } nav { position: fixed; width: 200px; top: 60px; left: 50%; z-index: 99; margin-left: calc(66vw * .5 + 30px - 100px); div { padding-left: 12px; margin-bottom: 6px; a { text-decoration: none; color: inherit; display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } &.h1 { font-size: 16px; color: #555; } &.h2 { font-size: 15px; padding-left: 28px; color: #666; } &.h3 { font-size: 14px; padding-left: 44px; color: #777; } } } section { position: relative; width: 66vw; padding: 30px 30px 50px 30px; margin: 30px auto; -webkit-transform: translateX(-100px); transform: translateX(-100px); background: #fbfbfb; border-radius: 3px; border: 1px solid #cbcbcb; box-shadow: 0px 1px 2px rgba(0, 0, 0, .09), inset 0px 0px 2px 2px rgba(255, 255, 255, .5), inset 0 0 5px 5px rgba(255, 255, 255, .4); min-height: calc(100vh - 300px); // max-width: 800px; .page-title { text-align: center; font-size: 20px; margin-bottom: 30px; color: #999999; } &.default { width: 80vw; -webkit-transform: none; transform: none; } ul { li { margin: 20px 0; } } } footer { text-align: center; padding: 10px 0; } // 覆盖 github-markdown 样式 .markdown-body .highlight pre, .markdown-body pre { background-color: inherit; } @media screen and(max-width: 1000px) { nav { display: none; } section { width: 80vw; -webkit-transform: none; transform: none; } }