aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/images/responsive-image.module.scss
blob: 3566421a2d12a846fbd15d1dfca2f907a9f51282 (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
47
48
49
50
51
52
@use "@styles/abstracts/functions" as fun;

.wrapper {
  display: flex;
  flex-flow: column;
  width: 100%;
  max-width: max-content;
  margin: 0;
  position: relative;
  text-align: center;
}

.caption {
  margin: 0;
  padding: fun.convert-px(4) var(--spacing-2xs);
  background: var(--color-bg-secondary);
  border: fun.convert-px(1) solid var(--color-border);
  box-shadow: 0 fun.convert-px(-1) fun.convert-px(1) fun.convert-px(1)
    var(--color-shadow-light);
  font-weight: 500;
}

.link {
  display: flex;
  flex-flow: column;
  background: none;
  text-decoration: none;

  .caption {
    color: var(--color-primary-darker);
  }

  &:hover,
  &:focus {
    transform: scale(1.1);
  }

  &:focus {
    .caption {
      text-decoration: underline solid var(--color-primary-darker)
        fun.convert-px(3);
    }
  }

  &:active {
    transform: scale(0.9);

    .caption {
      text-decoration: none;
    }
  }
}