gcg-website/assets/scss/_buttons.scss
Denys Konovalov 96f6f10146
All checks were successful
website-main / prod-build (push) Successful in 1m7s
website-main / test-build (push) Successful in 45s
website-main / auto-rebuild (push) Has been skipped
WIP: convert sass to css
2023-06-09 20:35:28 +02:00

123 lines
2.0 KiB
SCSS

/* Button style */
.btn {
font-size: 16px;
font-family: var(--gcg-font-primary);
padding: 15px 40px;
border-radius: 0;
font-weight: 500;
border: 0;
position: relative;
z-index: 1;
transition: .2s ease;
overflow: hidden;
white-space: nowrap;
&::before {
position: absolute;
content: "";
height: 80%;
width: 100%;
left: 0;
bottom: 10%;
z-index: -1;
transition: transform .2s ease-in-out;
transform-origin: top;
transform: scaleY(0);
}
&:focus {
outline: 0;
box-shadow: none !important;
}
&:active {
box-shadow: none;
}
&:hover {
&::before {
transform: scaleY(1);
transform-origin: bottom;
}
}
}
.btn-sm {
font-size: 14px;
padding: 10px 35px;
}
.btn-primary {
background: var(--gcg-color-primary);
color: white;
&::before {
background: white;
}
&:active {
background: var(--gcg-color-primary) !important;
color: var(--gcg-color-primary);
&::before {
height: 80%;
}
}
&:hover {
background: var(--gcg-color-primary);
color: var(--gcg-color-primary);
}
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn-primary.dropdown-toggle {
color: white;
background-color: var(--gcg-color-primary);
border-color: var(--gcg-color-primary);
}
.btn-secondary {
background: white;
color: var(--gcg-color-primary);
border: 1px solid white;
&::before {
background: var(--gcg-color-primary);
}
&:active {
background: var(--gcg-color-primary);
color: white;
border: 1px solid white;
}
&:hover {
background: white;
color: white;
border: 1px solid white;
}
}
.btn-primary-outline {
border: 1px solid var(--gcg-color-primary);
color: var(--gcg-color-primary);
background: transparent;
&::before {
background: white;
}
&:hover {
background: var(--gcg-color-primary);
color: var(--gcg-color-primary);
}
&:active {
background: var(--gcg-color-primary);
color: white;
}
}