-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from niaid/staging
NDS 1.1.12 Release
- Loading branch information
Showing
5 changed files
with
71 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/_patterns/00-nds/01-atoms/text/text-date/_text-date-main.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{# | ||
--- | ||
title: Date | ||
--- | ||
Type: Atoms -> Text | ||
Description: | ||
Dates are static, non-functional indicators of a desired date. Typically dates are used to indicate the date of an upcoming event. | ||
Parameters: | ||
text_date_classes: Additional date classes. | ||
text_date_day: The day to display, formatted DD. | ||
text_date_month: The month to display, formatted as the first three letters of the month name (Ex. January = Jan). | ||
Last Updated: April 24, 2023 | ||
#} | ||
|
||
{% set text_date_classes = text_date_classes|default() %} | ||
{% set text_date_day = text_date_day|default() %} | ||
{% set text_date_month = text_date_month|default() %} | ||
|
||
<div class="text-nds text--date {{ text_date_classes }}"><span class="text--date__day">{{ text_date_day }}</span><span class="text--date__month">{{ text_date_month }}</span></div> |
6 changes: 6 additions & 0 deletions
6
src/_patterns/00-nds/01-atoms/text/text-date/demo/text-date.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% include "@nds/01-atoms/text/text-date/_text-date-main.twig" with | ||
{ | ||
"text_date_day": "18", | ||
"text_date_month": "June" | ||
} | ||
%} |
33 changes: 33 additions & 0 deletions
33
src/_patterns/00-nds/01-atoms/text/text-date/text-date.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.text--date { | ||
@include shadow($shadow-hard-low); | ||
background: $white; | ||
border-radius: $border-radius-semi; | ||
padding: 0; | ||
text-align: center; | ||
width: $s-4; | ||
} | ||
|
||
.text--date__day { | ||
border-top-left-radius: $border-radius-semi; | ||
border-top-right-radius: $border-radius-semi; | ||
color: $type-body; | ||
display: block; | ||
font-size: 1.75rem; | ||
font-weight: $font-weight-bold; | ||
line-height: $line-height-heading; | ||
padding: $s-0-50 0; | ||
} | ||
|
||
.text--date__month { | ||
background: $color-theme-1-1-1; | ||
border-bottom-left-radius: $border-radius-semi; | ||
border-bottom-right-radius: $border-radius-semi; | ||
color: $white; | ||
display: block; | ||
font-size: $s-0-75; | ||
font-weight: $font-weight-bold; | ||
line-height: $line-height-medium; | ||
padding: $s-0-25 0; | ||
text-transform: uppercase; | ||
width: 100%; | ||
} |