aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets/image-widget.module.scss
blob: 2174d5b25c9aa9d3eb558d0051112a665b950c2d (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
@use "../../../styles/abstracts/functions" as fun;

.figure {
  --scale-up: 1.02;
  --scale-down: 0.98;

  margin: 0;
  padding: fun.convert-px(5);
  border: fun.convert-px(1) solid var(--color-border);
}

.txt {
  padding: var(--spacing-sm);
}

.widget {
  &--left {
    .figure {
      margin-right: auto;
    }

    .txt {
      text-align: left;
    }
  }

  &--center {
    .figure {
      margin-left: auto;
      margin-right: auto;
    }

    .txt {
      text-align: center;
    }
  }

  &--right {
    .figure {
      margin-left: auto;
    }

    .txt {
      text-align: right;
    }
  }
}