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

52 lines
764 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%;
}
2020-04-08 14:13:33 +05:30
$image-widths: 80 130 150 250 306 394 430;
2018-03-17 18:26:18 +05:30
@each $width in $image-widths {
&.svg-#{$width} {
img,
svg {
2018-11-20 20:47:30 +05:30
max-width: #{$width + 'px'};
2018-03-17 18:26:18 +05:30
}
}
}
}
@mixin svg-size($size) {
width: $size;
height: $size;
}
svg {
fill: currentColor;
2019-03-02 22:35:43 +05:30
}
2018-03-17 18:26:18 +05:30
2019-03-02 22:35:43 +05:30
.square,
svg {
2018-12-13 13:39:08 +05:30
$svg-sizes: 8 10 12 14 16 18 24 32 48 72;
2018-10-15 14:42:47 +05:30
@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
}