Fix styling for LinkedIn logo; Add support for loading logos from URLs
Project: http://git-wip-us.apache.org/repos/asf/samza/repo Commit: http://git-wip-us.apache.org/repos/asf/samza/commit/937d1de8 Tree: http://git-wip-us.apache.org/repos/asf/samza/tree/937d1de8 Diff: http://git-wip-us.apache.org/repos/asf/samza/diff/937d1de8 Branch: refs/heads/master Commit: 937d1de845e838da8ea7b222ad745a1a2fe65a29 Parents: ce52acf Author: Jagadish <jvenkatra...@linkedin.com> Authored: Sun Oct 21 11:48:09 2018 -0700 Committer: Jagadish <jvenkatra...@linkedin.com> Committed: Sun Oct 21 11:48:09 2018 -0700 ---------------------------------------------------------------------- docs/_case-studies/linkedin.md | 1 + docs/_layouts/default.html | 4 ++++ docs/css/main.new.css | 4 ---- 3 files changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/samza/blob/937d1de8/docs/_case-studies/linkedin.md ---------------------------------------------------------------------- diff --git a/docs/_case-studies/linkedin.md b/docs/_case-studies/linkedin.md index 66e4108..f4dfe6b 100644 --- a/docs/_case-studies/linkedin.md +++ b/docs/_case-studies/linkedin.md @@ -5,6 +5,7 @@ title: Air Traffic Controller with Samza at LinkedIn study_domain: linkedin.com # just the domain, not the protocol priority: 4 menu_title: LinkedIn # what shows up in the menu +logo_url: https://upload.wikimedia.org/wikipedia/commons/c/ca/LinkedIn_logo_initials.png excerpt_separator: <!--more--> --- <!-- http://git-wip-us.apache.org/repos/asf/samza/blob/937d1de8/docs/_layouts/default.html ---------------------------------------------------------------------- diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 6c7d0c8..a3fa44b 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -206,7 +206,11 @@ <div class="section__item"> <a class="section__item-logo" href="{{ study.url }}" title="{{ study.menu_title }}"> + {% if study.logo_url %} + <div class="section__item-logo-bg" style="background-image: url('{{ study.logo_url }}');"></div> + {% else %} <div class="section__item-logo-bg" style="background-image: url('https://logo.clearbit.com/{{ study.study_domain}}?size=256');"></div> + {% endif %} </a> </div> http://git-wip-us.apache.org/repos/asf/samza/blob/937d1de8/docs/css/main.new.css ---------------------------------------------------------------------- diff --git a/docs/css/main.new.css b/docs/css/main.new.css index 468e10e..035fc7c 100644 --- a/docs/css/main.new.css +++ b/docs/css/main.new.css @@ -741,10 +741,6 @@ footer .side-by-side > * { border-radius: 4px; } -.section__item-logo-bg { - border-radius: 100%; -} - .is-selected .section__item-logo-bg, .section--brands .section__item:hover .section__item-logo-bg { border-radius: 4px;