debian-mirror-gitlab/app/assets/stylesheets/framework/images.scss

49 lines
733 B
SCSS
Raw Normal View History

2016-04-02 18:10:28 +05:30
.appearance-logo-preview {
max-width: 400px;
margin-bottom: 20px;
}
.appearance-light-logo-preview {
2017-08-17 22:00:37 +05:30
background-color: $gray-light;
2016-04-02 18:10:28 +05:30
max-width: 72px;
padding: 10px;
margin-bottom: 10px;
}
2018-03-17 18:26:18 +05:30
.svg-content {
text-align: center;
padding: $gl-padding;
svg,
img {
max-width: 425px;
width: 100%;
}
2018-05-09 12:01:36 +05:30
$image-widths: 80 130 250 306 394 430;
2018-03-17 18:26:18 +05:30
@each $width in $image-widths {
&.svg-#{$width} {
img,
svg {
width: #{$width + 'px'};
}
}
}
}
@mixin svg-size($size) {
width: $size;
height: $size;
}
svg {
fill: currentColor;
2018-10-15 14:42:47 +05:30
$svg-sizes: 8 12 16 18 24 32 48 72;
@each $svg-size in $svg-sizes {
&.s#{$svg-size} {
@include svg-size(#{$svg-size}px);
}
2018-05-09 12:01:36 +05:30
}
2018-03-17 18:26:18 +05:30
}