diff options
| author | Volpeon <git@volpeon.ink> | 2021-01-07 20:48:05 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-01-07 20:48:05 +0100 |
| commit | f3e649f674b739a8f50460f809eb8df2c13ff576 (patch) | |
| tree | a406fc9a1c4d539e250f9869e6c93e5398f733d6 /assets/css/components | |
| parent | Small design adjustments, added support for code blocks marked as 'plain' (diff) | |
| download | volpeon.ink-f3e649f674b739a8f50460f809eb8df2c13ff576.tar.gz volpeon.ink-f3e649f674b739a8f50460f809eb8df2c13ff576.tar.bz2 volpeon.ink-f3e649f674b739a8f50460f809eb8df2c13ff576.zip | |
Optimized CSS for code blocks
Diffstat (limited to 'assets/css/components')
| -rw-r--r-- | assets/css/components/_page.scss | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/assets/css/components/_page.scss b/assets/css/components/_page.scss index 87d5413..a55bcb4 100644 --- a/assets/css/components/_page.scss +++ b/assets/css/components/_page.scss | |||
| @@ -29,12 +29,6 @@ | |||
| 29 | } | 29 | } |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | &__code { | ||
| 33 | margin-left: 1px; | ||
| 34 | padding-left: calc(#{$subcontent--indent} - 3px); | ||
| 35 | border-left: 2px solid var(--obj); | ||
| 36 | } | ||
| 37 | |||
| 38 | &__prefixed { | 32 | &__prefixed { |
| 39 | position: relative; | 33 | position: relative; |
| 40 | margin-left: -1 * $page--item-prefix--width; | 34 | margin-left: -1 * $page--item-prefix--width; |
| @@ -82,6 +76,10 @@ | |||
| 82 | margin-left: calc(#{-1 * $page--item-prefix--width} * #{$scale-factor}); | 76 | margin-left: calc(#{-1 * $page--item-prefix--width} * #{$scale-factor}); |
| 83 | padding-left: calc(#{$page--item-prefix--width} * #{$scale-factor}); | 77 | padding-left: calc(#{$page--item-prefix--width} * #{$scale-factor}); |
| 84 | border-left: 0; | 78 | border-left: 0; |
| 79 | color: var(--code-block--fg); | ||
| 80 | font-size: $code-block--font-size; | ||
| 81 | line-height: $code-block--line-height; | ||
| 82 | text-overflow: ''; | ||
| 85 | 83 | ||
| 86 | &::before { | 84 | &::before { |
| 87 | content: str-repeat('``\A', 40); | 85 | content: str-repeat('``\A', 40); |
