Updated CSS and refined width-logic

This commit is contained in:
Felix Nüsse 2019-02-26 09:30:10 +01:00
parent 7cb7fc284c
commit 88ed5a0bef
No known key found for this signature in database
GPG Key ID: 2089A3431243E819
2 changed files with 14 additions and 11 deletions

View File

@ -7,11 +7,9 @@
{{ partial "head.html" . }}
</head>
<body class="">
{{ if eq $.Site.Params.themeWidth "full" }}
<div class="container full">
{{ else }}
<div class="container half">
{{ end }}
{{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "container") }}
<div class="{{- $container -}}">
{{ partial "header.html" . }}

View File

@ -228,14 +228,19 @@ ol ol {
@media (--phone) {
padding: 20px;
}
&.full,
&.center {
border: none;
margin: 0 auto;
}
&.full {
max-width: 100%;
}
}
.full {
border-right: none;
margin: auto;
}
.half {border-right: 1px solid rgba(255, 255, 255, .1);}