@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remarkup.css: Consistently zero top/bottom margins for first/last block-level children

Summary:
For block-level elements that have a margin-top or margin-bottom set
(generally to 12px), also reset the appropriate margin to 0 when
they're a first-child or last-child of their parents.

The change doesn't affect nested lists, their selector is more specific.

Test Plan:
Look at some comments or wiki documents that end with different
block elements, verify that the margins are pretty.

Reviewers: epriestley, #blessed_reviewers, chad

Reviewed By: #blessed_reviewers, chad

Subscribers: Korvin, epriestley

Projects: #remarkup

Maniphest Tasks: T6968

Differential Revision: https://secure.phabricator.com/D11382

+35 -25
+3 -3
resources/celerity/map.php
··· 7 7 */ 8 8 return array( 9 9 'names' => array( 10 - 'core.pkg.css' => '38e621cb', 10 + 'core.pkg.css' => '8d1c0f87', 11 11 'core.pkg.js' => '27bb3264', 12 12 'darkconsole.pkg.js' => '8ab24e01', 13 13 'differential.pkg.css' => '8af45893', ··· 105 105 'rsrc/css/application/tokens/tokens.css' => '3d0f239e', 106 106 'rsrc/css/application/uiexample/example.css' => '528b19de', 107 107 'rsrc/css/core/core.css' => 'ca42b69f', 108 - 'rsrc/css/core/remarkup.css' => '7604f12e', 108 + 'rsrc/css/core/remarkup.css' => '0ee3d256', 109 109 'rsrc/css/core/syntax.css' => '56c1ba38', 110 110 'rsrc/css/core/z-index.css' => '44e1d311', 111 111 'rsrc/css/diviner/diviner-shared.css' => '38813222', ··· 729 729 'phabricator-phtize' => 'd254d646', 730 730 'phabricator-prefab' => '72da38cc', 731 731 'phabricator-profile-css' => 'fddedfa1', 732 - 'phabricator-remarkup-css' => '7604f12e', 732 + 'phabricator-remarkup-css' => '0ee3d256', 733 733 'phabricator-search-results-css' => 'f240504c', 734 734 'phabricator-shaped-request' => '7cbe244b', 735 735 'phabricator-side-menu-view-css' => '7e8c6341',
+2
src/__phutil_library_map__.php
··· 5214 5214 'PhabricatorOAuthServerClient' => array( 5215 5215 'PhabricatorOAuthServerDAO', 5216 5216 'PhabricatorPolicyInterface', 5217 + 'PhabricatorDestructibleInterface', 5217 5218 ), 5218 5219 'PhabricatorOAuthServerClientAuthorizationPHIDType' => 'PhabricatorPHIDType', 5219 5220 'PhabricatorOAuthServerClientPHIDType' => 'PhabricatorPHIDType', ··· 5350 5351 'PhabricatorPolicy' => array( 5351 5352 'PhabricatorPolicyDAO', 5352 5353 'PhabricatorPolicyInterface', 5354 + 'PhabricatorDestructibleInterface', 5353 5355 ), 5354 5356 'PhabricatorPolicyApplication' => 'PhabricatorApplication', 5355 5357 'PhabricatorPolicyAwareQuery' => 'PhabricatorOffsetPagedQuery',
+30 -22
webroot/rsrc/css/core/remarkup.css
··· 10 10 margin: 0 0 12px; 11 11 } 12 12 13 - .phabricator-remarkup p:last-child { 14 - margin-bottom: 0; 15 - } 16 - 17 13 .phabricator-remarkup .remarkup-code-block { 18 14 margin: 12px; 19 15 white-space: pre; ··· 94 90 .phabricator-remarkup li.phantom-item, 95 91 .phabricator-remarkup li.phantom-item { 96 92 list-style-type: none; 97 - } 98 - 99 - .phabricator-remarkup h1.remarkup-header:first-child, 100 - .phabricator-remarkup h2.remarkup-header:first-child, 101 - .phabricator-remarkup h3.remarkup-header:first-child, 102 - .phabricator-remarkup h4.remarkup-header:first-child, 103 - .phabricator-remarkup h5.remarkup-header:first-child, 104 - .phabricator-remarkup h6.remarkup-header:first-child { 105 - margin-top: 0; 106 - } 107 - 108 - .phabricator-remarkup h1.remarkup-header:last-child, 109 - .phabricator-remarkup h2.remarkup-header:last-child, 110 - .phabricator-remarkup h3.remarkup-header:last-child, 111 - .phabricator-remarkup h4.remarkup-header:last-child, 112 - .phabricator-remarkup h5.remarkup-header:last-child, 113 - .phabricator-remarkup h6.remarkup-header:last-child { 114 - margin-bottom: 0; 115 93 } 116 94 117 95 .phabricator-remarkup h1.remarkup-header { ··· 339 317 .phabricator-remarkup table.remarkup-table td { 340 318 background: #ffffff; 341 319 padding: 3px 6px; 320 + } 321 + 322 + .phabricator-remarkup p:first-child, 323 + .phabricator-remarkup ul.remarkup-list:first-child, 324 + .phabricator-remarkup ol.remarkup-list:first-child, 325 + .phabricator-remarkup .remarkup-code-block:first-child, 326 + .phabricator-remarkup h1.remarkup-header:first-child, 327 + .phabricator-remarkup h2.remarkup-header:first-child, 328 + .phabricator-remarkup h3.remarkup-header:first-child, 329 + .phabricator-remarkup h4.remarkup-header:first-child, 330 + .phabricator-remarkup h5.remarkup-header:first-child, 331 + .phabricator-remarkup h6.remarkup-header:first-child, 332 + .phabricator-remarkup blockquote:first-child, 333 + .phabricator-remarkup table.remarkup-table:first-child { 334 + margin-top: 0; 335 + } 336 + 337 + .phabricator-remarkup p:last-child, 338 + .phabricator-remarkup ul.remarkup-list:last-child, 339 + .phabricator-remarkup ol.remarkup-list:last-child, 340 + .phabricator-remarkup .remarkup-code-block:last-child, 341 + .phabricator-remarkup h1.remarkup-header:last-child, 342 + .phabricator-remarkup h2.remarkup-header:last-child, 343 + .phabricator-remarkup h3.remarkup-header:last-child, 344 + .phabricator-remarkup h4.remarkup-header:last-child, 345 + .phabricator-remarkup h5.remarkup-header:last-child, 346 + .phabricator-remarkup h6.remarkup-header:last-child, 347 + .phabricator-remarkup blockquote:last-child, 348 + .phabricator-remarkup table.remarkup-table:last-child { 349 + margin-bottom: 0; 342 350 } 343 351 344 352 .remarkup-assist-textarea {