mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Make icons in tags more floaty, less absoluty
Summary: This change wraps the icon inline with the text, so smaller width icons have equal spacing between the border and text. Test Plan: review a number of different tag with icons, also UIExamples. {F309048} Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11802
This commit is contained in:
parent
f9638edf37
commit
eefead7721
3 changed files with 11 additions and 21 deletions
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
return array(
|
||||
'names' => array(
|
||||
'core.pkg.css' => '5121a58f',
|
||||
'core.pkg.css' => 'a3a54ca1',
|
||||
'core.pkg.js' => '23d653bb',
|
||||
'darkconsole.pkg.js' => '8ab24e01',
|
||||
'differential.pkg.css' => '380f07e5',
|
||||
|
@ -144,7 +144,7 @@ return array(
|
|||
'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b',
|
||||
'rsrc/css/phui/phui-spacing.css' => '042804d6',
|
||||
'rsrc/css/phui/phui-status.css' => '888cedb8',
|
||||
'rsrc/css/phui/phui-tag-view.css' => '6b74282b',
|
||||
'rsrc/css/phui/phui-tag-view.css' => 'ea469f3a',
|
||||
'rsrc/css/phui/phui-text.css' => 'cf019f54',
|
||||
'rsrc/css/phui/phui-timeline-view.css' => 'b0fbc4d7',
|
||||
'rsrc/css/phui/phui-workboard-view.css' => '8896938c',
|
||||
|
@ -798,7 +798,7 @@ return array(
|
|||
'phui-remarkup-preview-css' => '19ad512b',
|
||||
'phui-spacing-css' => '042804d6',
|
||||
'phui-status-list-view-css' => '888cedb8',
|
||||
'phui-tag-view-css' => '6b74282b',
|
||||
'phui-tag-view-css' => 'ea469f3a',
|
||||
'phui-text-css' => 'cf019f54',
|
||||
'phui-timeline-view-css' => 'b0fbc4d7',
|
||||
'phui-workboard-view-css' => '8896938c',
|
||||
|
|
|
@ -176,7 +176,7 @@ final class PHUITagView extends AphrontTagView {
|
|||
array(
|
||||
'class' => 'phui-tag-core '.$color,
|
||||
),
|
||||
array($dot, $this->name));
|
||||
array($dot, $icon, $this->name));
|
||||
|
||||
if ($this->closed) {
|
||||
$content = phutil_tag(
|
||||
|
@ -184,10 +184,10 @@ final class PHUITagView extends AphrontTagView {
|
|||
array(
|
||||
'class' => 'phui-tag-core-closed',
|
||||
),
|
||||
$content);
|
||||
array($icon, $content));
|
||||
}
|
||||
|
||||
return array($icon, $content);
|
||||
return $content;
|
||||
}
|
||||
|
||||
public static function getTagTypes() {
|
||||
|
|
|
@ -33,15 +33,13 @@ a.phui-tag-view:hover {
|
|||
padding: 1px 6px;
|
||||
}
|
||||
|
||||
.phui-tag-view .phui-icon-view {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
top: 1px;
|
||||
left: 5px;
|
||||
.phui-tag-view.phui-tag-type-state .phui-icon-view {
|
||||
margin: 0 6px 0 0;
|
||||
}
|
||||
|
||||
.phui-tag-icon-view .phui-tag-core {
|
||||
padding-left: 22px;
|
||||
.phui-tag-view .phui-icon-view {
|
||||
display: inline-block;
|
||||
margin: 0 4px 0 2px;
|
||||
}
|
||||
|
||||
.phui-tag-dot {
|
||||
|
@ -154,24 +152,16 @@ a.phui-tag-view:hover
|
|||
|
||||
.phui-tag-shade .phui-icon-view {
|
||||
font-size: 12px;
|
||||
top: 2px;
|
||||
left: 6px;
|
||||
}
|
||||
|
||||
.phui-tag-shade-slim .phui-icon-view {
|
||||
font-size: 11px;
|
||||
top: 3px;
|
||||
left: 6px;
|
||||
}
|
||||
|
||||
.phui-tag-shade-slim .phui-tag-core {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.phui-tag-shade-slim.phui-tag-icon-view .phui-tag-core {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.phui-tag-shade-red .phui-tag-core {
|
||||
background-color: {$sh-redbackground};
|
||||
border-color: {$sh-lightredborder};
|
||||
|
|
Loading…
Reference in a new issue