github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/assets/scss/_content.scss (about) 1 // 2 // Style Markdown content 3 // 4 5 .td-content { 6 order: 1; 7 8 p, li, td { 9 font-weight: $font-weight-body-text; 10 } 11 12 > h1 { 13 font-weight: $font-weight-bold; 14 margin-bottom: 1rem; 15 } 16 17 > h2 { 18 margin-bottom: 1rem; 19 } 20 21 > h2:not(:first-child) { 22 margin-top: 3rem; 23 } 24 25 > h2 + h3 { 26 margin-top: 1rem; 27 } 28 29 > h3, > h4, > h5, > h6 { 30 margin-bottom: 1rem; 31 margin-top: 2rem; 32 } 33 34 img { 35 @extend .img-fluid; 36 } 37 38 > table { 39 @extend .table-striped; 40 41 @extend .table-responsive; 42 43 @extend .table; 44 } 45 46 > blockquote { 47 padding: 0 0 0 1rem; 48 margin-bottom: $spacer; 49 color: $gray-600; 50 border-left: 6px solid $secondary; 51 } 52 53 > ul li, > ol li { 54 margin-bottom: .25rem; 55 } 56 57 strong { 58 font-weight: $font-weight-bold; 59 } 60 61 > pre, > .highlight, > .lead, > h1, > h2, > ul, > ol, > p, > blockquote, > dl dd, .footnotes, > .alert { 62 @extend .td-max-width-on-larger-screens; 63 } 64 65 .alert:not(:first-child) { 66 margin-top: 2 * $spacer; 67 margin-bottom: 2 * $spacer; 68 } 69 70 .lead { 71 margin-bottom: 1.5rem; 72 } 73 } 74 75 .td-title { 76 margin-top: 1rem; 77 margin-bottom: .5rem; 78 79 @include media-breakpoint-up(sm) { 80 font-size: 3rem; 81 } 82 }