Skip to content

Commit 46c5cc1

Browse files
committed
MC-2371: Implement full width layout for CMS pages
- Add new specific page layout for CMS pages - Set max width 100% with CSS
1 parent 0cd7912 commit 46c5cc1

File tree

7 files changed

+35
-46
lines changed

7 files changed

+35
-46
lines changed

app/code/Magento/PageBuilder/view/frontend/layout/cms_page_view.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

app/code/Magento/PageBuilder/view/frontend/layouts.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
*/
77
-->
88
<page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
9-
<layout id="fullwidth">
10-
<label translate="true">Full Width</label>
9+
<layout id="cms_full_width">
10+
<label translate="true">CMS - Full Width</label>
11+
</layout>
1112
</layout>
1213
</page_layouts>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
9+
<update handle="1column" />
10+
</layout>

app/code/Magento/PageBuilder/view/frontend/page_layout/fullwidth.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/code/Magento/PageBuilder/view/frontend/web/css/source/_module.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@
5252
display: none !important;
5353
}
5454
}
55+
56+
//
57+
// Page Layouts
58+
// _____________________________________________
59+
60+
@import 'layouts/_import.less';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
.page-layout-cms_full_width .page-main {
7+
max-width: 100%;
8+
padding-left: 0;
9+
padding-right: 0;
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
@import '_cms.less';

0 commit comments

Comments
 (0)