fanatic/resources/sass/admin/_vars.scss

68 lines
1.6 KiB
SCSS
Raw Normal View History

2022-04-23 10:57:56 -07:00
@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;
2022-04-26 12:34:38 -07:00
$f-size: 14px;
2022-04-23 10:57:56 -07:00
$c-main: #7874ff;
$c-main-light: color.scale($c-main, $lightness: 70%);
$c-main-lightest: color.scale($c-main, $lightness: 80%);
2022-04-23 16:25:16 -07:00
$c-main-dark: color.scale($c-main, $lightness: -20%);
2022-04-23 10:57:56 -07:00
$c-accent: #de7cff;
$c-accent-light: color.scale($c-accent, $lightness: 40%);
$c-accent-lightest: color.scale($c-accent, $lightness: 80%);
2022-04-23 16:25:16 -07:00
$c-accent-dark: color.scale($c-accent, $lightness: -20%);
2022-04-23 10:57:56 -07:00
2022-04-23 11:39:07 -07:00
$c-green: #30be00;
$c-yellow: #ebb000;
$c-red: #e20000;
2022-04-23 19:31:00 -07:00
/* ------------------------------------------------------------------------- &MIXINS/EXTENDS ---- */
2022-04-23 10:57:56 -07:00
2022-04-23 16:25:16 -07:00
@mixin hover($focus: true, $bg: true) {
2022-04-23 10:57:56 -07:00
border-color: $c-main;
2022-04-23 16:25:16 -07:00
@if $bg {
background-color: $c-main-lightest;
}
color: $c-main;
transition: background-color 0.4s, border-color 0.4s, color 0.4s;
2022-04-23 10:57:56 -07:00
&:hover {
border-color: $c-accent;
2022-04-23 16:25:16 -07:00
@if $bg {
background-color: $c-accent-lightest;
}
color: $c-accent;
transition: background-color 0.4s, border-color 0.4s, color 0.4s;
2022-04-23 10:57:56 -07:00
}
@if $focus {
&:focus {
border-color: $c-accent;
2022-04-23 16:25:16 -07:00
@if $bg {
background-color: $c-accent-lightest;
}
color: $c-accent;
transition: background-color 0.4s, border-color 0.4s, color 0.4s;
2022-04-23 10:57:56 -07:00
}
}
}
%btn {
border: 1px solid $c-main;
padding: 5px 10px;
margin-right: 5px;
2022-04-23 16:25:16 -07:00
line-height: normal;
cursor: pointer;
2022-04-25 19:50:01 -07:00
text-decoration: none;
2022-04-23 10:57:56 -07:00
@include hover;
2022-04-23 19:31:00 -07:00
}
%disabled {
border-color: $c-accent;
background-color: $c-accent-lightest;
color: $c-accent;
2022-04-23 10:57:56 -07:00
}