From 53fb3fcabd998caf014284bdc4dd1682f2790260 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Fri, 15 Oct 2021 04:32:11 +0000 Subject: [PATCH] add new module --- assets/stylesheets/template/layout/content.scss | 11 ++++++++--- home/index.html.erb | 8 ++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 20bbbba..e96d79a 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -267,8 +267,12 @@ body{ padding-bottom: 0.5em; } } +.box:empty{ + flex: none; + display: none; +} .box{ - flex: 1; + flex: 3; color: #666666; font-family: "Barlow", Sans-serif; font-size: 36px; @@ -280,7 +284,7 @@ body{ transition: all .25s; @media(min-width: 1025px){ &:hover{ - flex: 0 1 25%; + flex: 4; // img{ // transform: scale(1.5); // transition: all .25s; @@ -288,7 +292,8 @@ body{ } } @media(max-width: $screen-xs){ - flex: 100%; + width: 100%; + flex-wrap: wrap; height: 250px; padding-bottom: 0.5em; } diff --git a/home/index.html.erb b/home/index.html.erb index 7441eab..212d6fd 100644 --- a/home/index.html.erb +++ b/home/index.html.erb @@ -24,6 +24,7 @@
+
@@ -43,6 +44,13 @@
+
+
+
+
+
+
+