Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/huyb1991/hugo-lamp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuy Nguyen <huyb.1991@gmail.com>2020-07-01 16:28:09 +0300
committerHuy Nguyen <huyb.1991@gmail.com>2020-07-01 16:28:09 +0300
commitc3d20528ac9d03eaec709297bf6f694fbdc037cf (patch)
tree073ea80a18bd09fffed988f9aa324b368d75ae54
parent5f6d84b32395151ef07d8ece4389f424a95dac03 (diff)
Update grid layout mobile
-rw-r--r--styles/base/_layout.scss23
1 files changed, 7 insertions, 16 deletions
diff --git a/styles/base/_layout.scss b/styles/base/_layout.scss
index 237769c..f1eecec 100644
--- a/styles/base/_layout.scss
+++ b/styles/base/_layout.scss
@@ -3,14 +3,13 @@
grid-gap: $space-normal;
min-height: 100vh;
- // @media screen and (max-width: $phone) {
- // grid-template-rows: $header-height 1fr auto $footer-height;
- // grid-template-areas:
- // "header"
- // "main"
- // "sidebar"
- // "footer";
- // }
+ @media screen and (max-width: $phone) {
+ grid-template-rows: 100px 1fr 90px;
+ grid-template-areas:
+ "header"
+ "main"
+ "footer";
+ }
@media screen and (min-width: $phone) {
grid-template-columns: 320px 1fr;
@@ -32,11 +31,3 @@
.footer {
grid-area: footer;
}
-
-.content {
- grid-area: content;
-}
-
-.sidebar {
- grid-area: sidebar;
-}