Center main content

This commit is contained in:
Tuan Cao 2022-03-16 17:38:50 +07:00
parent 7607695970
commit 70958a0c2b

View File

@ -278,14 +278,14 @@ main.parent-main {
@media screen and (min-width: 767px) { @media screen and (min-width: 767px) {
.sidebar {left: 0 !important;} .sidebar {left: 0 !important;}
.main {width: calc(100% - 250px); } .main {width: calc(100% ); }
} }
/* /*
*/ */
@media screen and (min-width: 991px) { @media screen and (min-width: 991px) {
.parent-main {width: calc(100% - 250px); padding-left: 16vw !important; padding-right: 4vw;} .parent-main {width: calc(100% ); padding-left: 20vw !important; padding-right: 20vw;}
} }
@media screen and (max-width: 767px) { @media screen and (max-width: 767px) {
.sidebar { .sidebar {
position: fixed; position: fixed;
top:0; top:0;
@ -294,7 +294,7 @@ main.parent-main {
box-shadow: 3px 3px 8px -2px rgba(0, 0, 0, 0.3); box-shadow: 3px 3px 8px -2px rgba(0, 0, 0, 0.3);
padding-top:96px; padding-top:96px;
} }
/* /*
.parent-main {max-width: calc(100% - 32px);} .parent-main {max-width: calc(100% - 32px);}
*/ */
.main { .main {