diff --git a/css/metadata.css b/css/metadata.css index 1cb1529..25b3280 100644 --- a/css/metadata.css +++ b/css/metadata.css @@ -7,6 +7,8 @@ } .metadata__item { + display: flex; + align-items: center; margin: 0 var(--space-sm) var(--space-sm) 0; } @@ -41,8 +43,8 @@ .metadata__text { margin-left: 10px; text-transform: capitalize; - vertical-align: middle; transition: box-shadow var(--transition-md) ease-out; + vertical-align: middle; } .metadata__link { @@ -71,61 +73,3 @@ color: var(--color-light-blue); box-shadow: var(--link-focus); } - -.metadata__share-link { - display: inline-block; - margin-right: var(--space-sm); - transition: - filter var(--transition-fs) ease-out, - transform var(--transition-fs) ease-out; - transform-origin: center bottom; -} - -.metadata__share-link:focus, -.metadata__share-link:hover { - filter: saturate(1.5) contrast(1.5); - transform: scale(1.1); -} - -/** - * Link styles - * - -.metadata__comments-text, -.metadata__categories-link, -.metadata__editor-text { - position: relative; -} - -.metadata__comments-text:after, -.metadata__categories-link:after, -.metadata__editor-text:after { - background-color: var(--color-light-blue); - bottom: -1px; - content: ''; - left: 0; - height: 2px; - opacity: 0; - position: absolute; - right: 0; - transition: opacity var(--transition-md) ease-out; -} - -.metadata__comments-link:focus, -.metadata__comments-link:hover, -.metadata__categories-link:focus, -.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__editor-link:focus .metadata__editor-text:after, -.metadata__editor-link:hover .metadata__editor-text:after { - opacity: 1; -} -*/ diff --git a/theme/footer.php b/theme/footer.php index c2df8a5..a32fcac 100644 --- a/theme/footer.php +++ b/theme/footer.php @@ -5,4 +5,29 @@ if ($deploy_timestamp) { $js_url .= '?t=' . $deploy_timestamp; } ?> +
+ + diff --git a/theme/functions.php b/theme/functions.php index 951b0fb..45e5486 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -69,11 +69,11 @@ function windycoys_the_tags() { } } -function windycoys_share_twitter_url() { +function windycoys_get_twitter_share_url() { $url = 'https://twitter.com/intent/tweet?text='; $title = get_the_title(); $link = get_the_permalink(); - echo $url . urlencode($title . ': ' . $link . ' by @WindyCOYS'); + return $url . urlencode($title . ' : ' . $link); } function windycoys_search_posts_per_page($query) { diff --git a/theme/header.php b/theme/header.php index 252f16f..9cf624a 100644 --- a/theme/header.php +++ b/theme/header.php @@ -14,13 +14,18 @@ $manifest = get_template_directory_uri() . '/manifest.json'; + "/> + + "/> + + + + + -
- -
diff --git a/theme/partials/footer.php b/theme/partials/footer.php index 4e077ce..d20d6a1 100644 --- a/theme/partials/footer.php +++ b/theme/partials/footer.php @@ -7,5 +7,6 @@ As featured on NewsNow: Tottenham Hotspur news + diff --git a/theme/partials/metadata.php b/theme/partials/metadata.php index a2315b0..0a40dc6 100644 --- a/theme/partials/metadata.php +++ b/theme/partials/metadata.php @@ -46,15 +46,29 @@
- - - - - +
+ Share + +
+
+
+ + Tweet