blob: 93779a4e7d6d9c3b435bde00f07e0447c63a8c9f [file] [log] [blame]
Akron7636edf2025-11-04 12:44:53 +01001@use 'sass:color';
2@use "colors";
Akron7e5afce2020-08-25 15:50:19 +02003
4/**
5 * Some color definitions and mixins for
6 * buttons and menus.
7 */
Akron7636edf2025-11-04 12:44:53 +01008$choose-bg: colors.$light-grey;
9$choose-color: colors.$dark-grey;
10$choose-blind-color: colors.$middle-grey;
11$choose-border-color: colors.$middle-grey;
Akron7e5afce2020-08-25 15:50:19 +020012$choose-border: 2px solid $choose-border-color;
13$choose-box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
14
15
16/**
17 * Chooseable items (default)
18 */
19@mixin choose-item {
20 color: $choose-color;
21 background-color: $choose-bg;
22 border-color: $choose-border-color;
Akron7636edf2025-11-04 12:44:53 +010023 text-shadow: colors.$light-shadow;
Akron7e5afce2020-08-25 15:50:19 +020024}
25
26
27/**
28 * Chooseable items (mouse over)
29 */
30@mixin choose-hover {
Akron7636edf2025-11-04 12:44:53 +010031 color: colors.$nearly-white;
32 background-color: colors.$dark-orange;
33 border-color: colors.$darker-orange;
Akron7e5afce2020-08-25 15:50:19 +020034 text-shadow: none;
35}
36
37
38/**
39 * Chooseable items (not available)
40 */
41@mixin choose-inactive {
Akron7636edf2025-11-04 12:44:53 +010042 color: color.adjust($choose-color, $lightness: 20%, $space: hsl);
43 background-color: color.adjust($choose-bg, $lightness: 20%, $space: hsl);
Akron7e5afce2020-08-25 15:50:19 +020044 border-color: transparent;
45 text-shadow: none;
46}
47
48/**
49 * Chooseable items (active)
50 */
51@mixin choose-active {
Akron7636edf2025-11-04 12:44:53 +010052 color: colors.$dark-green;
53 background-color: colors.$light-green;
54 border-color: colors.$dark-green;
Akron7e5afce2020-08-25 15:50:19 +020055 text-shadow: none;
56}
57
58
59/**
60 * Chooseable items (action: remove something)
61 */
62@mixin choose-remove {
Akron7636edf2025-11-04 12:44:53 +010063 color: colors.$nearly-white;
64 background-color: colors.$middle-red;
65 border-color: colors.$dark-red;
Akron7e5afce2020-08-25 15:50:19 +020066 text-shadow: none;
67}