diff options
author | Vitaly Takmazov | 2019-10-23 14:17:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | 8f9a945990b403ebc673f79be925c0fd3737105c (patch) | |
tree | db30142cde95ac58c626b88380dc74cc3cd03eaa /vnext/src/index.css | |
parent | a2f6029a5161818476e4c3376424330e4829da65 (diff) |
Fixed header
Diffstat (limited to 'vnext/src/index.css')
-rw-r--r-- | vnext/src/index.css | 30 |
1 files changed, 22 insertions, 8 deletions
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 { |