diff --git a/less/core/component.less b/less/core/component.less index d874c14f..749b3a11 100644 --- a/less/core/component.less +++ b/less/core/component.less @@ -1,4 +1,17 @@ .component { + position: relative; + + &.has-bg-image > .background { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + background-repeat: no-repeat; + background-size: cover; + background-position: center top; + } + &__container { flex-direction: unset; margin-left: -@component-padding-hoz; @@ -6,6 +19,7 @@ } &__inner { + position: relative; padding: @component-padding-ver @component-padding-hoz; }