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" . }} {{ partial "head.html" . }}
</head> </head>
<body class=""> <body class="">
{{ if eq $.Site.Params.themeWidth "full" }} {{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "container") }}
<div class="container full">
{{ else }} <div class="{{- $container -}}">
<div class="container half">
{{ end }}
{{ partial "header.html" . }} {{ partial "header.html" . }}

View File

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