From 431ca4aac322edd506d4d0b4fe518bff1e757796 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 17 Jun 2016 17:37:37 -0700 Subject: [PATCH] Reduce crumbs UI in Phame live views Summary: Makes the crumbs background and border disappear in the live view of Phame. Test Plan: Go live, see no crumb bg. Test blog, post, mobile, desktop. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16146 --- resources/celerity/map.php | 4 ++-- src/applications/phame/controller/PhameLiveController.php | 1 + webroot/rsrc/css/application/phame/phame.css | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 78752ff381..90183aaf6e 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -81,7 +81,7 @@ return array( 'rsrc/css/application/owners/owners-path-editor.css' => '2f00933b', 'rsrc/css/application/paste/paste.css' => '1898e534', 'rsrc/css/application/people/people-profile.css' => '2473d929', - 'rsrc/css/application/phame/phame.css' => '4748d928', + 'rsrc/css/application/phame/phame.css' => 'bf6a743f', 'rsrc/css/application/pholio/pholio-edit.css' => '07676f51', 'rsrc/css/application/pholio/pholio-inline-comments.css' => '8e545e49', 'rsrc/css/application/pholio/pholio.css' => 'ca89d380', @@ -808,7 +808,7 @@ return array( 'phabricator-uiexample-reactor-sendclass' => '1def2711', 'phabricator-uiexample-reactor-sendproperties' => 'b1f0ccee', 'phabricator-zindex-css' => '5b6fcf3f', - 'phame-css' => '4748d928', + 'phame-css' => 'bf6a743f', 'pholio-css' => 'ca89d380', 'pholio-edit-css' => '07676f51', 'pholio-inline-comments-css' => '8e545e49', diff --git a/src/applications/phame/controller/PhameLiveController.php b/src/applications/phame/controller/PhameLiveController.php index 7317409a28..3fd9f64600 100644 --- a/src/applications/phame/controller/PhameLiveController.php +++ b/src/applications/phame/controller/PhameLiveController.php @@ -212,6 +212,7 @@ abstract class PhameLiveController extends PhameController { if ($this->getIsLive()) { $page + ->addClass('phame-live-view') ->setShowChrome(false) ->setShowFooter(false); } diff --git a/webroot/rsrc/css/application/phame/phame.css b/webroot/rsrc/css/application/phame/phame.css index e6a928b61f..eca45b7741 100644 --- a/webroot/rsrc/css/application/phame/phame.css +++ b/webroot/rsrc/css/application/phame/phame.css @@ -251,6 +251,13 @@ background: {$greybackground}; } +/* Blog Chrome */ +.phame-live-view .phui-crumbs-view { + background: #fff; + border: none; + padding-left: 8px; +} + /* Hero Image */ .phame-header-hero { background-color: #fff;