aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/include/_icons.scss
blob: 08a0c02e39d0244f8cf8f669f9a70d1495ce64a0 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@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-right-default {
  @include chevron-right(0.55rem, 0.15rem);

  margin: 0 8px;
}

@mixin chevron-down ($size, $border-width) {
  @include chevron($size, $border-width);

  bottom: 0.15em;
  transform: rotate(135deg);
}

@mixin chevron-down-default {
  @include chevron-down(0.55rem, 0.15rem);

  margin: 0 8px;
}

@mixin chevron-up ($size, $border-width) {
  @include chevron($size, $border-width);

  top: 0.15em;
  transform: rotate(-45deg);
}

@mixin chevron-up-default {
  @include chevron-up(0.55rem, 0.15rem);

  margin: 0 8px;
}

@mixin chevron-left ($size, $border-width) {
  @include chevron($size, $border-width);

  left: 0.25em;
  transform: rotate(-135deg);
}

@mixin chevron-left-default {
  @include chevron-left(0.55rem, 0.15rem);

  margin: 0 8px;
}

// ---------------------------------------------------------------------------

@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);
}