Skip to content

Commit

Permalink
Fix layout of speakers grid
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Aug 6, 2024
1 parent 7b67f8f commit 23780e9
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 69 deletions.
59 changes: 29 additions & 30 deletions css/includes/people.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
body.page-slug-organizers,
body.page-slug-speakers,
.wcus-speaker-grid {
body.page-slug-speakers {

& .wp-block-post-template-is-layout-grid {
gap: var(--wp--preset--spacing--40);
Expand All @@ -18,6 +17,32 @@ body.page-slug-speakers,
}
}

& .wp-block-post-content {
font-size: var(--wp--preset--font-size--medium);
word-wrap: break-word;
}

& .wp-block-read-more {
text-decoration: underline;

&:hover,
&:active {
text-decoration: none;
}

&:focus {
text-decoration: underline dashed;
}

& .screen-reader-text,
& ~ * {
display: none;
}
}
}

body.page-slug-organizers {

& .wp-block-wordcamp-avatar {
max-width: 100%;
height: auto !important;
Expand All @@ -41,29 +66,6 @@ body.page-slug-speakers,
z-index: -1;
}
}

& .wp-block-post-content {
font-size: var(--wp--preset--font-size--medium);
word-wrap: break-word;
}

& .wp-block-read-more {
text-decoration: underline;

&:hover,
&:active {
text-decoration: none;
}

&:focus {
text-decoration: underline dashed;
}

& .screen-reader-text,
& ~ * {
display: none;
}
}
}

body.single-wcb_organizer {
Expand All @@ -73,20 +75,17 @@ body.single-wcb_organizer {
}
}

body.page-slug-speakers,
body.single-wcb_speaker {

& .wp-block-post-content .wp-block-read-more {
display: none;
}

& .wp-block-wordcamp-avatar {
max-width: 100%;
height: auto !important;
width: auto !important;
overflow: hidden;
position: relative;

& img {
display: block;
vertical-align: middle;
}

Expand Down
78 changes: 39 additions & 39 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23780e9

Please sign in to comment.