mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Move Guides ObjectList styles to PHUIObjectItemListView
Summary: I plan to reuse these styles with Config, maybe also Almanac, etc. Test Plan: Review /guides/, see same styles. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16467
This commit is contained in:
parent
c55de86f0e
commit
86231a9d6d
8 changed files with 46 additions and 45 deletions
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
return array(
|
||||
'names' => array(
|
||||
'core.pkg.css' => 'ed7ae7bb',
|
||||
'core.pkg.css' => '25e4069a',
|
||||
'core.pkg.js' => 'b562c3db',
|
||||
'darkconsole.pkg.js' => 'e7393ebb',
|
||||
'differential.pkg.css' => '3fb7f532',
|
||||
|
@ -70,7 +70,6 @@ return array(
|
|||
'rsrc/css/application/feed/feed.css' => 'ecd4ec57',
|
||||
'rsrc/css/application/files/global-drag-and-drop.css' => '5c1b47c2',
|
||||
'rsrc/css/application/flag/flag.css' => '5337623f',
|
||||
'rsrc/css/application/guides/guides.css' => '1d5414e5',
|
||||
'rsrc/css/application/harbormaster/harbormaster.css' => 'f491c9f4',
|
||||
'rsrc/css/application/herald/herald-test.css' => 'a52e323e',
|
||||
'rsrc/css/application/herald/herald.css' => 'dc31f6e9',
|
||||
|
@ -148,7 +147,7 @@ return array(
|
|||
'rsrc/css/phui/phui-info-view.css' => '28efab79',
|
||||
'rsrc/css/phui/phui-list.css' => '9da2aa00',
|
||||
'rsrc/css/phui/phui-object-box.css' => '6b487c57',
|
||||
'rsrc/css/phui/phui-object-item-list-view.css' => '40010767',
|
||||
'rsrc/css/phui/phui-object-item-list-view.css' => '985e9d54',
|
||||
'rsrc/css/phui/phui-pager.css' => 'bea33d23',
|
||||
'rsrc/css/phui/phui-pinboard-view.css' => '2495140e',
|
||||
'rsrc/css/phui/phui-profile-menu.css' => '8a3fc181',
|
||||
|
@ -574,7 +573,6 @@ return array(
|
|||
'font-fontawesome' => '2b7ebbcc',
|
||||
'font-lato' => 'c7ccd872',
|
||||
'global-drag-and-drop-css' => '5c1b47c2',
|
||||
'guides-app-css' => '1d5414e5',
|
||||
'harbormaster-css' => 'f491c9f4',
|
||||
'herald-css' => 'dc31f6e9',
|
||||
'herald-rule-editor' => 'd6a7e717',
|
||||
|
@ -858,7 +856,7 @@ return array(
|
|||
'phui-inline-comment-view-css' => '5953c28e',
|
||||
'phui-list-view-css' => '9da2aa00',
|
||||
'phui-object-box-css' => '6b487c57',
|
||||
'phui-object-item-list-view-css' => '40010767',
|
||||
'phui-object-item-list-view-css' => '985e9d54',
|
||||
'phui-pager-css' => 'bea33d23',
|
||||
'phui-pinboard-view-css' => '2495140e',
|
||||
'phui-profile-menu-css' => '8a3fc181',
|
||||
|
|
|
@ -8,7 +8,6 @@ final class PhabricatorGuideInstallController
|
|||
}
|
||||
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
require_celerity_resource('guides-app-css');
|
||||
$viewer = $request->getViewer();
|
||||
|
||||
$title = pht('Installation Guide');
|
||||
|
|
|
@ -8,7 +8,6 @@ final class PhabricatorGuideQuickStartController
|
|||
}
|
||||
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
require_celerity_resource('guides-app-css');
|
||||
$viewer = $request->getViewer();
|
||||
|
||||
$title = pht('Quick Start Guide');
|
||||
|
|
|
@ -8,7 +8,6 @@ final class PhabricatorGuideWelcomeController
|
|||
}
|
||||
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
require_celerity_resource('guides-app-css');
|
||||
$viewer = $request->getViewer();
|
||||
|
||||
$title = pht('Welcome to Phabricator');
|
||||
|
|
|
@ -10,10 +10,8 @@ final class PhabricatorGuideListView extends AphrontView {
|
|||
}
|
||||
|
||||
public function render() {
|
||||
require_celerity_resource('guides-app-css');
|
||||
|
||||
$list = id(new PHUIObjectItemListView())
|
||||
->addClass('guides-app');
|
||||
->setBig(true);
|
||||
|
||||
foreach ($this->items as $item) {
|
||||
$icon = id(new PHUIIconView())
|
||||
|
|
|
@ -8,6 +8,7 @@ final class PHUIObjectItemListView extends AphrontTagView {
|
|||
private $noDataString;
|
||||
private $flush;
|
||||
private $simple;
|
||||
private $big;
|
||||
private $allowEmptyList;
|
||||
private $itemClass = 'phui-object-item-standard';
|
||||
|
||||
|
@ -40,6 +41,11 @@ final class PHUIObjectItemListView extends AphrontTagView {
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function setBig($big) {
|
||||
$this->big = $big;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setNoDataString($no_data_string) {
|
||||
$this->noDataString = $no_data_string;
|
||||
return $this;
|
||||
|
@ -69,6 +75,9 @@ final class PHUIObjectItemListView extends AphrontTagView {
|
|||
if ($this->simple) {
|
||||
$classes[] = 'phui-object-list-simple';
|
||||
}
|
||||
if ($this->big) {
|
||||
$classes[] = 'phui-object-list-big';
|
||||
}
|
||||
|
||||
return array(
|
||||
'class' => $classes,
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
/**
|
||||
* @provides guides-app-css
|
||||
*/
|
||||
|
||||
.guides-app ul.phui-object-item-list-view {
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.guides-app .phui-object-item-no-bar .phui-object-item-frame {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.guides-app .phui-object-item-image-icon {
|
||||
margin: 8px 2px 12px;
|
||||
}
|
||||
|
||||
.guides-app a.phui-object-item-link {
|
||||
color: #000;
|
||||
font-size: {$biggestfontsize};
|
||||
}
|
||||
|
||||
.guides-app .phui-object-item-name {
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.guides-app .phui-object-item-launch-button a.button {
|
||||
font-size: {$normalfontsize};
|
||||
padding: 3px 12px 4px;
|
||||
}
|
||||
|
||||
.device-desktop .guides-app .phui-object-item {
|
||||
margin-bottom: 8px;
|
||||
}
|
|
@ -738,3 +738,36 @@ ul.phui-object-item-list-view .phui-object-item-selected
|
|||
bottom: 2px;
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
/* - Big List---------------------------------------------------------------- */
|
||||
|
||||
.phui-object-list-big ul.phui-object-item-list-view {
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.phui-object-list-big .phui-object-item-no-bar .phui-object-item-frame {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.phui-object-list-big .phui-object-item-image-icon {
|
||||
margin: 8px 2px 12px;
|
||||
}
|
||||
|
||||
.phui-object-list-big a.phui-object-item-link {
|
||||
color: #000;
|
||||
font-size: {$biggestfontsize};
|
||||
}
|
||||
|
||||
.phui-object-list-big .phui-object-item-name {
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.phui-object-list-big .phui-object-item-launch-button a.button {
|
||||
font-size: {$normalfontsize};
|
||||
padding: 3px 12px 4px;
|
||||
}
|
||||
|
||||
.device-desktop .phui-object-list-big .phui-object-item {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue