Work on the sparkline [SKIP CI]
This commit is contained in:
22
sass/_sparkline.scss
Normal file
22
sass/_sparkline.scss
Normal file
@ -0,0 +1,22 @@
|
||||
.sparkline {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
float: inline-end;
|
||||
gap: 0.25rem;
|
||||
margin: 1rem 0;
|
||||
width: 6rem;
|
||||
height: 2rem;
|
||||
|
||||
div {
|
||||
flex: 1;
|
||||
transform-origin: bottom;
|
||||
transition: var(--transition);
|
||||
background-image: linear-gradient(to top, var(--accent-color) var(--bar-height), transparent var(--bar-height));
|
||||
height: 100%;
|
||||
|
||||
&:hover {
|
||||
height: 200%;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user