Skip to content

Commit

Permalink
Update person and events cards
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Mar 25, 2024
1 parent 3f19f79 commit 5dd79b5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 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.7
##### Version: 2.2.8

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.7
version: 2.2.8
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.

3 changes: 2 additions & 1 deletion src/scss/components/events/_event-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
}
}

h2 {
h2,
h3 {
a {
&:hover,
&:focus,
Expand Down
6 changes: 4 additions & 2 deletions src/scss/components/person/_person-teasers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@
padding-top: 0;
padding-bottom: 5rem;

h2 {
h2,
h3 {
margin-bottom: 0.5rem;
// font-size: 1em;

a {
font-size: 0.8em;
// font-size: 0.8em;
color: $su-color-white;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
{%- set link_attributes = link_attributes.addClass('su-link--external') -%}
{%- endif %}
{%- endif -%}
{% set header_tag = variant == 'h3_header' ? 'h3' : 'h2' %}

<div {{ attributes }}>
<div class="su-event-list-item__date">
Expand Down Expand Up @@ -67,7 +68,7 @@
{%- if url|render_clean is empty -%}
{{- headline -}}
{%- else -%}
<h2><a {{ link_attributes }} href="{{ url|render_clean }}">{{ headline|render_clean }}</a></h2>
<{{ header_tag }}<a {{ link_attributes }} href="{{ url|render_clean }}">{{ headline|render_clean }}</a><{{ header_tag }}
{%- endif -%}

{# Event Subheadline #}
Expand Down

0 comments on commit 5dd79b5

Please sign in to comment.