gitlab-org--gitlab-foss/app/assets/stylesheets/framework/images.scss

51 lines
875 B
SCSS
Raw Normal View History

.appearance-logo-preview {
max-width: 400px;
margin-bottom: 20px;
}
.appearance-light-logo-preview {
2016-12-12 17:26:21 -05:00
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%;
}
2017-12-07 10:03:32 -05:00
$image-widths: 250 306 394 430;
2017-12-20 05:24:13 -05:00
@each $width in $image-widths {
&.svg-#{$width} {
img,
svg {
width: #{$width + 'px'};
}
2017-12-07 10:03:32 -05:00
}
}
}
@mixin svg-size($size) {
width: $size;
height: $size;
}
svg {
2017-11-21 15:39:26 -05:00
fill: currentColor;
&.s8 { @include svg-size(8px); }
2017-10-06 18:37:26 -04:00
&.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); }
}