Skip to content

Commit

Permalink
GH-157: Style s-article-list--allocations previews
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Apr 2, 2021
1 parent be094b0 commit c856891
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ Styleguide Trumps.Scopes.ArticlePreview
.s-article-preview h3 {
order: 3;

margin-top: 0.5em; /* overwrite Bootstrap and browser */
margin-bottom: 0.25em; /* overwrite Bootstrap and browser */
margin-top: 0; /* overwrite Bootstrap and browser */
margin-bottom: 8px; /* overwrite Bootstrap and browser */

font-size: 1.8rem;
font-weight: var(--bold);
Expand All @@ -74,6 +74,11 @@ Styleguide Trumps.Scopes.ArticlePreview
@extend .x-truncate--many-lines;
--lines: 2;
}
/* (List) Allocations */
.s-article-list--allocations .s-article-preview h3 {
font-size: 1.6rem;
font-weight: var(--bold);
}



Expand Down Expand Up @@ -113,7 +118,8 @@ Styleguide Trumps.Scopes.ArticlePreview

list-style: none;
padding-left: 0; /* overwrite `site.css` and browser */
margin-bottom: 0; /* overwrite Bootstrap */

margin-bottom: 8px; /* overwrite Bootstrap */
}
/* (List) Allocations */
.s-article-list--allocations .s-article-preview ul {
Expand All @@ -125,9 +131,25 @@ Styleguide Trumps.Scopes.ArticlePreview
.s-article-preview ul > li:nth-child(1) {
order: 2;

/* FAQ: To prevent line wrap from changing height */
height: 1.4em; /* equal to line-height */
}
/* (List) News */
.s-article-list--news .s-article-preview ul > li:nth-child(1) {
font-size: 1.0rem;
font-weight: var(--bold);
}
.s-article-list--news .s-article-preview ul > li:nth-child(1)::before {
content: 'Published: ';
}
/* (List) Allocations */
.s-article-list--allocations .s-article-preview ul > li:nth-child(1) {
font-size: 1.6rem;
font-weight: var(--medium);
}
.s-article-list--allocations .s-article-preview ul > li:nth-child(1)::before {
content: 'Submission Deadlines: ';
}

/* Children: Metadata: Type */

Expand Down
2 changes: 1 addition & 1 deletion taccsite_custom

0 comments on commit c856891

Please sign in to comment.