aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/sass/include/_icons.scss
blob: 5d8a312db7a57fee286aab5104df8cafbf26f9db (plain) (tree)

























































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