mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 23:25:13 +00:00
Implement hiding messages component
This commit is contained in:
@ -93,6 +93,17 @@ $layouts: (
|
||||
}
|
||||
}
|
||||
|
||||
@mixin hide-component() {
|
||||
// We need to make sure the DOM element is displayed but not visible
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
z-index: -10000000;
|
||||
}
|
||||
|
||||
.hide-attribute {
|
||||
@include hide-component();
|
||||
}
|
||||
|
||||
@function get-layout($layouts-key){
|
||||
@return map_get($layouts, $layouts-key);
|
||||
}
|
||||
@ -103,10 +114,7 @@ $layouts: (
|
||||
@each $k, $v in $map {
|
||||
#{$sel}#{$k} {
|
||||
@if (length($v) == 0) {
|
||||
// We need to make sure the DOM element is displayed but not visible
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
z-index: -10000000;
|
||||
@include hide-component();
|
||||
}
|
||||
@else {
|
||||
grid-column-start: nth($v, 1);
|
||||
|
Reference in New Issue
Block a user