44 lines
1.1 KiB
SCSS
44 lines
1.1 KiB
SCSS
|
@use 'sass:color';
|
||
|
@import url('https://fonts.googleapis.com/css2?family=Imprima&family=Satisfy&display=swap');
|
||
|
|
||
|
$f-main: 'Imprima', sans-serif;
|
||
|
$f-title: 'Satisfy', serif;
|
||
|
$f-size: 16px;
|
||
|
|
||
|
$c-main: #7874ff;
|
||
|
$c-main-light: color.scale($c-main, $lightness: 70%);
|
||
|
$c-main-lightest: color.scale($c-main, $lightness: 80%);
|
||
|
|
||
|
$c-accent: #de7cff;
|
||
|
$c-accent-light: color.scale($c-accent, $lightness: 40%);
|
||
|
$c-accent-lightest: color.scale($c-accent, $lightness: 80%);
|
||
|
|
||
|
/* ------------------------------------------------------------------------------------ &BTN ---- */
|
||
|
|
||
|
@mixin hover($focus: false) {
|
||
|
border-color: $c-main;
|
||
|
background-color: $c-main-lightest;
|
||
|
transition: background-color 0.4s, border-color 0.4s;
|
||
|
|
||
|
&:hover {
|
||
|
background-color: $c-accent-lightest;
|
||
|
border-color: $c-accent;
|
||
|
transition: background-color 0.4s, border-color 0.4s;
|
||
|
}
|
||
|
|
||
|
@if $focus {
|
||
|
&:focus {
|
||
|
background-color: $c-accent-lightest;
|
||
|
border-color: $c-accent;
|
||
|
transition: background-color 0.4s, border-color 0.4s;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
%btn {
|
||
|
border: 1px solid $c-main;
|
||
|
padding: 5px 10px;
|
||
|
margin-right: 5px;
|
||
|
|
||
|
@include hover;
|
||
|
}
|