mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-16 12:10:28 +03:00
Refector sass
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
85c3240b54
commit
ce9f140ddf
46 changed files with 407 additions and 703 deletions
26
src/app/partials/_dir.scss
Normal file
26
src/app/partials/_dir.scss
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* NOTICE: only use this
|
||||
* when sides are un-even
|
||||
* if they are even just use $property: 0 $spacing;
|
||||
*/
|
||||
|
||||
@mixin side($property, $left, $right) {
|
||||
#{$property}: {
|
||||
left: $left;
|
||||
right: $right;
|
||||
};
|
||||
|
||||
[dir=rtl] & {
|
||||
#{$property}: {
|
||||
left: $right;
|
||||
right: $left;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@mixin prop($property, $ltr, $rtl) {
|
||||
#{$property}: $ltr;
|
||||
[dir=rtl] & {
|
||||
#{$property}: $rtl;
|
||||
}
|
||||
}
|
||||
58
src/app/partials/_flex.scss
Normal file
58
src/app/partials/_flex.scss
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
._s-c {
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
._c-c {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
._e-c {
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.cp-fx__row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.cp-fx__column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.cp-fx__row--s-c {
|
||||
@extend .cp-fx__row;
|
||||
@extend ._s-c;
|
||||
}
|
||||
|
||||
.cp-fx__row--c-c {
|
||||
@extend .cp-fx__row;
|
||||
@extend ._c-c;
|
||||
}
|
||||
|
||||
.cp-fx__row--e-c {
|
||||
@extend .cp-fx__row;
|
||||
@extend ._e-c;
|
||||
}
|
||||
|
||||
.cp-fx__column--s-c {
|
||||
@extend .cp-fx__column;
|
||||
@extend ._s-c;
|
||||
}
|
||||
|
||||
.cp-fx__column--c-c {
|
||||
@extend .cp-fx__column;
|
||||
@extend ._c-c;
|
||||
}
|
||||
|
||||
.cp-fx__column--e-c {
|
||||
@extend .cp-fx__column;
|
||||
@extend ._e-c;
|
||||
}
|
||||
|
||||
.cp-fx__item-one {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
5
src/app/partials/_text.scss
Normal file
5
src/app/partials/_text.scss
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.cp-txt__ellipsis {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue