mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
Merge branch 'progress-indicator' of https://github.com/joachimesque/security-checklist into progress-indicator
This commit is contained in:
commit
a8b84175ab
2 changed files with 5 additions and 4 deletions
|
|
@ -67,7 +67,7 @@ export default function Header(props: Props) {
|
|||
role="tooltip"
|
||||
>
|
||||
{ currentCount === totalItemsCount
|
||||
? `🎉 Checklist Complete! 🎉`
|
||||
? `🎉 Checklist complete! 🎉`
|
||||
: `${currentCount} of ${totalItemsCount} completed`}
|
||||
</ProgressLabel>
|
||||
<Confetti fireConfetti={currentCount === totalItemsCount} />
|
||||
|
|
|
|||
|
|
@ -89,11 +89,12 @@ export const ProgressLabel = styled.p`
|
|||
transform: translateX(-50%);
|
||||
background: ${theme.bg.default};
|
||||
padding: 8px 16px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
|
||||
transition: all ${theme.animations.default};
|
||||
|
||||
border-bottom-left-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
border-radius: 8px;
|
||||
white-space: nowrap;
|
||||
${Shadows.default};
|
||||
|
||||
|
|
@ -103,7 +104,7 @@ export const ProgressLabel = styled.p`
|
|||
{
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
bottom: -87.5%;
|
||||
bottom: -100%;
|
||||
}
|
||||
|
||||
@media (max-width: 968px) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue