58 lines
995 B
SCSS
58 lines
995 B
SCSS
|
.button {
|
||
|
display: inline-block;
|
||
|
border: 0;
|
||
|
background-color: var(--color-action-bg);
|
||
|
color: var(--color-action-text);
|
||
|
padding: get-size(300) get-size('base');
|
||
|
line-height: 1;
|
||
|
margin: 0;
|
||
|
text-decoration: none;
|
||
|
cursor: pointer;
|
||
|
-webkit-appearance: none;
|
||
|
-moz-appearance: none;
|
||
|
}
|
||
|
|
||
|
.button:hover,
|
||
|
.button:focus {
|
||
|
filter: brightness(1.2);
|
||
|
}
|
||
|
|
||
|
.button:focus:hover {
|
||
|
outline: none;
|
||
|
}
|
||
|
|
||
|
.button:focus:not(:hover) {
|
||
|
outline: 1px solid var(--color-action-text);
|
||
|
outline-offset: -4px;
|
||
|
}
|
||
|
|
||
|
.button:active {
|
||
|
transform: scale(.99);
|
||
|
}
|
||
|
|
||
|
.btn {
|
||
|
display: inline-block;
|
||
|
padding: 1.25rem 2rem;
|
||
|
border: 0;
|
||
|
border-radius: 1.75rem;
|
||
|
line-height: 1;
|
||
|
text-decoration: none;
|
||
|
font-size: 1.125rem;
|
||
|
font-weight: 600;
|
||
|
|
||
|
+ .btn {
|
||
|
margin-left: 2rem;
|
||
|
}
|
||
|
|
||
|
&.btn-primary {
|
||
|
color: var(--color-dark);
|
||
|
background-color: var(--color-primary);
|
||
|
font-weight: 700;
|
||
|
}
|
||
|
|
||
|
&.btn-secondary {
|
||
|
color: var(--color-white);
|
||
|
background-color: var(--color-secondary);
|
||
|
}
|
||
|
}
|