Skip to content

Commit 95baffa

Browse files
committed
refactor: update layout
1 parent c8421d8 commit 95baffa

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/pug/_layout/default.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ html(lang='en')
99
block styles
1010
body.bg-light
1111
include ../_partials/sidebar.pug
12-
.wrapper.d-flex.flex-column.min-vh-100(data-coreui-reliant="sidebar")
12+
.wrapper.d-flex.flex-column.min-vh-100
1313
include ../_partials/header.pug
1414
.body.flex-grow-1.px-3
1515
.container-lg

src/scss/_layout.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.wrapper {
2+
width: 100%;
3+
padding-left: var(--cui-sidebar-occupy, 0);
4+
transform: translateZ(0);
5+
will-change: auto;
6+
@include transition(padding .15s);
7+
}

src/scss/style.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Import styles
55
@import "@coreui/coreui/scss/coreui";
66

7-
// If you want to add something do it here
8-
@import "custom";
7+
@import "layout";
98

9+
// If you want to add custom CSS you can put it here.
10+
@import "custom";

0 commit comments

Comments
 (0)