forked from TuringLang/turinglang.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_mixins.scss
56 lines (45 loc) · 1.27 KB
/
_mixins.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@mixin raw-card {
border-radius: $border-radius-sm;
padding: 1rem;
--bs-card-spacer-x: 0rem !important;
--bs-card-spacer-y: 0rem !important;
color: $color-fg !important;
background-color: $color-secondary !important;
border: solid $color-secondary 1px !important;
transition: background-color 0.3s ease, border-color 0.3s ease !important;
}
@mixin card($hover-border) {
@include raw-card;
.card-title {
color: $color-fg !important;
font-weight: 700;
}
&:hover {
background-color: $color-highlight !important;
border-color: $hover-border !important;
}
}
@mixin raw-button {
padding: 0.5rem 1rem;
border-radius: 25px;
border: solid $text-muted 1px;
color: $color-fg;
background-color: $body-bg;
&:hover {
background-color: $color-mute-bg !important;
border-color: $color-mute-bg !important;
text-decoration: none;
}
}
@mixin button($hover-border) {
@include raw-button;
&--fill {
@extend .button;
background-color: $color-secondary;
border: solid $color-secondary 1px;
&:hover {
background-color: $color-highlight !important;
border-color: $hover-border !important;
}
}
}