From eb97090fbbd61de6e42f4aecb51f21c5d69bd80f Mon Sep 17 00:00:00 2001 From: chimchooree Date: Fri, 9 Oct 2020 20:53:17 -0500 Subject: [PATCH] snippets are centered --- src/static/css/feature.css | 11 +++++++---- src/views/feature.tpl | 28 ++++++++++++++++++++++------ 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/static/css/feature.css b/src/static/css/feature.css index 00d521a..b52bab4 100644 --- a/src/static/css/feature.css +++ b/src/static/css/feature.css @@ -179,14 +179,17 @@ ul { list-style-position: inside; } grid-area: 6 / 2 / 7 / 3; background-color: #F5D7E3; display: grid; - grid-template-columns: auto; - grid-template-rows: 15% 35% auto; + grid-template-columns: auto repeat(3, 100px) auto; + grid-template-rows: auto; grid-column-gap: 0px; grid-row-gap: 0px; - overflow-y: scroll; - overflow-x: hidden; + padding-top: 25px; } +.snip1 { grid-area: 1 / 2 / 2 / 3; } +.snip2 { grid-area: 1 / 3 / 2 / 4; } +.snip3 { grid-area: 1 / 4 / 2 / 5; } + .footer-row { grid-area: 7 / 1 / 8 / 5; background-color: #A8577E; diff --git a/src/views/feature.tpl b/src/views/feature.tpl index 9fbe7bd..dd5d93e 100644 --- a/src/views/feature.tpl +++ b/src/views/feature.tpl @@ -9,14 +9,30 @@ % include diary-boxes.tpl
- % for r in recommends: -
- {{!r[0]}} +
+ +
+ {{!recommends[0][1]}} +
-
- {{!r[1]}} +
+ +
+ {{!recommends[1][1]}} +
+
+
+ +
+ {{!recommends[2][1]}} +
- % end