From 907f4f4f3e78f3977df11241c05662c1138c1805 Mon Sep 17 00:00:00 2001 From: Dan Head Date: Sun, 9 Dec 2018 16:55:22 +0000 Subject: [PATCH] Add logged in edit link --- css/article.css | 4 ++ css/metadata.css | 16 ++++-- theme/icons.php | 99 ++++++++----------------------------- theme/partials/metadata.php | 12 +++++ 4 files changed, 49 insertions(+), 82 deletions(-) diff --git a/css/article.css b/css/article.css index 77f5543..bb6ff11 100644 --- a/css/article.css +++ b/css/article.css @@ -109,6 +109,10 @@ text-align: center; } +.article .wp-caption a { + display: inline-block; +} + .article .wp-caption a:after { display: none; } diff --git a/css/metadata.css b/css/metadata.css index 2fa81c1..2c1e168 100644 --- a/css/metadata.css +++ b/css/metadata.css @@ -28,12 +28,14 @@ .metadata__comments, .metadata__categories, +.metadata__editor, .metadata__share { margin-bottom: var(--space-sm); } .metadata__comments-text, .metadata__categories-text, +.metadata__editor-text, .metadata__date-text { line-height: 2.3; margin-left: 10px; @@ -60,12 +62,14 @@ */ .metadata__comments-text, -.metadata__categories-link { +.metadata__categories-link, +.metadata__editor-text { position: relative; } .metadata__comments-text:after, -.metadata__categories-link:after { +.metadata__categories-link:after, +.metadata__editor-text:after { background-color: var(--color-light-blue); bottom: -1px; content: ''; @@ -80,13 +84,17 @@ .metadata__comments-link:focus, .metadata__comments-link:hover, .metadata__categories-link:focus, -.metadata__categories-link:hover { +.metadata__categories-link:hover, +.metadata__editor-link:focus, +.metadata__editor-link:hover { color: var(--color-light-blue); } .metadata__comments-link:focus .metadata__comments-text:after, .metadata__comments-link:hover .metadata__comments-text:after, .metadata__categories-link:focus:after, -.metadata__categories-link:hover:after { +.metadata__categories-link:hover:after, +.metadata__editor-link:focus .metadata__editor-text:after, +.metadata__editor-link:hover .metadata__editor-text:after { opacity: 1; } diff --git a/theme/icons.php b/theme/icons.php index 3c9fda3..976077a 100644 --- a/theme/icons.php +++ b/theme/icons.php @@ -1,80 +1,23 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/theme/partials/metadata.php b/theme/partials/metadata.php index cd5fd5f..50e7b55 100644 --- a/theme/partials/metadata.php +++ b/theme/partials/metadata.php @@ -7,6 +7,18 @@ + +
+ +
+