From 8f9a945990b403ebc673f79be925c0fd3737105c Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Wed, 23 Oct 2019 14:17:02 +0300
Subject: Fixed header
---
vnext/src/App.js | 86 +++++++++++++++++++++++++++-------------------------
vnext/src/index.css | 30 +++++++++++++-----
vnext/src/index.html | 10 ++++--
3 files changed, 73 insertions(+), 53 deletions(-)
(limited to 'vnext/src')
diff --git a/vnext/src/App.js b/vnext/src/App.js
index 9a0634ff..f39875c1 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -169,48 +169,50 @@ export default function App() {
}
-
-
- } />
- } />
-
-
- } />
-
-
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
- } />
-
-
- {
- visitor.uid > 0 &&
-
- }
+
+
+
+ } />
+ } />
+
+
+ } />
+
+
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+
+
+ {
+ visitor.uid > 0 &&
+
+ }
+
>
);
diff --git a/vnext/src/index.css b/vnext/src/index.css
index c01d2aae..a371ae55 100644
--- a/vnext/src/index.css
+++ b/vnext/src/index.css
@@ -111,20 +111,30 @@ hr {
}
#app {
+ height: 100%;
+ width: 100%;
+ overflow: hidden;
+}
+
+#wrapper {
display: grid;
- grid-template-areas: "header" "content" "footer";
+ grid-template-areas: "content" "footer";
grid-template-columns: 100%;
- grid-template-rows: auto 1fr auto;
+ grid-template-rows: 1fr auto;
height: 100%;
width: 100%;
+ overflow: hidden;
}
#header {
- grid-area: header;
background: var(--text-background-color);
border-bottom: 1px solid var(--border-color);
transition: transform 0.2s;
+ z-index: 10;
overflow-x: hidden;
+ position: fixed;
+ width: 100%;
+ top: 0;
}
.header--hidden {
@@ -153,8 +163,8 @@ hr {
#content {
grid-area: content;
- margin-top: 12px;
- overflow-y: scroll;
+ margin-top: 64px;
+ overflow: auto;
}
#footer {
@@ -350,9 +360,12 @@ hr {
@media (--viewport-desktop) {
#app {
- grid-template-areas: "header header header header"". footer content .";
+ overflow: initial;
+ }
+ #wrapper {
+ grid-template-areas: ". footer content .";
grid-template-columns: auto 240px 760px auto;
- grid-template-rows: auto 1fr;
+ overflow: initial;
}
#header_wrapper,
.footer_container {
@@ -367,12 +380,13 @@ hr {
}
#content {
margin-bottom: 12px;
+ overflow: initial;
}
#sidebar {
flex-direction: column;
justify-content: initial;
border-top: initial;
- margin-top: 12px;
+ margin-top: 64px;
}
#sidebar a,
.l a {
diff --git a/vnext/src/index.html b/vnext/src/index.html
index 226b89c6..7c408656 100644
--- a/vnext/src/index.html
+++ b/vnext/src/index.html
@@ -1,5 +1,6 @@
+
@@ -26,11 +27,12 @@
+