-
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 #85 from niaid/staging
NDS 1.1.10 Release
- Loading branch information
Showing
9 changed files
with
199 additions
and
64 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
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
25 changes: 25 additions & 0 deletions
25
...s/00-nds/02-molecules/components/component-process-list/_component-process-list-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,25 @@ | ||
{# | ||
--- | ||
title: Process List Component | ||
--- | ||
Type: Molecules -> Components | ||
Description: | ||
A process list displays the steps or stages of important instructions or processes. | ||
Use process lists to create a clear hierarchy and help users easily differentiate between individual steps or stages in a process. | ||
Parameters: | ||
component_process_list_classes: Additional process classes. | ||
component_process_list_id: Process ID. | ||
Last Updated: February 28, 2023 | ||
#} | ||
|
||
{% set component_process_list_classes = component_process_list_classes|default() %} | ||
{% set component_process_list_id = component_process_list_id|default() %} | ||
|
||
<div class="component-nds component--process-list {{ component_process_list_classes }}" id="{{ component_process_list_id }}"> | ||
{% block component_process_list_content %}{% endblock %} | ||
</div> |
77 changes: 77 additions & 0 deletions
77
...atterns/00-nds/02-molecules/components/component-process-list/component-process-list.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,77 @@ | ||
// PROCESS LIST | ||
.component--process-list { | ||
margin: $s-1-50 0 $s-2; | ||
} | ||
|
||
.component--process-list__wrapper { | ||
list-style-type: none; | ||
margin: 0; | ||
padding-left: $s-1; | ||
position: relative; | ||
|
||
> li { | ||
margin: 0; | ||
max-width: unset; | ||
} | ||
} | ||
|
||
.component--process-list__numbered { | ||
counter-reset: process-list; | ||
|
||
.component--process-list__item::before { | ||
color: $niaid-blue; | ||
content: counter(process-list, decimal); | ||
counter-increment: process-list; | ||
} | ||
} | ||
|
||
.component--process-list__item { | ||
border-left: $s-0-50 solid transparentize($color-theme-1-1-1, 0.8); | ||
padding-bottom: $s-1-75; | ||
padding-left: $s-2; | ||
|
||
> * { | ||
margin-bottom: 0; | ||
} | ||
|
||
ul { | ||
list-style-type: disc; | ||
|
||
li { | ||
margin-bottom: units(0.5); | ||
|
||
&:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
} | ||
|
||
&::before { | ||
@include flex; | ||
background-color: #fff; | ||
border-radius: 50%; | ||
border: $s-0-50 - $s-3px solid $color-theme-1-1-1; | ||
box-shadow: 0 0 0 $s-0-75 - $s-4px $grey-light; | ||
content: ''; | ||
font-size: $s-1; | ||
font-weight: $font-weight-black; | ||
height: $s-2-50; | ||
left: 0; | ||
line-height: normal; | ||
margin-top: - $s-0-25; | ||
position: absolute; | ||
width: $s-2-50; | ||
} | ||
|
||
&:last-child { | ||
border-left-color: transparent; | ||
padding-bottom: 0; | ||
} | ||
} | ||
|
||
.component--process-list__heading { | ||
@include font-size($font-size-heading-5); | ||
font-style: $font-style-heading-5; | ||
font-weight: $font-weight-medium; | ||
margin-top: 0; | ||
} |
28 changes: 28 additions & 0 deletions
28
...ns/00-nds/02-molecules/components/component-process-list/demo/component-process-list.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,28 @@ | ||
{% embed "@nds/02-molecules/components/component-process-list/_component-process-list-main.twig" with | ||
{ | ||
"component_process_list_id": "process-list-example", | ||
"component_process_list_classes": "component--process-list__numbered" | ||
} | ||
%} | ||
{% block component_process_list_content %} | ||
<ul class="component--process-list__wrapper"> | ||
<li class="component--process-list__item"> | ||
<h2 class="component--process-list__heading">Start a process</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque.</p> | ||
<ul> | ||
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.</li> | ||
<li>Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum.</li> | ||
<li>Aliquam erat volutpat. Sed quis velit.</li> | ||
</ul> | ||
</li> | ||
<li class="component--process-list__item"> | ||
<h3 class="component--process-list__heading">Proceed to the second step</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien.</p> | ||
</li> | ||
<li class="component--process-list__item"> | ||
<h4 class="component--process-list__heading">Complete the step-by-step process</h4> | ||
<p>Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien.</p> | ||
</li> | ||
</ul> | ||
{% endblock %} | ||
{% endembed %} |
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
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