Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 40 additions & 13 deletions _sass/components/_events.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@
font-weight: 530;
font-size: 25px;
line-height: 29px;
margin: 2% 0 0% 5%;
margin: 2% 0 20px 5%;

@media #{$bp-below-tablet} {
font-size: 16px;
line-height: 19px;
margin: 0;
margin-bottom: 20px;
}
}

.show-desc {
// margin: 15px 44px;
margin-left: 43%;
@media #{$bp-below-tablet} {
// display: flex;
// flex-direction: column;
margin: 74px 0px;
font-size: 13px;
line-height: 15px;
Expand All @@ -48,7 +45,8 @@
margin-left: 40px;
margin-bottom: -7%;
@media #{$bp-below-tablet} {
flex-direction: column;
flex-direction: row-reverse;
flex-grow: 6;
margin: 0;
}
}
Expand All @@ -65,14 +63,13 @@
#head-content::before {
content: "\226A";
float: left;
// transform: rotate(-45deg);
transition: transform 0.25s ease-in;
color: #000000;
font-weight: normal;
font-size: 18px;
margin: 0 6px;

@media #{$bp-below-mobile} {
@media #{$bp-below-desktop} {
content: "\226A";
transform: rotate(90deg);
transition: transform 0.25s ease-in;
Expand Down Expand Up @@ -127,7 +124,6 @@
top: 0;
width: 325px;
height: 215px;
margin-top: 22px;
}
}

Expand Down Expand Up @@ -183,7 +179,6 @@
align-content: center;

@media #{$bp-below-tablet} {
// margin: 25px 0;
flex-direction: column;
}
}
Expand Down Expand Up @@ -232,7 +227,6 @@
height: fit-content;

@media #{$bp-below-tablet} {
// max-width: 335px;
padding: 16px 16px;
}
}
Expand Down Expand Up @@ -362,7 +356,6 @@
}
}
.active::after {
// display: none;
@media #{$bp-below-tablet} {
content: "\221F";
transform: rotate(135deg);
Expand Down Expand Up @@ -458,6 +451,40 @@
}
}

/* These styles are for the mobile view of the events page */

@media #{$bp-below-desktop} {
.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: 20px 0 0 0;
}
}

//This hides the mobile positioned video on displays larger than mobile
@media #{$bp-desktop-up} {
.fullscreen--hide-video {
display:none;
}
}

.fullscreen-video {
width: 100%;
}

.events-video-fullscreen-container {
position: relative;
height: 0;
padding-bottom: 56.25%;
}

/* 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 {
Expand All @@ -467,4 +494,4 @@

.btn {
margin: 0 20px 20px 0;
}
}
19 changes: 16 additions & 3 deletions events.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ <h2 class="header-desc">
toward using the web as a platform for local government and community
service.
</h2>
<!--This is hidden when full screen and shown when mobile and tablet-->
<div class="fullscreen--hide-video">
<div>
<iframe
class="video-size"
src="https://embed.ted.com/talks/jennifer_pahlka_coding_a_better_government"
width="854"
height="480"
frameborder="0"
scrolling="no"
allowfullscreen
></iframe>
</div>
</div>

<p id="head-content" class="hacknights--head-content">
To learn more, watch the
Expand All @@ -23,9 +37,8 @@ <h2 class="header-desc">
</p>
</div>


<div style="width: 100%">
<div style="position: relative; height: 0; padding-bottom: 56.25%">
<div class="mobile--hide-video fullscreen-video">
<div class="events-video-fullscreen-container">
<iframe
class="video-size"
src="https://embed.ted.com/talks/jennifer_pahlka_coding_a_better_government"
Expand Down