From 3e99d1388269fb56a998ec9141bb8d017400ed49 Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Thu, 9 May 2019 15:07:08 +0200 Subject: [PATCH] Add padding to comparison slides --- css/theme/latex.css | 8 +++----- css/theme/source/latex.scss | 10 +++------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/css/theme/latex.css b/css/theme/latex.css index 919597f..a47f3c2 100644 --- a/css/theme/latex.css +++ b/css/theme/latex.css @@ -173,9 +173,6 @@ body { body .layout-two-columns .layout-column-two { grid-area: column2; background: white; } - body .layout-two-columns .layout-column-one .layout-content, - body .layout-two-columns .layout-column-two .layout-content { - padding-top: calc(var(--margin) * var(--square)); } body .layout-two-previews { display: grid; min-height: 100vh; @@ -315,7 +312,7 @@ body { .layout-two-columns .layout-column-one, .layout-two-columns .layout-column-two { padding: calc(var(--margin) * var(--square)); - padding-top: 0; } + padding-top: calc(var(--margin) * var(--square)); } .layout-two-columns .layout-column-one *:first-child, .layout-two-columns .layout-column-two *:first-child { margin-top: 0; } @@ -389,7 +386,8 @@ h2 { line-height: 1.2; } p[data-category]::before, -h2[data-category]::before { +h2[data-category]::before, +h3[data-category]::before { content: attr(data-category); font-size: .7em; font-variant: small-caps; diff --git a/css/theme/source/latex.scss b/css/theme/source/latex.scss index 5175723..c0cab5d 100644 --- a/css/theme/source/latex.scss +++ b/css/theme/source/latex.scss @@ -252,11 +252,6 @@ body { grid-area: column2; background: white; } - - .layout-column-one .layout-content, - .layout-column-two .layout-content { - padding-top: calc(var(--margin) * var(--square)); - } } .layout-two-previews { @@ -395,7 +390,7 @@ body { .layout-column-one, .layout-column-two { padding: calc(var(--margin) * var(--square)); - padding-top: 0; + padding-top: calc(var(--margin) * var(--square)); *:first-child { margin-top: 0; @@ -482,7 +477,8 @@ h2 { } p[data-category]::before, -h2[data-category]::before { +h2[data-category]::before, +h3[data-category]::before { content: attr(data-category); font-size: .7em; font-variant: small-caps;