Files
ridebus-website/modules/home/reportCard/reportCard.module.scss
2026-10-02 20:31:49 +03:00

114 lines
2.0 KiB
SCSS

.card {
--background: #ffeef2;
--on-background: #861118;
--on-background-secondary: #861118;
flex-grow: 1;
position: relative;
min-width: 0;
}
.subtitle {
margin-top: 12px;
font-size: 1rem;
line-height: 1.65;
}
.content {
position: relative;
margin-top: 28px;
gap: 28px;
justify-content: space-between;
z-index: 1;
}
.star {
position: absolute;
width: 240px;
height: 240px;
right: -130px;
bottom: -130px;
color: #ffd9e2;
transform: rotate(12deg);
pointer-events: none;
}
.badges {
position: relative;
display: flex;
flex-wrap: wrap;
gap: 12px;
padding: 6px 0;
span {
border-radius: 40px;
padding: 12px 18px;
background: #fff;
font-size: 0.9rem;
font-weight: 700;
line-height: 1.5;
transform: rotate(-3deg);
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
&:nth-child(2) {
background: #861118;
color: #ffeef2;
transform: rotate(3deg);
}
&:nth-child(3) {
transform: rotate(-5deg);
}
&:hover {
transform: rotate(0deg) translateY(-3px);
}
}
}
.action {
position: relative;
align-self: flex-start;
max-width: 100%;
a {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 18px;
border-radius: 16px;
background: #fff;
color: #861118;
font-size: 0.9rem;
font-weight: 700;
line-height: 1.5;
svg {
width: 20px;
height: 20px;
flex-shrink: 0;
}
&:focus-visible {
outline: 3px solid #861118;
outline-offset: 4px;
}
}
}
@media (max-width: 500px) {
.card {
padding: 24px;
}
.subtitle {
font-size: 0.85rem;
}
.badges {
gap: 10px;
span {
font-size: 0.8rem;
padding: 10px 14px;
}
}
}
@media (prefers-reduced-motion: reduce) {
.badges span {
transition: none;
&:hover {
transform: rotate(-3deg);
}
&:nth-child(2):hover {
transform: rotate(3deg);
}
&:nth-child(3):hover {
transform: rotate(-5deg);
}
}
}