1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-18 02:31:10 +01:00

Touch up hidden panel colors

Summary: Adds a red border, panels love borders.

Test Plan:
Hide/Unhide

{F170300}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9739
This commit is contained in:
Chad Little 2014-06-25 20:55:10 -07:00
parent 390abb7452
commit e4d38592ce
3 changed files with 13 additions and 3 deletions

View file

@ -146,7 +146,7 @@ return array(
'rsrc/css/phui/phui-text.css' => '23e9b4b7', 'rsrc/css/phui/phui-text.css' => '23e9b4b7',
'rsrc/css/phui/phui-timeline-view.css' => 'bbd990d0', 'rsrc/css/phui/phui-timeline-view.css' => 'bbd990d0',
'rsrc/css/phui/phui-workboard-view.css' => '2bf82d00', 'rsrc/css/phui/phui-workboard-view.css' => '2bf82d00',
'rsrc/css/phui/phui-workpanel-view.css' => 'a8d0273b', 'rsrc/css/phui/phui-workpanel-view.css' => 'ed2a2162',
'rsrc/css/sprite-apps-large.css' => '12ea1ced', 'rsrc/css/sprite-apps-large.css' => '12ea1ced',
'rsrc/css/sprite-apps.css' => '37ee4f4e', 'rsrc/css/sprite-apps.css' => '37ee4f4e',
'rsrc/css/sprite-conpherence.css' => '3b4a0487', 'rsrc/css/sprite-conpherence.css' => '3b4a0487',
@ -791,7 +791,7 @@ return array(
'phui-text-css' => '23e9b4b7', 'phui-text-css' => '23e9b4b7',
'phui-timeline-view-css' => 'bbd990d0', 'phui-timeline-view-css' => 'bbd990d0',
'phui-workboard-view-css' => '2bf82d00', 'phui-workboard-view-css' => '2bf82d00',
'phui-workpanel-view-css' => 'a8d0273b', 'phui-workpanel-view-css' => 'ed2a2162',
'phuix-action-list-view' => 'b5c256b8', 'phuix-action-list-view' => 'b5c256b8',
'phuix-action-view' => '6e8cefa4', 'phuix-action-view' => '6e8cefa4',
'phuix-dropdown-menu' => 'bd4c8dca', 'phuix-dropdown-menu' => 'bd4c8dca',

View file

@ -48,6 +48,8 @@ final class PHUIWorkpanelView extends AphrontTagView {
public function getTagContent() { public function getTagContent() {
require_celerity_resource('phui-workpanel-view-css'); require_celerity_resource('phui-workpanel-view-css');
$classes = array();
$classes[] = 'phui-workpanel-view-inner';
$footer = ''; $footer = '';
if ($this->footerAction) { if ($this->footerAction) {
$footer_tag = $this->footerAction; $footer_tag = $this->footerAction;
@ -75,6 +77,8 @@ final class PHUIWorkpanelView extends AphrontTagView {
$header->addAction($this->headerAction); $header->addAction($this->headerAction);
} }
$classes[] = 'phui-workpanel-'.$this->headerColor;
$body = phutil_tag( $body = phutil_tag(
'div', 'div',
array( array(
@ -85,7 +89,7 @@ final class PHUIWorkpanelView extends AphrontTagView {
$view = phutil_tag( $view = phutil_tag(
'div', 'div',
array( array(
'class' => 'phui-workpanel-view-inner', 'class' => implode(' ', $classes),
), ),
array( array(
$header, $header,

View file

@ -90,6 +90,12 @@
background: rgba(255,255,255,.7); background: rgba(255,255,255,.7);
} }
.phui-workpanel-view .phui-workpanel-lightred .phui-action-header {
border-top: 1px solid {$redborder};
border-left: 1px solid {$redborder};
border-right: 1px solid {$redborder};
}
/* - Workpanel Cards ----------------------------------------------------------- /* - Workpanel Cards -----------------------------------------------------------
Slight display changes for how cards work in tight spaces Slight display changes for how cards work in tight spaces