@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.

Adds a CSS dropdown caret for buttons.

Summary: I'll build out a PHUI Class for this soonish.

Test Plan: UIExamples

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

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

+81 -47
+46 -46
src/__celerity_resource_map__.php
··· 2933 2933 ), 2934 2934 'phabricator-core-buttons-css' => 2935 2935 array( 2936 - 'uri' => '/res/9250d98f/rsrc/css/core/buttons.css', 2936 + 'uri' => '/res/8853cc81/rsrc/css/core/buttons.css', 2937 2937 'type' => 'css', 2938 2938 'requires' => 2939 2939 array( ··· 3981 3981 ), array( 3982 3982 'packages' => 3983 3983 array( 3984 - 'efb6389a' => 3984 + '6cb89b00' => 3985 3985 array( 3986 3986 'name' => 'core.pkg.css', 3987 3987 'symbols' => ··· 4030 4030 41 => 'phabricator-property-list-view-css', 4031 4031 42 => 'phabricator-tag-view-css', 4032 4032 ), 4033 - 'uri' => '/res/pkg/efb6389a/core.pkg.css', 4033 + 'uri' => '/res/pkg/6cb89b00/core.pkg.css', 4034 4034 'type' => 'css', 4035 4035 ), 4036 4036 '77faef00' => ··· 4224 4224 'reverse' => 4225 4225 array( 4226 4226 'aphront-attached-file-view-css' => '6b1fccc6', 4227 - 'aphront-dialog-view-css' => 'efb6389a', 4228 - 'aphront-error-view-css' => 'efb6389a', 4229 - 'aphront-form-view-css' => 'efb6389a', 4230 - 'aphront-list-filter-view-css' => 'efb6389a', 4231 - 'aphront-pager-view-css' => 'efb6389a', 4232 - 'aphront-panel-view-css' => 'efb6389a', 4233 - 'aphront-table-view-css' => 'efb6389a', 4234 - 'aphront-tokenizer-control-css' => 'efb6389a', 4235 - 'aphront-tooltip-css' => 'efb6389a', 4236 - 'aphront-typeahead-control-css' => 'efb6389a', 4227 + 'aphront-dialog-view-css' => '6cb89b00', 4228 + 'aphront-error-view-css' => '6cb89b00', 4229 + 'aphront-form-view-css' => '6cb89b00', 4230 + 'aphront-list-filter-view-css' => '6cb89b00', 4231 + 'aphront-pager-view-css' => '6cb89b00', 4232 + 'aphront-panel-view-css' => '6cb89b00', 4233 + 'aphront-table-view-css' => '6cb89b00', 4234 + 'aphront-tokenizer-control-css' => '6cb89b00', 4235 + 'aphront-tooltip-css' => '6cb89b00', 4236 + 'aphront-typeahead-control-css' => '6cb89b00', 4237 4237 'differential-changeset-view-css' => 'dd27a69b', 4238 4238 'differential-core-view-css' => 'dd27a69b', 4239 4239 'differential-inline-comment-editor' => '9488bb69', ··· 4247 4247 'differential-table-of-contents-css' => 'dd27a69b', 4248 4248 'diffusion-commit-view-css' => 'c8ce2d88', 4249 4249 'diffusion-icons-css' => 'c8ce2d88', 4250 - 'global-drag-and-drop-css' => 'efb6389a', 4250 + 'global-drag-and-drop-css' => '6cb89b00', 4251 4251 'inline-comment-summary-css' => 'dd27a69b', 4252 4252 'javelin-aphlict' => '77faef00', 4253 4253 'javelin-behavior' => 'c1359b5d', ··· 4321 4321 'javelin-util' => 'c1359b5d', 4322 4322 'javelin-vector' => 'c1359b5d', 4323 4323 'javelin-workflow' => 'c1359b5d', 4324 - 'lightbox-attachment-css' => 'efb6389a', 4324 + 'lightbox-attachment-css' => '6cb89b00', 4325 4325 'maniphest-task-summary-css' => '6b1fccc6', 4326 4326 'maniphest-transaction-detail-css' => '6b1fccc6', 4327 - 'phabricator-action-list-view-css' => 'efb6389a', 4328 - 'phabricator-application-launch-view-css' => 'efb6389a', 4327 + 'phabricator-action-list-view-css' => '6cb89b00', 4328 + 'phabricator-application-launch-view-css' => '6cb89b00', 4329 4329 'phabricator-busy' => '77faef00', 4330 4330 'phabricator-content-source-view-css' => 'dd27a69b', 4331 - 'phabricator-core-buttons-css' => 'efb6389a', 4332 - 'phabricator-core-css' => 'efb6389a', 4333 - 'phabricator-crumbs-view-css' => 'efb6389a', 4334 - 'phabricator-directory-css' => 'efb6389a', 4331 + 'phabricator-core-buttons-css' => '6cb89b00', 4332 + 'phabricator-core-css' => '6cb89b00', 4333 + 'phabricator-crumbs-view-css' => '6cb89b00', 4334 + 'phabricator-directory-css' => '6cb89b00', 4335 4335 'phabricator-drag-and-drop-file-upload' => '9488bb69', 4336 4336 'phabricator-dropdown-menu' => '77faef00', 4337 4337 'phabricator-file-upload' => '77faef00', 4338 - 'phabricator-filetree-view-css' => 'efb6389a', 4339 - 'phabricator-flag-css' => 'efb6389a', 4340 - 'phabricator-form-view-css' => 'efb6389a', 4341 - 'phabricator-header-view-css' => 'efb6389a', 4338 + 'phabricator-filetree-view-css' => '6cb89b00', 4339 + 'phabricator-flag-css' => '6cb89b00', 4340 + 'phabricator-form-view-css' => '6cb89b00', 4341 + 'phabricator-header-view-css' => '6cb89b00', 4342 4342 'phabricator-hovercard' => '77faef00', 4343 - 'phabricator-jump-nav' => 'efb6389a', 4343 + 'phabricator-jump-nav' => '6cb89b00', 4344 4344 'phabricator-keyboard-shortcut' => '77faef00', 4345 4345 'phabricator-keyboard-shortcut-manager' => '77faef00', 4346 - 'phabricator-main-menu-view' => 'efb6389a', 4346 + 'phabricator-main-menu-view' => '6cb89b00', 4347 4347 'phabricator-menu-item' => '77faef00', 4348 - 'phabricator-nav-view-css' => 'efb6389a', 4348 + 'phabricator-nav-view-css' => '6cb89b00', 4349 4349 'phabricator-notification' => '77faef00', 4350 - 'phabricator-notification-css' => 'efb6389a', 4351 - 'phabricator-notification-menu-css' => 'efb6389a', 4352 - 'phabricator-object-item-list-view-css' => 'efb6389a', 4350 + 'phabricator-notification-css' => '6cb89b00', 4351 + 'phabricator-notification-menu-css' => '6cb89b00', 4352 + 'phabricator-object-item-list-view-css' => '6cb89b00', 4353 4353 'phabricator-object-selector-css' => 'dd27a69b', 4354 4354 'phabricator-phtize' => '77faef00', 4355 4355 'phabricator-prefab' => '77faef00', 4356 4356 'phabricator-project-tag-css' => '6b1fccc6', 4357 - 'phabricator-property-list-view-css' => 'efb6389a', 4358 - 'phabricator-remarkup-css' => 'efb6389a', 4357 + 'phabricator-property-list-view-css' => '6cb89b00', 4358 + 'phabricator-remarkup-css' => '6cb89b00', 4359 4359 'phabricator-shaped-request' => '9488bb69', 4360 - 'phabricator-side-menu-view-css' => 'efb6389a', 4361 - 'phabricator-standard-page-view' => 'efb6389a', 4362 - 'phabricator-tag-view-css' => 'efb6389a', 4360 + 'phabricator-side-menu-view-css' => '6cb89b00', 4361 + 'phabricator-standard-page-view' => '6cb89b00', 4362 + 'phabricator-tag-view-css' => '6cb89b00', 4363 4363 'phabricator-textareautils' => '77faef00', 4364 4364 'phabricator-tooltip' => '77faef00', 4365 - 'phabricator-transaction-view-css' => 'efb6389a', 4366 - 'phabricator-zindex-css' => 'efb6389a', 4367 - 'phui-form-css' => 'efb6389a', 4368 - 'phui-icon-view-css' => 'efb6389a', 4369 - 'spacing-css' => 'efb6389a', 4370 - 'sprite-apps-large-css' => 'efb6389a', 4371 - 'sprite-gradient-css' => 'efb6389a', 4372 - 'sprite-icons-css' => 'efb6389a', 4373 - 'sprite-menu-css' => 'efb6389a', 4374 - 'syntax-highlighting-css' => 'efb6389a', 4365 + 'phabricator-transaction-view-css' => '6cb89b00', 4366 + 'phabricator-zindex-css' => '6cb89b00', 4367 + 'phui-form-css' => '6cb89b00', 4368 + 'phui-icon-view-css' => '6cb89b00', 4369 + 'spacing-css' => '6cb89b00', 4370 + 'sprite-apps-large-css' => '6cb89b00', 4371 + 'sprite-gradient-css' => '6cb89b00', 4372 + 'sprite-icons-css' => '6cb89b00', 4373 + 'sprite-menu-css' => '6cb89b00', 4374 + 'syntax-highlighting-css' => '6cb89b00', 4375 4375 ), 4376 4376 ));
+15 -1
src/applications/uiexample/examples/PhabricatorButtonsExample.php
··· 33 33 array( 34 34 'class' => $class, 35 35 ), 36 - ucwords($size.' '.$color.' '.$tag)); 36 + phutil_utf8_ucwords($size.' '.$color.' '.$tag)); 37 37 38 38 $view[] = hsprintf('<br /><br />'); 39 39 } 40 40 } 41 + } 42 + 43 + foreach ($colors as $color) { 44 + $caret = phutil_tag('span', array('class' => 'caret'), ''); 45 + $view[] = phutil_tag( 46 + 'a', 47 + array( 48 + 'class' => $color.' button dropdown' 49 + ), 50 + array( 51 + phutil_utf8_ucwords($color.' Dropdown'), 52 + $caret, 53 + )); 54 + $view[] = hsprintf('<br /><br />'); 41 55 } 42 56 43 57 return phutil_tag('div', array('style' => 'margin: 1em 2em;'), $view);
+20
webroot/rsrc/css/core/buttons.css
··· 194 194 a.toggle-fixed { 195 195 cursor: default; 196 196 } 197 + 198 + .caret { 199 + display: inline-block; 200 + width: 0; 201 + height: 0; 202 + vertical-align: top; 203 + border-top: 5px solid #fff; 204 + border-right: 5px solid transparent; 205 + border-left: 5px solid transparent; 206 + content: ""; 207 + } 208 + 209 + .dropdown .caret { 210 + margin-top: 7px; 211 + margin-left: 4px; 212 + } 213 + 214 + .grey.dropdown .caret { 215 + border-top-color: #000; 216 + }