1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00

Restrict header Remarkup color to phui-source-sans only

Summary: These colors only apply to documents, not normal Remarkup (like tasks). Also fix an issue where headers and ToCs are first.

Test Plan: view a number of different layouts in Phriction, Maniphest.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12585
This commit is contained in:
Chad Little 2015-04-27 20:38:12 -07:00
parent 2fad8ce677
commit 9a996bcd2c
3 changed files with 20 additions and 11 deletions

View file

@ -7,7 +7,7 @@
*/ */
return array( return array(
'names' => array( 'names' => array(
'core.pkg.css' => '305f7c85', 'core.pkg.css' => '5ca11af3',
'core.pkg.js' => '59d01bb7', 'core.pkg.js' => '59d01bb7',
'darkconsole.pkg.js' => '6d16ff19', 'darkconsole.pkg.js' => '6d16ff19',
'differential.pkg.css' => '3500921f', 'differential.pkg.css' => '3500921f',
@ -108,7 +108,7 @@ return array(
'rsrc/css/application/tokens/tokens.css' => '3d0f239e', 'rsrc/css/application/tokens/tokens.css' => '3d0f239e',
'rsrc/css/application/uiexample/example.css' => '528b19de', 'rsrc/css/application/uiexample/example.css' => '528b19de',
'rsrc/css/core/core.css' => '76e8ee93', 'rsrc/css/core/core.css' => '76e8ee93',
'rsrc/css/core/remarkup.css' => '4203633b', 'rsrc/css/core/remarkup.css' => 'a59502c9',
'rsrc/css/core/syntax.css' => '56c1ba38', 'rsrc/css/core/syntax.css' => '56c1ba38',
'rsrc/css/core/z-index.css' => '5a2b9d9d', 'rsrc/css/core/z-index.css' => '5a2b9d9d',
'rsrc/css/diviner/diviner-shared.css' => '38813222', 'rsrc/css/diviner/diviner-shared.css' => '38813222',
@ -131,7 +131,7 @@ return array(
'rsrc/css/phui/phui-crumbs-view.css' => '594d719e', 'rsrc/css/phui/phui-crumbs-view.css' => '594d719e',
'rsrc/css/phui/phui-document.css' => '94d5dcd8', 'rsrc/css/phui/phui-document.css' => '94d5dcd8',
'rsrc/css/phui/phui-feed-story.css' => 'c9f3a0b5', 'rsrc/css/phui/phui-feed-story.css' => 'c9f3a0b5',
'rsrc/css/phui/phui-fontkit.css' => '81dab066', 'rsrc/css/phui/phui-fontkit.css' => 'ce228013',
'rsrc/css/phui/phui-form-view.css' => 'b147d2ed', 'rsrc/css/phui/phui-form-view.css' => 'b147d2ed',
'rsrc/css/phui/phui-form.css' => 'f535f938', 'rsrc/css/phui/phui-form.css' => 'f535f938',
'rsrc/css/phui/phui-header-view.css' => 'da4586b1', 'rsrc/css/phui/phui-header-view.css' => 'da4586b1',
@ -746,7 +746,7 @@ return array(
'phabricator-phtize' => 'd254d646', 'phabricator-phtize' => 'd254d646',
'phabricator-prefab' => '6920d200', 'phabricator-prefab' => '6920d200',
'phabricator-profile-css' => '1a20dcbf', 'phabricator-profile-css' => '1a20dcbf',
'phabricator-remarkup-css' => '4203633b', 'phabricator-remarkup-css' => 'a59502c9',
'phabricator-search-results-css' => '15c71110', 'phabricator-search-results-css' => '15c71110',
'phabricator-shaped-request' => '7cbe244b', 'phabricator-shaped-request' => '7cbe244b',
'phabricator-side-menu-view-css' => '7e8c6341', 'phabricator-side-menu-view-css' => '7e8c6341',
@ -789,7 +789,7 @@ return array(
'phui-document-view-css' => '94d5dcd8', 'phui-document-view-css' => '94d5dcd8',
'phui-feed-story-css' => 'c9f3a0b5', 'phui-feed-story-css' => 'c9f3a0b5',
'phui-font-icon-base-css' => '3dad2ae3', 'phui-font-icon-base-css' => '3dad2ae3',
'phui-fontkit-css' => '81dab066', 'phui-fontkit-css' => 'ce228013',
'phui-form-css' => 'f535f938', 'phui-form-css' => 'f535f938',
'phui-form-view-css' => 'b147d2ed', 'phui-form-view-css' => 'b147d2ed',
'phui-header-view-css' => 'da4586b1', 'phui-header-view-css' => 'da4586b1',

View file

@ -98,42 +98,36 @@
font-size: 1.625em; font-size: 1.625em;
line-height: 1.625em; line-height: 1.625em;
margin: 16px 0 4px; margin: 16px 0 4px;
color: {$bluetext};
} }
.phabricator-remarkup h2.remarkup-header { .phabricator-remarkup h2.remarkup-header {
font-size: 1.5em; font-size: 1.5em;
line-height: 1.5em; line-height: 1.5em;
margin: 16px 0 4px; margin: 16px 0 4px;
color: {$bluetext};
} }
.phabricator-remarkup h3.remarkup-header { .phabricator-remarkup h3.remarkup-header {
font-size: 1.375em; font-size: 1.375em;
line-height: 1.375em; line-height: 1.375em;
margin: 16px 0 4px; margin: 16px 0 4px;
color: {$bluetext};
} }
.phabricator-remarkup h4.remarkup-header { .phabricator-remarkup h4.remarkup-header {
font-size: 1.25em; font-size: 1.25em;
line-height: 1.25em; line-height: 1.25em;
margin: 8px 0 4px; margin: 8px 0 4px;
color: {$bluetext};
} }
.phabricator-remarkup h5.remarkup-header { .phabricator-remarkup h5.remarkup-header {
font-size: 1.125em; font-size: 1.125em;
line-height: 1.125em; line-height: 1.125em;
margin: 4px 0; margin: 4px 0;
color: {$bluetext};
} }
.phabricator-remarkup h6.remarkup-header { .phabricator-remarkup h6.remarkup-header {
font-size: 1em; font-size: 1em;
line-height: 1em; line-height: 1em;
margin: 4px 0; margin: 4px 0;
color: {$bluetext};
} }
.phabricator-remarkup blockquote { .phabricator-remarkup blockquote {
@ -328,6 +322,12 @@
padding: 3px 6px; padding: 3px 6px;
} }
body div.phabricator-remarkup.remarkup-has-toc
.phabricator-remarkup-toc + .remarkup-header {
margin-top: 0;
padding-top: 0;
}
.phabricator-remarkup p:first-child, .phabricator-remarkup p:first-child,
.phabricator-remarkup ul.remarkup-list:first-child, .phabricator-remarkup ul.remarkup-list:first-child,
.phabricator-remarkup ol.remarkup-list:first-child, .phabricator-remarkup ol.remarkup-list:first-child,

View file

@ -34,6 +34,15 @@
line-height: 1.3em; line-height: 1.3em;
} }
.phui-font-source-sans .phabricator-remarkup h1.remarkup-header,
.phui-font-source-sans .phabricator-remarkup h2.remarkup-header,
.phui-font-source-sans .phabricator-remarkup h3.remarkup-header,
.phui-font-source-sans .phabricator-remarkup h4.remarkup-header,
.phui-font-source-sans .phabricator-remarkup h5.remarkup-header,
.phui-font-source-sans .phabricator-remarkup h6.remarkup-header {
color: {$bluetext};
}
.phui-font-source-sans .phabricator-remarkup h2.remarkup-header { .phui-font-source-sans .phabricator-remarkup h2.remarkup-header {
padding: 24px 24px 8px 0; padding: 24px 24px 8px 0;
border-bottom: 1px solid {$thinblueborder}; border-bottom: 1px solid {$thinblueborder};