45 lines
729 B
CSS
45 lines
729 B
CSS
.container {
|
|
display: flex;
|
|
flex-flow: center;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
/* or inline-flex */
|
|
}
|
|
|
|
.item {
|
|
display: inline-block;
|
|
color: var(--primary-text);
|
|
font-size: calc(28rem / 16);
|
|
position: relative;
|
|
}
|
|
|
|
.item:after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100%;
|
|
transform: scaleX(0);
|
|
height: 2px;
|
|
bottom: 0;
|
|
left: 0;
|
|
background-color: var(--primary-accent);
|
|
cursor: pointer;
|
|
transform-origin: bottom right;
|
|
transition: transform 0.25s ease-out;
|
|
}
|
|
|
|
.item:hover:after {
|
|
transform: scaleX(1);
|
|
transform-origin: bottom left;
|
|
}
|
|
|
|
.linePath {
|
|
stroke: var(--primary-text);
|
|
}
|
|
|
|
.arrowPath {
|
|
fill: var(--primary-text);
|
|
}
|
|
|
|
.left {
|
|
transform: rotate(180deg);
|
|
} |