Skip to content

Commit

Permalink
Sessions list: Add keynote, showcase, and campfire labels to sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Aug 22, 2024
1 parent b55ec50 commit f687761
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
33 changes: 32 additions & 1 deletion css/includes/schedule.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ body.single-wcb_session {
}
}
}

}

/* Specificity hack */
Expand Down Expand Up @@ -315,3 +314,35 @@ body.single-wcb_session {
}
}
}

/* Session query loop on sessions page */

.wp-block-query .wp-block-post.type-wcb_session {

&::before {
display: inline-block;
margin-block-end: 0.5rem;
padding: 0 10px;
background: var(--wp--preset--color--accent-3);
border: 1px solid var(--wp--preset--color--contrast);
font-size: 1em;
}

&.wcb_session_category-keynote::before {
content: "Keynote";
}

&.wcb_session_category-showcase::before {
background-color: var(--wp--preset--color--accent-4);
border: 1px solid #b4d9d1;
color: #b4d9d1;
content: "Showcase";
}

&.wcb_session_category-campfire::before {
background-color: var(--wp--preset--color--base);
border: 1px solid var(--wp--preset--color--accent-5);
color: var(--wp--preset--color--accent-5);
content: "Campfire";
}
}
29 changes: 29 additions & 0 deletions style.css

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

0 comments on commit f687761

Please sign in to comment.