-
Notifications
You must be signed in to change notification settings - Fork 15
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 #146 from rsksmart/feat/step-component
Steps component
- Loading branch information
Showing
8 changed files
with
113 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import clsx from "clsx"; | ||
|
||
import styles from "./styles.module.scss"; | ||
|
||
export default function Step({children, title, index, ...props}) { | ||
|
||
return <div className={clsx(styles.Step)}> | ||
<div class={clsx(styles.StepHeader, 'd-flex gap-8 align-items-center flex-wrap py-4')}> | ||
<h4 className="m-0 fs-14 fw-medium lh-base">{title}</h4> | ||
</div> | ||
<div class={`border-start ps-14 ms-20 py-10 markdown`}> | ||
{children} | ||
</div> | ||
</div> | ||
} |
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,20 @@ | ||
.Step{ | ||
counter-increment: step-counter; | ||
--bs-border-color: var(--rsk-step-border-color, #BFBFBF); | ||
} | ||
.StepHeader{ | ||
&:before{ | ||
content: counter(step-counter); | ||
font: 500 1.25rem/1 var(--bs-body-font-family); | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-width: 42px; | ||
text-align: center; | ||
border: 1px solid var(--rsk-step-border-color, #BFBFBF); | ||
background-color: var(--rsk-step-bg-color, #F2F2F2); | ||
border-radius: 28px; | ||
min-height: 28px; | ||
color: var(--bs-body-color); | ||
} | ||
} |
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,10 @@ | ||
import React from "react"; | ||
import clsx from "clsx"; | ||
import styles from './styles.module.scss'; | ||
|
||
export default function Steps({children, className, ...props}) { | ||
|
||
return <div className={clsx(styles.StepsWrap, className)} {...props}> | ||
{children} | ||
</div> | ||
} |
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,3 @@ | ||
.StepsWrap{ | ||
counter-reset: step-counter; | ||
} |
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
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