Skip to content

Commit

Permalink
THUB-26: Teaser cards (#10)
Browse files Browse the repository at this point in the history
* THUB-26: initial commit

* THUB-26: fixup to teasers

* THUB-26: fixed image

* fixup of comments and spacing
  • Loading branch information
jenbreese authored Jul 9, 2024
1 parent e8ab627 commit ed6045f
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/css/main.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/scss/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
@import 'main-nav/index';
@import 'masthead/index';
@import 'search/index';
@import 'teaser/index';
57 changes: 57 additions & 0 deletions src/scss/components/teaser/_basic-page-teaser.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
@charset "UTF-8";

.ptype-stanford-entity,
.paragraph--type--stanford-entity {

// Card display
.ds-entity--stanford-page {
.su-card {
border: none;
box-shadow: none;

.image {
img,
figure {
display: block;
min-height: 320px;
width: 100%;
object-fit: cover;
}
}

section.su-card__contents {
padding: 4rem 0 0 0;

h2,
h3 {
a {
@include thub-type-d;
@include link-icon(arrow-right, 18px, right);

background: $thub-gradient-lagunita-to-ochre;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

&::after {
background-color: $thub-color-ochre-dark;
}

&:hover,
&:focus,
&:active {
background: $thub-color-black;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

&::after {
background-color: $thub-color-black;
}
}
}
}
}
}
}
}
5 changes: 5 additions & 0 deletions src/scss/components/teaser/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@charset "UTF-8";

// Teaser Roll Up

@import 'basic-page-teaser';

0 comments on commit ed6045f

Please sign in to comment.