aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/modals/tooltip/tooltip.module.scss
blob: 8e6f8778e3575b8c9d4910c5855a3f14b1c76330 (plain)
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
@use "../../../../styles/abstracts/functions" as fun;
@use "../../../../styles/abstracts/mixins" as mix;
@use "../../../../styles/abstracts/variables" as var;

.btn {
  margin-right: var(--spacing-xs);
}

.tooltip {
  position: absolute;
  z-index: 10;
  font-size: var(--font-size-sm);
  transition: all 0.75s ease-in-out 0s;

  @media screen and (max-height: #{var.get-breakpoint("2xs")}) {
    width: calc(97.5vw - var(--spacing-md));
    right: 0;
  }

  &--down {
    top: calc(100% + var(--spacing-xs));
    transform-origin: top;
  }

  &--up {
    bottom: calc(100% + var(--spacing-2xs));
    transform-origin: bottom;
  }

  &--hidden {
    flex: 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
  }

  &--visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
}

.heading {
  font-size: var(--font-size-sm);
}