summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/images.scss
blob: df1cafc9f8e82eed31cbe118a5cc84123c215b33 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.appearance-logo-preview {
  max-width: 400px;
  margin-bottom: 20px;
}

.appearance-light-logo-preview {
  background-color: $gray-light;
  max-width: 72px;
  padding: 10px;
  margin-bottom: 10px;
}

.svg-content {
  text-align: center;
  padding: $gl-padding;

  svg,
  img {
    max-width: 425px;
    width: 100%;
  }

  $image-widths: 80 250 306 394 430;
  @each $width in $image-widths {
    &.svg-#{$width} {
      img,
      svg {
        width: #{$width + 'px'};
      }
    }
  }
}

@mixin svg-size($size) {
  width: $size;
  height: $size;
}

svg {
  fill: currentColor;

  &.s8 {
    @include svg-size(8px);
  }

  &.s12 {
    @include svg-size(12px);
  }

  &.s16 {
    @include svg-size(16px);
  }

  &.s18 {
    @include svg-size(18px);
  }

  &.s24 {
    @include svg-size(24px);
  }

  &.s32 {
    @include svg-size(32px);
  }

  &.s48 {
    @include svg-size(48px);
  }

  &.s72 {
    @include svg-size(72px);
  }
}