N°2847 - SCSS: Refactor some variables names and some patterns into helpers

This commit is contained in:
Molkobain
2020-07-22 18:10:51 +02:00
parent 46deb9590d
commit 6a3bbd8d49
5 changed files with 44 additions and 33 deletions

View File

@@ -16,11 +16,16 @@
* You should have received a copy of the GNU Affero General Public License
*/
%ibo-centered-content{
%ibo-fully-centered-content{
display: flex;
justify-content: center;
align-items: center;
}
/* Note: This might not be named correctly. The intention is to make an element occupy the full height of its parent and to be centered in it */
%ibo-vertically-centered-content{
display: flex;
align-items: stretch;
}
%ibo-text-truncated-with-ellipsis{
white-space: nowrap;
overflow-x: hidden;
@@ -31,7 +36,7 @@
border-radius: var(--ibo-border-radius-full);
border: 2px solid var(--ibo-color-grey-300);
overflow: hidden;
@extend %ibo-centered-content;
@extend %ibo-fully-centered-content;
> *{
position: absolute;

View File

@@ -56,7 +56,7 @@
}
%ibo-font-ral-nor-300 {
font-size: $ibo-font-size-300;
font-family:" Raleway";
font-family:"Monorale";
font-weight: 400;
}
%ibo-font-ral-nor-350 {
@@ -111,7 +111,7 @@
}
%ibo-font-ral-med-300 {
font-size: $ibo-font-size-300;
font-family:" Raleway";
font-family:"Monorale";
font-weight: 500;
}
%ibo-font-ral-med-350 {