/* THEME SPECIFIC STYLES */ @import "../../default/scss/app"; @import "settings"; @import "mixins"; @import "components"; @import 'print'; .ty-max-width { margin-left: auto !important; margin-right: auto !important; @media screen and (min-width: 1500px) { max-width: 840px !important; } } .v-main .contents { // --------------------------------- // HEADERS // --------------------------------- h1, h2, h3, h4, h5, h6 { color: mc('grey', '800'); padding-right: 2rem; &:not(:first-child) { margin-top: 1.25em; } .toc-anchor { display: none !important; } @at-root .theme--dark & { color: mc('grey', '200'); } } // remove underline h1, h4, h5, h6 { &::after { display: none; } } h2, h3 { &::after { background: mc('grey', '300'); @at-root .theme--dark & { background: mc('grey', '800'); } } } h1 { font-size: 2.5rem; font-weight: 500; &:not(:first-child) { margin-top: 1em; } & + h2 { margin-top: 1em !important; } } h2 { font-size: 1.75rem; font-weight: 500; } ul:not(.tabset-tabs):not(.contains-task-list) { list-style: disc; ul { list-style: circle; ul { list-style: square; } } li::before { display: none; } } h3 { font-size: 1.4rem; font-weight: 500; } h4 { font-size: 1.25rem; } h5 { font-size: 1.1rem; } h6 { font-size: 1rem; } h4, h5, h6 { & + p { padding-top: 8px; } @at-root .theme--dark & { color: mc('grey', '300'); } } // --------------------------------- // CODE // --------------------------------- code:not([class]) { background: mc('grey', '200'); padding: .1em .5em; border-radius: 4px; font-size: 85%; text-shadow: none; color: mc('grey', '800'); @at-root .theme--dark & { background: rgba(mc('grey', '800'), .5); color: mc('grey', '400'); } } .code-toolbar { transition-property: margin, width; transition-duration: .3s; transition-timing-function: ease; } .code-toolbar .toolbar { top: 4px; right: 8px; z-index: 1; button { padding: .25em .5em; background: mc('grey', '700'); color: mc('grey', '200'); &:hover { background: mc('grey', '600'); color: mc('grey', '200'); } } i { font-size: 16px; } } .code-toolbar .toolbar-item { padding-left: 4px; &:first-child { display: none; } } .code-toolbar[data-lang] { $header-height: 2.15rem; position: relative; &::after { content: attr(data-lang); position: absolute; top: 0; left: 0; display: flex; align-items: center; text-shadow: none; width: 100%; height: $header-height; background: rgba(mc('grey', '800'), .5); color: mc('grey', '200'); text-transform: uppercase; letter-spacing: .1em; font-family: "Roboto", sans-serif; font-size: .8rem; padding: 7px 16px; border-top-left-radius: 4px; border-top-right-radius: 4px; @at-root .theme--dark & { background: rgba(#000, .2); } } .prismjs { padding-top: #{$header-height + 1rem}; } } .prismjs { border: none; border-radius: 4px; box-shadow: initial; background-color: mc('grey', '900'); padding: 1rem 1rem 1rem 3rem; margin: 1.25rem 0; .token.bold, .token.important { font-weight: 400; } * { text-shadow: none !important; } } // --------------------------------- // KEY BINDINGS // --------------------------------- kbd { @at-root .theme--dark & { color: mc('grey', '800'); background-color: mc('grey', '100'); } } // --------------------------------- // TABLES // --------------------------------- table { $br: 8px; margin: 1rem 0; display: block; border-collapse: collapse; th, tr td { border: 1px solid mc('grey', '200'); @at-root .theme--dark & { border: 1px solid mc('grey', '800'); } } th { background: mc('grey', '200'); color: mc('grey', '700'); font-size: .8em; letter-spacing: .05em; text-transform: uppercase; @at-root .theme--dark & { background: mc('grey', '800'); color: mc('grey', '400'); } } tbody tr:nth-child(even) td { background: mc('grey', '50'); @at-root .theme--dark & { background: rgba(mc('grey', '800'), .25); } } } }