.doc-page { &__markdown ::v-deep { $spacing: 0.75em; > div, > p, > ul, > ol, > blockquote { margin-top: 2 * $spacing; margin-bottom: 2 * $spacing; } > ul li, > ol li, > ul ul, > ul ol, > ol ol, > ol ul { margin-top: 0.5 * $spacing; margin-bottom: 0.5 * $spacing; } > h1, > h2, > h3, > h4, > h5, > h6 { font-weight: 500; color: $colorWhite; margin-top: 3 * $spacing; margin-bottom: $spacing; & + * { margin-top: 0; } } > h1, > h4, > h5, > h6 { a { display: none; } } > h2, > h3 { position: relative; a { position: absolute; top: 0; right: 100%; color: rgba($colorWhite, 0.4); text-decoration: none; font-weight: 400; padding-right: 0.5rem; opacity: 0; transition: opacity 0.1s $ease; } &:hover a { opacity: 1; } } :first-child { margin-top: 0; } :last-child { margin-bottom: 0; } > pre { border: 1px solid rgba($colorWhite, 0.1); } > p code, > li code, > table code, > .remark-container code { color: $colorPurple; background-color: rgba($colorPurple, 0.1); box-decoration-break: clone; } > p a, > li a, > table a, > .remark-container a { text-decoration: underline; } #toc { display: none; & + ul { list-style: none; border: 1px solid rgba($colorWhite, 0.1); padding: 1.25rem !important; border-radius: 0.5rem; &::before { display: block; content: 'On this page'; font-weight: 700; letter-spacing: 0.025rem; font-size: 0.75rem; text-transform: uppercase; color: rgba($colorWhite, 0.3); margin-bottom: 0.5rem; } li { padding-left: 0; &::before { display: none; } ul { list-style: none; margin-left: 1rem; } } } } p a img[src^="https://img.shields.io"] { margin-right: 0.5rem; } > ul { list-style: none; li { position: relative; padding-left: 1.25rem; &::before { position: absolute; left: 0; display: inline-block; margin-right: 0.75rem; content: "\2022"; opacity: 0.2; } } } > ol { counter-reset: item; li { position: relative; padding-left: 2.5rem; &::before { position: absolute; top: 0; left: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; height: 1.5rem; width: 1.5rem; background-color: rgba($colorWhite, 0.1); border-radius: 9999px; color: rgba($colorWhite, 0.4); font-size: 0.75rem; font-weight: 700; content: counter(item); counter-increment: item; } } } > table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: left; th, td { padding: 0.5rem; &:first-child { padding-left: 0; } &:last-child { padding-right: 0; } } th { color: $colorWhite; font-weight: 500; border-bottom: 1px solid rgba($colorWhite, 0.2); &:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; } &:last-child { border-top-right-radius: 5px; border-bottom-right-radius: 5px; } } td { border-bottom: 1px solid rgba($colorWhite, 0.1); } tr:last-child td { border-bottom: 0; } } > .remark-container { padding: 1.25rem; border: 1px solid rgba($colorWhite, 0.1); border-radius: 0.5rem; &.warning { border-color: rgba($colorYellow, 0.1); background-color: rgba($colorYellow, 0.1); color: $colorYellow; } &.info { border-color: rgba($colorBlue, 0.1); background-color: rgba($colorBlue, 0.1); color: $colorBlue; } &.error { border-color: rgba($colorRed, 0.1); background-color: rgba($colorRed, 0.1); color: $colorRed; } &.pro { border-color: rgba($colorRed, 0.1); background-color: rgba($colorRed, 0.1); color: $colorRed; } .remark-container-title { font-weight: 600; } } } }