| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- @import 'variables';
- $block-border-radius: 4px;
- .markdown {
- line-height: 1.7;
- margin-left: 12px;
- > :first-child {
- margin-top: 0;
- line-height: 1em;
- }
- h1:first-of-type {
- text-transform: capitalize;
- }
- h2 {
- margin-top: 48px;
- }
- h3 {
- margin-top: 36px;
- color: $gray-700;
- }
- h1, h2, h3, h4, h5 {
- font-weight: 600;
- line-height: 1.25;
- &[id]:target:before {
- display: block;
- content: " ";
- margin-top: -75px; // Set the Appropriate Height
- height: 75px; // Set the Appropriate Height
- visibility: hidden;
- }
- &[id]:target {
- text-decoration: underline;
- }
- }
- b, optgroup, strong {
- font-weight: 700;
- }
- a {
- text-decoration: none;
- &:hover {
- text-decoration: underline;
- }
- }
- code:not([data-lang]) {
- font-family: 'Oxygen Mono', monospace;
- padding: 0 $padding-4;
- background: $color-code-bg;
- color: $color-code-text;
- border-radius: $block-border-radius;
- border: 1px solid $color-code-border;
- }
- pre:not(.chroma) {
- padding: $padding-16;
- background: $color-code-bg;
- border-radius: $block-border-radius;
- font-size: $font-size-14;
- overflow-x: auto;
- code {
- color: $color-code-text;
- background: none;
- padding: none;
- }
- }
- blockquote {
- border-left: $padding-1*2 solid $gray-300;
- margin: 0;
- padding: $padding-1 $padding-16;
- :first-child { margin-top: 0; }
- :last-child { margin-bottom: 0; }
- }
- table tr td {
- padding: $padding-8;
- }
- }
|