.snippet-doc { color: $text; .header-anchor { color: $primary; text-decoration: none; opacity: 0; transition: opacity 300ms; } .hljs { white-space: pre-wrap; word-wrap: break-word; } h1 { color: $black; font-weight: 500; margin-bottom: 20px; margin-top: 8px; font-size: 30px; line-height: 38px; } &, h2, h3, h4, h5, h6 { color: $black; font-family: Lato; margin: 32px 0 16px; font-weight: 500; clear: both; transition: all 300ms; } h2, h3, h4, h5, h6 { &:hover { .header-anchor { opacity: 1; } } } h3 { font-size: 18px; } h4 { font-size: 16px; } h5 { font-size: 14px; } h6 { font-size: 12px; } p { color: $text; } p, pre { font-size: 14px; line-height: 1.5; border-radius: 4px; } pre { padding: 16px 32px; } ul > li > p, ol > li > p { margin: 4px 0; } ul:not([class]) { padding: 0; margin: 0; } ul:not([class]) > li:not([class]) { list-style-type: circle; margin-left: 20px; padding-left: 4px; padding-top: 15px; } ol:not([class]) > li:not([class]) { list-style-type: decimal; margin-left: 20px; padding-left: 4px; padding-top: 15px; } > table { font-size: 14px; border-collapse: collapse; border-spacing: 0; empty-cells: show; width: 100%; margin: 8px 0 16px; } & > table th, & > table td { color: $text; border-bottom: 1px solid $border; text-align: left; padding: 10px 15px; max-width: 250px; } & > table th { white-space: nowrap; color: $black; font-weight: 500; background: rgba(0, 0, 0, 0.02); } strong, b { font-weight: bold; color: $black; } & > br, p > br { clear: both; } a { color: $primary; text-decoration: none; } blockquote { padding: 8px 16px; background-color: rgba($primary, 0.1); border-radius: 4px; border-left: 4px solid $primary; margin: 1em 0; } blockquote p { margin: 0; } hr { height: 1px; border: 0; background: $border; clear: both; } p > code, li > code { font-family: Microsoft YaHei; background-color: rgba($primary, 0.1); color: $primary; padding: 2px 4px; margin: 0 4px; border-radius: 4px; } }