From 4e67413c2ce74f63b98400b6473e275f62147b68 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 25 Jul 2015 08:58:22 -0700 Subject: [PATCH] Slightly smaller badges Summary: Drops size about 20%. Ref T8954 Test Plan: Review in timeline, hovercards Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8954 Differential Revision: https://secure.phabricator.com/D13710 --- resources/celerity/map.php | 8 ++++---- webroot/rsrc/css/layout/phabricator-hovercard-view.css | 10 ++++++++++ webroot/rsrc/css/phui/phui-badge.css | 10 +++++----- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index c9f7585f45..5c319ed911 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -117,7 +117,7 @@ return array( 'rsrc/css/font/font-roboto-slab.css' => 'f24a53cb', 'rsrc/css/font/phui-font-icon-base.css' => '3dad2ae3', 'rsrc/css/layout/phabricator-filetree-view.css' => 'fccf9f82', - 'rsrc/css/layout/phabricator-hovercard-view.css' => '1239cd52', + 'rsrc/css/layout/phabricator-hovercard-view.css' => '2ca21170', 'rsrc/css/layout/phabricator-side-menu-view.css' => 'bec2458e', 'rsrc/css/layout/phabricator-source-code-view.css' => '5e0178de', 'rsrc/css/phui/calendar/phui-calendar-day.css' => 'd1cf6f93', @@ -126,7 +126,7 @@ return array( 'rsrc/css/phui/calendar/phui-calendar.css' => 'ccabe893', 'rsrc/css/phui/phui-action-list.css' => 'c5eba19d', 'rsrc/css/phui/phui-action-panel.css' => '3ee9afd5', - 'rsrc/css/phui/phui-badge.css' => 'b6218fa8', + 'rsrc/css/phui/phui-badge.css' => '26db39af', 'rsrc/css/phui/phui-box.css' => 'a5bb366d', 'rsrc/css/phui/phui-button.css' => '16020a60', 'rsrc/css/phui/phui-crumbs-view.css' => 'd842f867', @@ -732,7 +732,7 @@ return array( 'phabricator-filetree-view-css' => 'fccf9f82', 'phabricator-flag-css' => '5337623f', 'phabricator-hovercard' => '14ac66f5', - 'phabricator-hovercard-view-css' => '1239cd52', + 'phabricator-hovercard-view-css' => '2ca21170', 'phabricator-keyboard-shortcut' => '1ae869f2', 'phabricator-keyboard-shortcut-manager' => 'c1700f6f', 'phabricator-main-menu-view' => '2f670a96', @@ -775,7 +775,7 @@ return array( 'phrequent-css' => 'ffc185ad', 'phriction-document-css' => 'd1861e06', 'phui-action-panel-css' => '3ee9afd5', - 'phui-badge-view-css' => 'b6218fa8', + 'phui-badge-view-css' => '26db39af', 'phui-box-css' => 'a5bb366d', 'phui-button-css' => '16020a60', 'phui-calendar-css' => 'ccabe893', diff --git a/webroot/rsrc/css/layout/phabricator-hovercard-view.css b/webroot/rsrc/css/layout/phabricator-hovercard-view.css index 23b3956763..321e281add 100644 --- a/webroot/rsrc/css/layout/phabricator-hovercard-view.css +++ b/webroot/rsrc/css/layout/phabricator-hovercard-view.css @@ -91,6 +91,16 @@ float: left; } +.hovercard-badges .phui-badge-mini { + height: 25px; + width: 25px; + line-height: 24px; +} + +.hovercard-badges .phui-badge-mini .phui-icon-view { + font-size: 12px; +} + .phabricator-hovercard-tail { width: 396px; float: left; diff --git a/webroot/rsrc/css/phui/phui-badge.css b/webroot/rsrc/css/phui/phui-badge.css index e5f04e2707..f613956844 100644 --- a/webroot/rsrc/css/phui/phui-badge.css +++ b/webroot/rsrc/css/phui/phui-badge.css @@ -171,12 +171,12 @@ .phui-badge-mini { background-color: {$greyborder}; border-radius: 18px; - height: 25px; - width: 25px; - line-height: 24px; + height: 20px; + width: 20px; + line-height: 19px; text-align: center; display: inline-block; - opacity: 0.7; + opacity: 0.8; } .phui-badge-mini:hover { @@ -185,7 +185,7 @@ .phui-badge-mini .phui-icon-view { color: #fff; - font-size: 12px; + font-size: 10px; margin: 0; }