Skip to content

Commit

Permalink
fix: remove preview images from the mobile view of the Initiatives pa…
Browse files Browse the repository at this point in the history
…ge (resolves #458) (#460)

* fix: remove preview images from the mobile view of the Initiatives page

* fix: set the min-height for the description block on the mobile view
  • Loading branch information
cindyli authored Feb 22, 2021
1 parent dc67b6a commit a37d7a7
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions src/scss/components/_initiatives.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
border-radius: rem(18);
box-shadow: rem(0) rem(0) rem(7) rgba(0, 0, 0, 0.25);
display: grid;
grid-template-rows: auto rem(227);
margin: rem(32) 0 rem(32) 0;

&:hover {
Expand All @@ -33,8 +32,8 @@

// Workshop title and descriptions
.workshop-narrative {
border-radius: rem(18) rem(18) 0 0;
min-height: rem(350);
border-radius: rem(18) rem(18) rem(18) rem(18);
min-height: rem(208);
padding: 0 rem(16) rem(16) rem(16);

// Workshop titles
Expand All @@ -51,17 +50,7 @@

// Workshop images
.workshop-image {
// In order to apply border-radius, all inner elements need to have the same border-radius applied.
// This includes the wrapper div.workshop-image and inner img element.

border-radius: 0 0 rem(18) rem(18);
height: 100%;

img {
border-radius: 0 0 rem(18) rem(18);
height: 100%;
width: 100%;
}
display: none;
}
}
}
Expand Down Expand Up @@ -256,10 +245,14 @@
// In order to apply border-radius, all inner elements need to have the same border-radius applied.
// This includes the wrapper div.workshop-image and inner img element.
.workshop-image {
border-radius: 0 rem(18) rem(18) 0;
border-radius: 0 0 rem(18) rem(18);
display: block;
height: 100%;

img {
border-radius: 0 rem(18) rem(18) 0;
border-radius: 0 0 rem(18) rem(18);
height: 100%;
width: 100%;
}
}
}
Expand Down

0 comments on commit a37d7a7

Please sign in to comment.