From a62c6bf01f7703cea4f1a310eac30b5bafbd97f7 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 3 Mar 2019 22:09:00 +0000 Subject: [PATCH] style: don't color authors as links in Pages widget with Cite view Authors are still clickable but colored the same as the rest of the entry. Only the publication title link is colored as a normal link. See #950 --- exampleSite/content/home/hero.md | 2 +- layouts/partials/css/academic.css | 13 +++++++++++++ layouts/partials/li_citation.html | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/exampleSite/content/home/hero.md b/exampleSite/content/home/hero.md index 87a8d81b..ee52ad21 100644 --- a/exampleSite/content/home/hero.md +++ b/exampleSite/content/home/hero.md @@ -33,7 +33,7 @@ hero_media = "hero-academic.png" # Display link(s) by specifying a URL and label below. Icon is optional for `[cta]`. # Remove a link/note by deleting a cta/note block. [cta] - url = "post/getting-started/" + url = "https://sourcethemes.com/academic/docs/install/" label = "Get Started" icon_pack = "fas" icon = "download" diff --git a/layouts/partials/css/academic.css b/layouts/partials/css/academic.css index 90e20295..e6cc1f7e 100644 --- a/layouts/partials/css/academic.css +++ b/layouts/partials/css/academic.css @@ -1218,6 +1218,19 @@ article .article-metadata { overflow: hidden; } +.li-cite-author { + font-size: 1em; + color: inherit; +} + +.li-cite-author a { + color: inherit; +} + +.dark .li-cite-author a { + color: rgb(248, 248, 242); +} + /************************************************* * Experience **************************************************/ diff --git a/layouts/partials/li_citation.html b/layouts/partials/li_citation.html index b33b0d0a..5001f330 100644 --- a/layouts/partials/li_citation.html +++ b/layouts/partials/li_citation.html @@ -4,7 +4,7 @@ {{/* APA Style */}} {{ if eq ($.Site.Params.publications.citation_style | default "apa") "apa" }} -