Skip to content

Commit

Permalink
THUB-19: basic card styling (#12)
Browse files Browse the repository at this point in the history
* THUB-19: initial commit

* THUB-19: image resizing
  • Loading branch information
jenbreese authored Jul 1, 2024
1 parent cc8314c commit 5d560b6
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/css/main.css

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions src/scss/components/card/_basic-card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@charset "UTF-8";

.ptype-stanford-card {

// Card display
.su-card {
border: none;
box-shadow: none;

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

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

div.su-card__superhead {
@include slab;

font-size: 1.9rem;
font-weight: 400;
margin-bottom: 0;
line-height: 120%;
}

p {
padding: 1.8rem 0;
}


h2,
h3 {
@include thub-type-b;

margin-bottom: 0;
}

.su-link--action {
font-size: 1.9rem;
margin-top: 1.8rem;
}

.su-card__button {
margin-top: 1.8rem;
}
}
}

}
5 changes: 5 additions & 0 deletions src/scss/components/card/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@charset "UTF-8";

// Card Roll Up

@import 'basic-card';
1 change: 1 addition & 0 deletions src/scss/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
// @import 'component-name/index';

@import 'brand-bar/index';
@import 'card/index';
@import 'hero-banner/index';
@import 'local-footer/index';
@import 'main-nav/index';
Expand Down

0 comments on commit 5d560b6

Please sign in to comment.