From f69b9acd204bc1d719d31f9165f11f22b56177e6 Mon Sep 17 00:00:00 2001 From: Borja Robert Date: Mon, 26 Sep 2022 12:25:45 +0200 Subject: [PATCH] estilos mejores en algunos elementos --- src/lib/preview/Preview.svelte | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib/preview/Preview.svelte b/src/lib/preview/Preview.svelte index 46d3d84..f106fd3 100644 --- a/src/lib/preview/Preview.svelte +++ b/src/lib/preview/Preview.svelte @@ -69,6 +69,8 @@ font-size: 1rem; color: grey; font-variant: small-caps; + height: 1.2rem; + overflow: hidden; } .title { @@ -76,7 +78,6 @@ top: 320px; left: 1rem; right: 1rem; - align-self: center; font-family: 'Gill Sans', sans-serif; font-size: 2.5rem; font-variant: small-caps; @@ -85,9 +86,14 @@ font-weight: 600; height: 5rem; overflow: hidden; + display: flex; + justify-content: center; + align-items: center; + text-align: center; } .subtitle { position: absolute; + display: flex; top: 415px; left: 1rem; right: 2rem; @@ -95,6 +101,9 @@ color: #575; height: 2.6rem; overflow: hidden; + text-align: center; + align-items: center; + justify-content: center; } .content {