Skip to content

A platform for community discussion. Free, open, simple.

SCSS refactoring

Penar Musaraj5b6c1b1670a9
diff --git a/app/assets/stylesheets/common/base/group.scss b/app/assets/stylesheets/common/base/group.scss
index 9c2e433469e..900347282ae 100644
--- a/app/assets/stylesheets/common/base/group.scss
+++ b/app/assets/stylesheets/common/base/group.scss
@@ -48,6 +48,7 @@
}
$size: 50px;
+ $icon-size: $size / 1.8;
.avatar-flair-image {
width: $size;
@@ -63,8 +64,8 @@
justify-content: center;
.d-icon {
- height: $size / 1.8;
- width: $size / 1.8;
+ height: $icon-size;
+ width: $icon-size;
}
}
}
diff --git a/app/assets/stylesheets/common/base/groups.scss b/app/assets/stylesheets/common/base/groups.scss
index e02e91906e4..373b8bf44ba 100644
--- a/app/assets/stylesheets/common/base/groups.scss
+++ b/app/assets/stylesheets/common/base/groups.scss
@@ -218,6 +218,7 @@
}
$size: 40px;
+ $icon-size: $size / 1.8;
.avatar-flair {
background-size: $size;
@@ -229,8 +230,8 @@
justify-content: center;
.d-icon {
- height: $size / 1.8;
- width: $size / 1.8;
+ height: $icon-size;
+ width: $icon-size;
}
}