better support header, talks disable link, external link support
This commit is contained in:
parent
510e9d8f16
commit
2e87f32d6e
|
@ -28,3 +28,13 @@
|
|||
@include justify-content(center);
|
||||
@include flex-direction(column);
|
||||
}
|
||||
|
||||
.px {
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.py {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -62,13 +62,6 @@
|
|||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
&__contents {
|
||||
padding: 1rem;
|
||||
width: 65%;
|
||||
font-size: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
position: relative;
|
||||
opacity: 1;
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
&__content {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__list {
|
||||
@include flexbox();
|
||||
@include align-items(center);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@
|
|||
<h3 class="h3 terms__title">
|
||||
{{ .Title }}
|
||||
</h3>
|
||||
<div>
|
||||
<div class="px py p2 terms__content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue