better support header, talks disable link, external link support

This commit is contained in:
zzossig 2020-02-14 00:31:37 +09:00
parent 510e9d8f16
commit 2e87f32d6e
8 changed files with 31 additions and 11 deletions

View File

@ -27,4 +27,14 @@
@include align-items(center);
@include justify-content(center);
@include flex-direction(column);
}
.px {
padding-left: 1rem;
padding-right: 1rem;
}
.py {
padding-top: 1rem;
padding-bottom: 1rem;
}

View File

@ -234,4 +234,17 @@
}
}
}
&__subtitle {
text-align: center;
font-weight: bold;
font-family: $title-font;
@include themify($themes) {
color: themed('terms-title-color');
}
@media only screen and (max-width:600px) {
margin-bottom: 1rem;
}
}
}

View File

@ -61,13 +61,6 @@
img {
border-radius: 0.25rem;
}
&__contents {
padding: 1rem;
width: 65%;
font-size: 1rem;
text-align: center;
}
.grid-item {
position: relative;

View File

@ -17,6 +17,10 @@
}
}
&__content {
width: 100%;
}
&__list {
@include flexbox();
@include align-items(center);

View File

@ -5,7 +5,7 @@
<h3 class="h3 terms__title">
{{ .Title }}
</h3>
<div>
<div class="px py p2 terms__content">
{{ .Content }}
</div>
</header>

View File

@ -1,7 +1,7 @@
{{ define "main" }}
<header class="header basicflex-column">
<h3 class="terms__title h3">{{ .Title }}</h3>
<div class="gallery__contents">
<div class="px py p2 terms__content">
{{ .Content }}
</div>
</header>

View File

@ -35,7 +35,7 @@
{{ if .Params.disableLink }}
<div class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</div>
{{ else }}
<a href="{{ if .Params.externalLink }}{{ .Params.externalLink }}{{ else }}{{ .Permalink }}{{ end }}" class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a>
<a href="{{ if .Params.externalLink }}{{ .Params.externalLink }}{{ else }}{{ .Permalink }}{{ end }}" target="{{ with .Params.externalLink }}_blank{{ end }}" rel="{{ with .Params.externalLink }}noreferrer{{ end }}" class="talk__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a>
{{ end }}
</li>
{{ end }}