[IMP] website: add "postcard" website layout
Part of https://github.com/odoo/odoo/pull/56427 task-2264627 X-original-commit: d089faca597d26f568b96bdc6069b473115fa6f4
This commit is contained in:
committed by
Xavier-Do
parent
243a07713c
commit
6aebcecda0
@@ -115,6 +115,35 @@ $-seen-urls: ();
|
||||
padding-top: $grid-gutter-width;
|
||||
padding-bottom: $grid-gutter-width * 1.5;
|
||||
}
|
||||
} @else if o-website-value('layout') == 'postcard' {
|
||||
@include media-breakpoint-up(md) {
|
||||
$-border-radius: $border-radius-lg;
|
||||
// Don't know why (browser rounding mistake?) but the inner
|
||||
// border radius must be 1px lower for this to be visually ok
|
||||
// (despite the fact there is no border or any space)
|
||||
$-inner-border-radius: $-border-radius - 0.0625rem;
|
||||
> * {
|
||||
margin-bottom: $spacer * 2;
|
||||
}
|
||||
> header {
|
||||
&, &.o_header_affix {
|
||||
.navbar {
|
||||
@include border-bottom-radius($-border-radius);
|
||||
}
|
||||
}
|
||||
}
|
||||
> main, > footer {
|
||||
@include border-radius($-border-radius);
|
||||
|
||||
.oe_structure > :first-child {
|
||||
@include border-top-radius($-inner-border-radius);
|
||||
}
|
||||
}
|
||||
> main .oe_structure > :last-child,
|
||||
.o_footer_copyright {
|
||||
@include border-bottom-radius($-inner-border-radius);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -895,6 +895,7 @@
|
||||
<we-button data-customize-website-variable="'full'" data-name="layout_full_opt">Full</we-button>
|
||||
<we-button data-customize-website-variable="'boxed'">Boxed</we-button>
|
||||
<we-button data-customize-website-variable="'framed'">Framed</we-button>
|
||||
<we-button data-customize-website-variable="'postcard'">Postcard</we-button>
|
||||
</we-select>
|
||||
<we-row string="⌙ Background" data-no-preview="true">
|
||||
<we-colorpicker data-dependencies="!layout_full_opt"
|
||||
|
||||
Reference in New Issue
Block a user