mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
Style changes
This commit is contained in:
parent
6f61bfeade
commit
41452fc7f4
2 changed files with 10 additions and 6 deletions
|
|
@ -59,6 +59,7 @@ export default function Header(props: Props) {
|
|||
<ProgressBar
|
||||
id="progress_bar"
|
||||
aria-describedby="progress_tooltip"
|
||||
disabled={currentCount > 0 ? false : true}
|
||||
/>
|
||||
<ProgressLabel
|
||||
id="progress_tooltip"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
import styled from 'styled-components';
|
||||
import { theme } from '../theme';
|
||||
import { hexa } from '../globals';
|
||||
import { Shadows } from '../globals';
|
||||
|
||||
export const Container = styled.div`
|
||||
display: grid;
|
||||
|
|
@ -47,13 +48,11 @@ export const Progression = styled.div`
|
|||
|
||||
export const ProgressBar = styled.div`
|
||||
display: block;
|
||||
height: 8px;
|
||||
height: 4px;
|
||||
width: 100%;
|
||||
margin: 16px 0 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
background-image: linear-gradient(to left, #a913de, #6ac9ff);
|
||||
box-shadow: 0 4px 8px rgba(0,0,0,0.04);
|
||||
z-index: 5;
|
||||
|
|
@ -64,7 +63,7 @@ export const ProgressBar = styled.div`
|
|||
0 0 0 3px ${props => hexa(props.theme.brand.default, 0.25)};
|
||||
}
|
||||
|
||||
&:after {
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
|
|
@ -73,7 +72,10 @@ export const ProgressBar = styled.div`
|
|||
width: 100%;
|
||||
background: ${theme.border.default};
|
||||
max-width: var(--progress);
|
||||
transition: max-width ${theme.animations.default};
|
||||
transition: max-width ${theme.animations.default}, background ${theme.animations.default};
|
||||
}
|
||||
&[disabled]::after {
|
||||
background: ${theme.bg.default};
|
||||
}
|
||||
`;
|
||||
|
||||
|
|
@ -93,6 +95,7 @@ export const ProgressLabel = styled.p`
|
|||
border-bottom-left-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
white-space: nowrap;
|
||||
${Shadows.default};
|
||||
|
||||
${Progression}:hover &,
|
||||
${Progression}:focus &,
|
||||
|
|
@ -100,7 +103,7 @@ export const ProgressLabel = styled.p`
|
|||
{
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
bottom: -100%;
|
||||
bottom: -87.5%;
|
||||
}
|
||||
|
||||
@media (max-width: 968px) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue