style: offset main content anchor by header height

This commit is contained in:
Sarah Vaupel 2019-12-19 14:09:30 +01:00
parent 3cb3dcdc9b
commit b3fb9ceb6a
2 changed files with 15 additions and 8 deletions

View File

@ -157,12 +157,19 @@ h4
position: relative
.main__content
--current-header-height: var(--header-height-collapsed)
position: relative
background-color: white
transition: padding-left .2s ease-out
margin-top: var(--header-height-collapsed)
margin-top: var(--current-header-height)
margin-left: 0
:target::before
content: ""
display: block
height: var(--current-header-height)
margin: calc(-1 * var(--current-header-height)) 0 0
> .container
margin: 20px 0
@ -185,8 +192,8 @@ h4
@media (min-width: 769px)
.main__content
--current-header-height: var(--header-height)
margin-left: var(--asidenav-width-lg, 20%)
margin-top: var(--header-height)
@media (min-width: 1200px)
.main__content

View File

@ -10,13 +10,13 @@ packages:
sha256: 88537113b855381b8d70da2442ae644dc979ad6b32aaaec2ebf55306764c8f1a
name: encoding
version: 0.8.2
git: https://github.com/uni2work/encoding.git
git: git@gitlab2.rz.ifi.lmu.de:uni2work/encoding.git
pantry-tree:
size: 5668
sha256: 57160d758802aba6a0d2cc88c53f2f0bb60df7d5e6822938351618b7eca0beab
commit: 67bb87ceff53f0178c988dd4e15eeb2daee92b84
original:
git: https://github.com/uni2work/encoding.git
git: git@gitlab2.rz.ifi.lmu.de:uni2work/encoding.git
commit: 67bb87ceff53f0178c988dd4e15eeb2daee92b84
- completed:
cabal-file:
@ -24,13 +24,13 @@ packages:
sha256: 7b25a0ef819e8a01b485d6d0865baa3445faa826ffb3876c94109dd2469ffbd3
name: memcached-binary
version: 0.2.0
git: https://github.com/uni2work/memcached-binary.git
git: git@gitlab2.rz.ifi.lmu.de:uni2work/memcached-binary.git
pantry-tree:
size: 1170
sha256: c466f91129410bae1f53e25aec4026f6984ce2dff0ada4516e2548048aba549a
commit: b5461747e7be226d3b67daebc3c9aefe8a4490ad
original:
git: https://github.com/uni2work/memcached-binary.git
git: git@gitlab2.rz.ifi.lmu.de:uni2work/memcached-binary.git
commit: b5461747e7be226d3b67daebc3c9aefe8a4490ad
- completed:
cabal-file:
@ -38,13 +38,13 @@ packages:
sha256: 49818ee0de2d55cbfbc15ca4de1761c3adac6ba3dfcdda960b413cad4f4fa47f
name: conduit-resumablesink
version: '0.3'
git: https://github.com/uni2work/conduit-resumablesink.git
git: git@gitlab2.rz.ifi.lmu.de:uni2work/conduit-resumablesink.git
pantry-tree:
size: 394
sha256: 0cccf4684bbd84f81d2d3d53dd81c46cb103b5322f1d8e89e9b222211281e1b7
commit: cbea6159c2975d42f948525e03e12fc390da53c5
original:
git: https://github.com/uni2work/conduit-resumablesink.git
git: git@gitlab2.rz.ifi.lmu.de:uni2work/conduit-resumablesink.git
commit: cbea6159c2975d42f948525e03e12fc390da53c5
- completed:
hackage: zip-stream-0.2.0.1@sha256:78cd3244efbfba99184d17f5923980282f7d1b8f6d71c6e8af14e516e4239691,1742