Skip to content

Commit

Permalink
Update event node styles (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw authored Feb 28, 2024
1 parent 853e4d8 commit 9fea483
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [ChEM-H Subtheme](https://github.com/SU-SWS/chem_h_subtheme)
##### Version: 2.2.4
##### Version: 2.2.5

Changelog: [Changelog.txt](CHANGELOG.txt)

Expand Down
2 changes: 1 addition & 1 deletion chem_h_subtheme.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ChEM-H Subtheme
type: theme
description: 'ChEM-H Subtheme.'
package: Stanford
version: 2.2.4
version: 2.2.5
core_version_requirement: ^9 || ^10
base theme: stanford_basic
libraries:
Expand Down
2 changes: 1 addition & 1 deletion dist/css/chem_h_subtheme.css

Large diffs are not rendered by default.

23 changes: 22 additions & 1 deletion src/scss/components/events/_event-node.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@
@include grid-media-min('2xl') {
background: $su-color-black url(../../assets/png/header-sm-000--cropped.png) no-repeat 50%/cover;
}

.su-event-type,
.node-stanford-event-title {
justify-content: center;
text-align: center;

div {
&::after {
color: $su-color-white;
}
}

a,
p,
.su-event-label-past {
Expand All @@ -25,6 +32,20 @@
letter-spacing: .3rem;
margin-bottom: .5rem;
opacity: .9;
display: inline-block;
}
}

.su-event-label-past {
border-right: 1px solid $su-color-white;
padding-right: 10px;
}

// Past Events label if no event types are added
.node-stanford-event-title {
.su-event-label-past {
border: none;
padding-right: unset;
}
}

Expand Down

0 comments on commit 9fea483

Please sign in to comment.