From 381297c95c7446182e90e459cd0257a8fc86b4cf Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 29 Dec 2020 12:24:04 +0100 Subject: Improved CSS classes for page content, added proper ref list macro, build scripts load and watch Pandoc filters automatically --- assets/css/scopes/_page.scss | 107 ------------------------------------------- assets/css/scopes/_refs.scss | 9 ---- 2 files changed, 116 deletions(-) delete mode 100644 assets/css/scopes/_refs.scss (limited to 'assets/css/scopes') diff --git a/assets/css/scopes/_page.scss b/assets/css/scopes/_page.scss index 6448d08..bf3df8d 100644 --- a/assets/css/scopes/_page.scss +++ b/assets/css/scopes/_page.scss @@ -1,70 +1,4 @@ .s-page { - &__content { - padding-left: $page--item-prefix--width; - - > :first-child { - margin-top: 0; - } - } - - h1, - h2, - h3, - .s-refs li, - pre { - position: relative; - margin-left: -1 * $page--item-prefix--width; - padding-left: $page--item-prefix--width; - - &::before { - display: inline-block; - position: absolute; - box-sizing: border-box; - width: $page--item-prefix--width; - margin-left: -1 * $page--item-prefix--width; - padding-right: $page--item-prefix--pad; - color: var(--page--item-prefix--fg); - font-weight: normal; - text-align: right; - } - } - - h1 { - font-size: px-to-em($content--h1--font-size); - - &::before { - content: '#'; - font-size: px-to-em($font-size, $content--h1--font-size); - } - } - - h2::before { - content: '##'; - } - - h3::before { - content: '###'; - } - - .s-refs li::before { - content: '->'; - } - - pre { - margin-top: $line-height * 1em; - - &::before { - content: str-repeat('``\A', 40); - height: 100%; - overflow: hidden; - color: var(--page--item-prefix--fg); - } - } - - hr { - margin-left: -1 * $page--item-prefix--width; - } - :link { color: var(--page--link--idle--fg); } @@ -80,45 +14,4 @@ color: var(--page--link--hover--fg); } } - - .c-page-header { - margin-left: -1 * $page--item-prefix--width; - padding-left: $page--item-prefix--width; - - &::after { - margin-left: -1 * $page--item-prefix--width; - } - } - - @media (max-width: map-get($breakpoints, 'sm')) { - &__content { - padding-left: 0; - } - - h1, - h2, - h3, - .s-refs li, - pre { - margin-left: 0; - padding-left: 0; - - &::before { - display: none; - } - } - - hr { - margin-left: 0; - } - - .c-page-header { - margin-left: 0; - padding-left: 0; - - &::after { - margin-left: 0; - } - } - } } diff --git a/assets/css/scopes/_refs.scss b/assets/css/scopes/_refs.scss deleted file mode 100644 index 79434ff..0000000 --- a/assets/css/scopes/_refs.scss +++ /dev/null @@ -1,9 +0,0 @@ -.s-refs { - li { - padding-left: 0; - - &::before { - display: none; - } - } -} -- cgit v1.2.3-70-g09d2