From f8f3c0742415dfc7dc24d16b5386389937fa04c5 Mon Sep 17 00:00:00 2001 From: David Rubinstein Date: Thu, 1 Oct 2020 18:14:47 -0700 Subject: [PATCH 1/5] MVP events mobile --- _sass/components/_events.scss | 29 +++++++++++++++++++++++++++-- events.html | 23 ++++++++++++++++++----- 2 files changed, 45 insertions(+), 7 deletions(-) diff --git a/_sass/components/_events.scss b/_sass/components/_events.scss index 84981ff45f..ab544b1f69 100644 --- a/_sass/components/_events.scss +++ b/_sass/components/_events.scss @@ -48,7 +48,8 @@ margin-left: 40px; margin-bottom: -7%; @media #{$bp-below-tablet} { - flex-direction: column; + flex-direction: row-reverse; + flex-grow: 6; margin: 0; } } @@ -72,7 +73,7 @@ font-size: 18px; margin: 0 6px; - @media #{$bp-below-mobile} { + @media #{$bp-below-tablet} { content: "\226A"; transform: rotate(90deg); transition: transform 0.25s ease-in; @@ -458,6 +459,30 @@ } } +/* These styles are for the mobile view of the events page */ + +@media #{$bp-below-tablet} { + .hacknights--header-container { + padding: 2rem 2rem 2rem 2rem; + } + + //This hides the fullscreen positioned video for mobile + .mobile--hide-video { + display:none; + } + + .hacknights--head-content { + margin: 60px 0 0 0; + text-align: initial; + } +} +//This hides the mobile positioned video on displays larger than mobile +@media #{$bp-tablet-up} { + .fullscreen--hide-video { + display:none; + } +} + /* The below styles were moved from _hack-nights.scss, which has been deleted along with it's page namesake. They have been saved because they are still being used in other places on the site. */ .section-hack-nights { diff --git a/events.html b/events.html index 63fce64a8d..a2d757fbe1 100644 --- a/events.html +++ b/events.html @@ -15,21 +15,34 @@

toward using the web as a platform for local government and community service.

+ +
+
+ +
+
-

+

To learn more, watch the Ted Talk by Code for America founder, Jennifer Pahlka, on maintaining a better government through code. -

+
- -
+