UNPKG

@sdoc/theme-default

Version:

Default theme for san-docit.

217 lines (202 loc) 4.25 kB
@import './prism.less'; .markdown { img[alt='avatar'] { width: 420px; } table { margin: 8px 0 16px; border: 1px solid @site-border-color-split; empty-cells: show; border-spacing: 0; border-collapse: collapse; } table th { font-weight: 500; white-space: nowrap; color: #5c6b77; background: rgba(0, 0, 0, 0.02); } table th, table td { padding: 16px 24px; border: 1px solid @site-border-color-split; text-align: left; } pre code { overflow: auto; padding: 12px 20px; } img { max-width: ~'calc(100% - 32px)'; } p > img { margin: 34px 0; box-shadow: 0 8px 20px rgba(143, 168, 191, 0.35); } h1 { color: @site-heading-color; font-weight: 500; margin-bottom: 20px; margin-top: 8px; font-family: Lato, @font-family; font-size: 30px; line-height: 38px; .subtitle { margin-left: 12px; } } h2 { font-size: 24px; line-height: 32px; } h2, h3, h4, h5, h6 { color: @site-heading-color; font-family: Lato, @font-family; margin: 1.6em 0 0.6em; font-weight: 500; clear: both; } h3 { font-size: 18px; } h4 { font-size: 16px; } h5 { font-size: 14px; } h6 { font-size: 12px; } a.header-anchor { font-size: 0.85em; float: left; margin-left: -0.87em; padding-right: 0.23em; margin-top: 0.125em; opacity: 0; transition: opacity 0.3s ease; } h1:hover .header-anchor, h2:hover .header-anchor, h3:hover .header-anchor, h4:hover .header-anchor, h5:hover .header-anchor, h6:hover .header-anchor { opacity: 1; } hr { height: 1px; border: 0; background: @site-border-color-split; margin: 72px 0; clear: both; } p, pre { margin: 0 0 0.5em; } ul, ol { padding-left: 1.5rem; } ul > li { list-style-type: circle; margin-left: 20px; padding-left: 4px; &:empty { display: none; } } ol > li { list-style-type: decimal; margin-left: 20px; padding-left: 4px; } ul > li > p, ol > li > p { margin: 0.2em 0; } code { // color: #e96900; white-space: pre-wrap; margin: 0 1px; padding: 0.2em 0.4em; font-size: 0.9em; background: #f2f4f5; border: 1px solid #eee; border-radius: 3px; } code[class*='language-'] { padding: 0; border-radius: 0; margin: 0; } pre { font-family: @code-family; } strong, b { font-weight: 500; } a { margin: 0 6px; } blockquote, div.warning, div.error, div.danger, div.tip, div.success, div.info { font-size: 90%; background-color: #e8f7fe; color: @site-text-color-secondary; border-left: 4px solid #2196f3; padding: 0.8em; margin: 1em 0; p { margin: 0; } } div.warning, div.error, div.danger, div.tip, div.success, div.info { p.info-title { display: block; margin-bottom: 4px; font-size: 100%; font-weight: bold; color: @site-heading-color; } } div.warning { background-color: #fffbe6; color: @site-text-color-secondary; border-left: 4px solid #ffe58f; } div.error, div.danger { background-color: #fff1f0; color: @site-text-color-secondary; border-left: 4px solid #ffa39e; } div.info, div.tip { background-color: #e6f7ff; color: @site-text-color-secondary; border-left: 4px solid #2196f3; } div.success { background-color: #f6ffed; color: @site-text-color-secondary; border-left: 4px solid #b7eb8f; } }