Skip to content
Snippets Groups Projects
Commit f378291e authored by alexisben's avatar alexisben
Browse files

hide sidebar when fullscreen

parent 26acc542
No related branches found
No related tags found
No related merge requests found
......@@ -9,12 +9,13 @@
@return #{$remSize}rem
@mixin in-page-with-aside
aside ~ .blocks &
body:not(.full-width) aside ~ .blocks &
@content
@mixin in-page-without-aside
main > .blocks &,
main > article > .blocks &
main > article > .blocks &,
body.full-width &,
@content
@mixin link
......
......@@ -3,20 +3,25 @@
.content-blocks
position: relative
> aside
@include container
pointer-events: none
@include media-breakpoint-up(md)
height: 100%
left: 50%
position: absolute
transform: translateX(-50%)
width: 100%
> div
@include sticky
> *
width: col(4)
pointer-events: auto
> .blocks
.block-content
padding-left: col(4)
body:not(.full-width) &
> aside
@include container
pointer-events: none
@include media-breakpoint-up(md)
height: 100%
left: 50%
position: absolute
transform: translateX(-50%)
width: 100%
> div
@include sticky
> *
width: col(4)
pointer-events: auto
> .blocks
.block-content
padding-left: col(4)
body.full-width &
aside
display: none
......@@ -5,7 +5,7 @@
{{- end -}}
{{- if .Params.full_width -}}
{{- $bodyclass = printf "page-full %s" $bodyclass -}}
{{- $bodyclass = printf "full-width %s" $bodyclass -}}
{{- end -}}
{{- return $bodyclass -}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment