forked from mirrors/hugo-theme-terminal
Merge pull request #1 from newhinton/master
Add ability to center the content via Parameter
This commit is contained in:
@ -63,6 +63,11 @@ paginate = 5
|
||||
themeColor = "orange"
|
||||
# if you set this to 0, only submenu trigger will be visible
|
||||
showMenuItems = 2
|
||||
# center the content on the screen
|
||||
# set theme to full screen width
|
||||
fullWidthTheme = false
|
||||
# center theme with default width
|
||||
centerTheme = false
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
|
@ -7,7 +7,10 @@
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body class="">
|
||||
<div class="container">
|
||||
{{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "container") }}
|
||||
|
||||
<div class="{{- $container -}}">
|
||||
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<div class="content">
|
||||
|
@ -229,15 +229,28 @@ ol ol {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 40px;
|
||||
border-right: 1px solid rgba(255, 255, 255, .1);
|
||||
max-width: 864px;
|
||||
min-height: 100vh;
|
||||
|
||||
@media (--phone) {
|
||||
padding: 20px;
|
||||
}
|
||||
&.full,
|
||||
&.center {
|
||||
border: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
&.full {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user