From 42d88baa30baa72f60832ddee3b30144bdf99036 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sat, 13 Feb 2021 18:24:43 +0100 Subject: Tweak portrait layout, add leaf backgrounds --- stylesheets/membre.css | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'stylesheets') diff --git a/stylesheets/membre.css b/stylesheets/membre.css index 0d56a33..2f52b7b 100644 --- a/stylesheets/membre.css +++ b/stylesheets/membre.css @@ -1,9 +1,12 @@ main { display: grid; - grid-template-columns: 60% 40%; + grid-template-columns: 3fr 2fr; align-items: center; - justify-self: center; - width: 80%; +} + +main > * { + margin-left: 2em; + margin-right: 2em; } #bio { @@ -31,18 +34,7 @@ main { margin-bottom: 0.2em; } -#photo { - position: fixed; - bottom: 0; - right: 0; - width: 70vh; - height: 70vh; - z-index: -1; -} - #photo img { - position: absolute; - bottom: 0; - right: 0; - object-fit: contain; + width: 100%; + background-size: cover; } -- cgit v1.2.3