From 71338bf9e1b7aecccee6f9d95fe5485ca9025fe4 Mon Sep 17 00:00:00 2001 From: Francesco Luzzana Date: Sun, 8 May 2022 21:55:31 +0200 Subject: [PATCH] white space --- index.html | 2 +- print.css | 6 ++++++ style.css | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 3c34123..ba95bc9 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,6 @@
- Caretakers
Erica, Gersande, Kamo
+ diff --git a/print.css b/print.css index 3fe171e..f1c0a60 100644 --- a/print.css +++ b/print.css @@ -72,6 +72,12 @@ overflow: hidden; } + .content p, .content h2 { + margin: default; + } + button#print { + display: none; + } } \ No newline at end of file diff --git a/style.css b/style.css index 1727f9b..98f9615 100644 --- a/style.css +++ b/style.css @@ -149,12 +149,35 @@ dd { object-fit: contain; } + +.content { + white-space: pre-line; +} + +.content p, +.content h2 { + margin: 0; +} + .content img { width: 100%; object-fit: contain; height: auto; } +#print { + display: inline-block; + margin-top: 32px; + background: none; + border: 1px solid currentColor; + padding: 4px 8px; + font-size: 1rem; +} + +#print:hover{ + cursor: pointer; +} + @namespace svg url(http://www.w3.org/2000/svg); /* Necessary to select only SVG elements, and not also HTML's. See warning below */