blob: 5d8a312db7a57fee286aab5104df8cafbf26f9db (
plain) (
blame)
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
57
58
|
@use '_variables' as *;
@mixin chevron ($size, $border-width) {
border-style: solid;
border-width: $border-width $border-width 0 0;
content: '';
display: inline-block;
transform: rotate(-45deg);
height: $size;
width: $size;
position: relative;
}
@mixin chevron-right ($size, $border-width) {
@include chevron($size, $border-width);
left: 0;
transform: rotate(45deg);
}
@mixin chevron-down ($size, $border-width) {
@include chevron($size, $border-width);
bottom: 0.15em;
transform: rotate(135deg);
}
@mixin chevron-up ($size, $border-width) {
@include chevron($size, $border-width);
top: 0.15em;
transform: rotate(-45deg);
}
@mixin chevron-left ($size, $border-width) {
@include chevron($size, $border-width);
left: 0.25em;
transform: rotate(-135deg);
}
// ---------------------------------------------------------------------------
@mixin arrow-up ($size) {
width: 0;
height: 0;
border-left: $size solid transparent;
border-right: $size solid transparent;
border-bottom: $size solid pvar(--mainForegroundColor);
}
@mixin arrow-down ($size) {
width: 0;
height: 0;
border-left: $size solid transparent;
border-right: $size solid transparent;
border-top: $size solid pvar(--mainForegroundColor);
}
|