-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat step component #240
Feat step component #240
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
commit: |
.stepitem { | ||
padding: 24px 29px; | ||
position: relative; | ||
|
||
&::before { | ||
content: ''; | ||
position: absolute; | ||
background-color: var(--color-light-neutral-10, #ededf0); | ||
width: 1px; | ||
height: 100%; | ||
margin-left: -30px; | ||
z-index: -2; | ||
} | ||
} | ||
|
||
.stepitem.noline::before { | ||
display: none; | ||
} | ||
|
||
.stepitem.shortline::before { | ||
height: calc(100% - 50px); | ||
} | ||
|
||
.dot-inactive { | ||
width: 7px; | ||
aspect-ratio: 1/1; | ||
border-radius: 50%; | ||
background-color: var(--color-light-neutral-10, #ededf0); | ||
margin-left: -33px; | ||
position: absolute; | ||
} | ||
|
||
.dot-active { | ||
width: 16px; | ||
height: 17px; | ||
position: absolute; | ||
margin-left: -37px; | ||
margin-top: -3px; | ||
background-color: var(--color-bgcolor-neutral-primary); | ||
} | ||
|
||
.dot-active::before { | ||
content: ''; | ||
width: 1px; | ||
height: 80px; | ||
background: linear-gradient( | ||
to bottom, | ||
rgba(253, 54, 110, 0) 0%, | ||
rgba(253, 54, 110, 1) 50%, | ||
rgba(253, 54, 110, 0) 100% | ||
); | ||
margin-left: 7px; | ||
position: absolute; | ||
margin-top: -30px; | ||
z-index: -1; | ||
} | ||
|
||
.badge { | ||
position: absolute; | ||
margin-top: -9px; | ||
|
||
img { | ||
width: 20px; | ||
height: 20px; | ||
} | ||
} | ||
|
||
.badge-margin { | ||
margin-top: 30px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of hardcoded pixel sizes... let's try to use the existing sizes variables where possible, and maybe we can ask design if we can round some of the other sizes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's a bit of a challenge to get the all the separate dots and lines to exactly match. But I've expressed it into the existing vars as much as possible now!
background-color: var(--color-light-neutral-10, #ededf0); | ||
width: 1px; | ||
height: 100%; | ||
margin-left: -30px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fututre proof this and use margin-inline
and margin-block
when possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ayy nice, you learn every day! Done!
What does this PR do?
Add Step component to V2
Have you read the Contributing Guidelines on issues?
✅