/
home
/
techb158
/
immovalet.com
/
platform
/
core
/
media
/
resources
/
assets
/
sass
/
mixins
/
/home/techb158/immovalet.com/platform/core/media/resources/assets/sass/mixins
mkdir
upload
Name
Size
Mode
Actions
_layout.scss
1118
0644
edit
dl
rm
_mixins.scss
54
0644
edit
dl
rm
_shape.scss
1096
0644
edit
dl
rm
_support.scss
1040
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/platform/core/media/resources/assets/sass/mixins/_layout.scss
(1118B)
@mixin center-x($_position: absolute) { display: inline-block; position: $_position; left: 50%; @include lib-css(transform, translateX(-50%), 1); } @mixin center-y($_position: absolute) { display: inline-block; position: $_position; top: 50%; @include lib-css(transform, translateY(-50%), 1); } @mixin center-all($_position: absolute) { display: inline-block; position: $_position; top: 50%; left: 50%; @include lib-css(transform, translate(-50%, -50%), 1); } /* | | When you have a container with fixed width | and you want the background of this container | is full | */ @mixin full-bg($_background-color: inherit) { position: relative; &:before { content: ''; display: block; position: absolute; width: 1000%; left: 50%; margin-left: -500%; height: 100%; background-color: $_background-color; z-index: 0; } > * { position: relative; } } @mixin clearfix() { &:before, &:after { content: ''; display: table; clear: both; } }
Save
cmd:
run