index-shop/assets/css/components/_btn--default.scss

77 lines
1.3 KiB
SCSS
Raw Permalink Normal View History

.btn__default {
--size: calc(var(--h-block) - 8px);
font-size: var(--fs-normal);
font-weight: var(--fw-normal);
height: var(--size);
padding-right: 1.5ch;
position: relative;
display: flex;
align-items: center;
gap: 0ch;
// padding-right: 0.5ch;
color: var(--color-accent);
font-weight: var(--fw-medium);
text-decoration: none;
cursor: pointer;
.icon,
.txt {
z-index: 10;
}
.icon {
width: var(--size);
2025-12-10 15:12:06 +01:00
height: var(--size);
display: flex;
align-items: center;
justify-content: center;
color: var(--color-bg);
text-align: center;
2025-12-10 15:12:06 +01:00
svg {
fill: var(--color-bg);
width: 80%;
2025-12-10 15:12:06 +01:00
}
}
2025-12-10 15:12:06 +01:00
.txt {
font-family: var(--font-title);
color: var(--color-accent);
font-size: var(--fs-normal);
font-weight: var(--fw-bold);
padding-left: 1ch;
}
&::after {
content: "";
display: block;
background-color: var(--color-accent);
border-radius: calc(var(--size) / 2);
width: var(--size);
height: var(--size);
position: absolute;
left: 0;
z-index: 0;
transition: width 0.2s;
}
&:hover:not(:disabled) {
//
.txt {
color: var(--color-bg);
display: block;
2025-12-10 15:12:06 +01:00
}
&::after {
width: 100%;
2025-12-10 15:12:06 +01:00
}
}
2025-12-10 15:12:06 +01:00
&:disabled {
cursor: not-allowed;
opacity: 0.6;
}
2025-12-10 15:12:06 +01:00
}