From 511c619486664b07dfb8a16a80f6334ae4758995 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 21 Feb 2015 06:39:36 -0800 Subject: [PATCH] Make Remarkup Notes not have margin as first or last child Summary: When a NOTE is at the top or bottom of a document, there is extra unwanted space. Test Plan: Write a NOTE as the top of a Phriction document {F311233} Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11846 --- resources/celerity/map.php | 6 +++--- webroot/rsrc/css/core/remarkup.css | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 63243995c9..60027427d1 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -7,7 +7,7 @@ */ return array( 'names' => array( - 'core.pkg.css' => 'd31eec13', + 'core.pkg.css' => '44adcc42', 'core.pkg.js' => '23d653bb', 'darkconsole.pkg.js' => '8ab24e01', 'differential.pkg.css' => '380f07e5', @@ -105,7 +105,7 @@ return array( 'rsrc/css/application/tokens/tokens.css' => '3d0f239e', 'rsrc/css/application/uiexample/example.css' => '528b19de', 'rsrc/css/core/core.css' => '8f9b9588', - 'rsrc/css/core/remarkup.css' => 'de20f873', + 'rsrc/css/core/remarkup.css' => 'e8e5a324', 'rsrc/css/core/syntax.css' => '56c1ba38', 'rsrc/css/core/z-index.css' => '40eb7003', 'rsrc/css/diviner/diviner-shared.css' => '38813222', @@ -738,7 +738,7 @@ return array( 'phabricator-phtize' => 'd254d646', 'phabricator-prefab' => '72da38cc', 'phabricator-profile-css' => 'b4896815', - 'phabricator-remarkup-css' => 'de20f873', + 'phabricator-remarkup-css' => 'e8e5a324', 'phabricator-search-results-css' => 'f240504c', 'phabricator-shaped-request' => '7cbe244b', 'phabricator-side-menu-view-css' => '7e8c6341', diff --git a/webroot/rsrc/css/core/remarkup.css b/webroot/rsrc/css/core/remarkup.css index c83c042fb1..9671000714 100644 --- a/webroot/rsrc/css/core/remarkup.css +++ b/webroot/rsrc/css/core/remarkup.css @@ -330,7 +330,8 @@ .phabricator-remarkup h5.remarkup-header:first-child, .phabricator-remarkup h6.remarkup-header:first-child, .phabricator-remarkup blockquote:first-child, -.phabricator-remarkup table.remarkup-table:first-child { +.phabricator-remarkup table.remarkup-table:first-child, +.phabricator-remarkup .remarkup-note:first-child { margin-top: 0; } @@ -345,7 +346,8 @@ .phabricator-remarkup h5.remarkup-header:last-child, .phabricator-remarkup h6.remarkup-header:last-child, .phabricator-remarkup blockquote:last-child, -.phabricator-remarkup table.remarkup-table:last-child { +.phabricator-remarkup table.remarkup-table:last-child, +.phabricator-remarkup .remarkup-note:last-child { margin-bottom: 0; } -- 2.51.2