From 65e5c15f4df0a4067533ef7878e45ba5f24697fa Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 14 Feb 2021 14:46:26 +0000 Subject: [PATCH] Add sources to writings --- style.css | 18 +++++++++++++----- template-parts/content.php | 28 +++++++++++++++++++--------- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/style.css b/style.css index 8cbf800..5a129a0 100644 --- a/style.css +++ b/style.css @@ -264,21 +264,27 @@ html { article.tile > header { grid-area: tile-details; grid-template-columns: 5px auto 5px; - grid-template-rows: 0 1.2em auto auto; + grid-template-rows: 0 1.3em auto auto; grid-template-areas: ". . ." ". banner ." ". tile-title ." ". tile-subtitle ."; } - article.tile > header > .status-banner { + article.tile > header > .status-banner, + article.tile > header > .source-banner { + padding: 0.3em 1em; grid-area: banner; - width: 80%; - margin: auto; + width: auto; + margin-left: auto; + margin-right: auto; border-radius: 0px 0px 10px 10px; text-align: center; text-decoration: none !important; } + article.tile > header > .source-banner { + background-color: #ebebeb; + } article.tile > header > .status-banner--ongoing { background-color: #cfea6b; } @@ -1232,11 +1238,13 @@ a[href=""] { color: red; } - a { opacity: 0.8; text-decoration: underline !important; } +a.item { + text-decoration: none !important; +} .footnote_plugin_index a { text-decoration: none !important; } diff --git a/template-parts/content.php b/template-parts/content.php index 316e7ee..fe4c37a 100644 --- a/template-parts/content.php +++ b/template-parts/content.php @@ -21,11 +21,12 @@ >
70 ) { + $title_length = strlen( get_the_title() ); + if ( $title_length > 70 ) { $small = 'vsmall'; - } elseif ( strlen( get_the_title() ) > 35 ) { + } elseif ( $title_length > 35 ) { $small = 'small'; - } elseif ( strlen( get_the_title() ) > 12 ) { + } elseif ( $title_length > 12 ) { $small = 'qsmall'; } ?> @@ -36,17 +37,26 @@ ?> + + + + +

- +

- +

- + +