Welcome to mirror list, hosted at ThFree Co, Russian Federation.

images.scss « framework « stylesheets « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0fae1c7d235b4db528a89c6bac7d89f482e317c2 (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
.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 130 150 225 250 306 394 430;
  @each $width in $image-widths {
    &.svg-#{$width} {
      img,
      svg {
        max-width: #{$width + 'px'};
      }
    }
  }
}

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

svg {
  fill: currentColor;
}

.square,
svg {
  $svg-sizes: 8 10 12 14 16 18 24 32 48 72;
  @each $svg-size in $svg-sizes {
    &.s#{$svg-size} {
      @include svg-size(#{$svg-size}px);
    }
  }
}