1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-08 21:08:29 +01:00

Use Source Sans for Phriction

Summary: Adds Phriction to list of apps that use Source Sans as default font in addition to Legalpad and Diviner.

Test Plan: Tested various layouts imported from secure. Should be reasonably tested, but will follow up on secure.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10064
This commit is contained in:
Chad Little 2014-07-28 10:36:16 -07:00
parent 0c15ad5d5c
commit 4c767c2803
7 changed files with 28 additions and 13 deletions

View file

@ -7,7 +7,7 @@
*/ */
return array( return array(
'names' => array( 'names' => array(
'core.pkg.css' => '5a12afbf', 'core.pkg.css' => 'cd8c18d3',
'core.pkg.js' => 'ba6a742f', 'core.pkg.js' => 'ba6a742f',
'darkconsole.pkg.js' => 'df001cab', 'darkconsole.pkg.js' => 'df001cab',
'differential.pkg.css' => '4a93db37', 'differential.pkg.css' => '4a93db37',
@ -105,7 +105,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' => '40151074', 'rsrc/css/core/core.css' => '40151074',
'rsrc/css/core/remarkup.css' => '9b5d1f91', 'rsrc/css/core/remarkup.css' => '7fd5585f',
'rsrc/css/core/syntax.css' => '3c18c1cb', 'rsrc/css/core/syntax.css' => '3c18c1cb',
'rsrc/css/core/z-index.css' => 'd1c137f2', 'rsrc/css/core/z-index.css' => 'd1c137f2',
'rsrc/css/diviner/diviner-shared.css' => '38813222', 'rsrc/css/diviner/diviner-shared.css' => '38813222',
@ -127,7 +127,7 @@ return array(
'rsrc/css/phui/phui-button.css' => 'c7412aa1', 'rsrc/css/phui/phui-button.css' => 'c7412aa1',
'rsrc/css/phui/phui-document.css' => 'a5615198', 'rsrc/css/phui/phui-document.css' => 'a5615198',
'rsrc/css/phui/phui-feed-story.css' => 'e2c9bc83', 'rsrc/css/phui/phui-feed-story.css' => 'e2c9bc83',
'rsrc/css/phui/phui-fontkit.css' => 'abeb59f0', 'rsrc/css/phui/phui-fontkit.css' => '1502a718',
'rsrc/css/phui/phui-form-view.css' => 'ebac1b1d', 'rsrc/css/phui/phui-form-view.css' => 'ebac1b1d',
'rsrc/css/phui/phui-form.css' => 'b78ec020', 'rsrc/css/phui/phui-form.css' => 'b78ec020',
'rsrc/css/phui/phui-header-view.css' => '39594ac0', 'rsrc/css/phui/phui-header-view.css' => '39594ac0',
@ -739,7 +739,7 @@ return array(
'phabricator-phtize' => 'd254d646', 'phabricator-phtize' => 'd254d646',
'phabricator-prefab' => 'bbae734c', 'phabricator-prefab' => 'bbae734c',
'phabricator-profile-css' => 'b459416e', 'phabricator-profile-css' => 'b459416e',
'phabricator-remarkup-css' => '9b5d1f91', 'phabricator-remarkup-css' => '7fd5585f',
'phabricator-search-results-css' => 'f240504c', 'phabricator-search-results-css' => 'f240504c',
'phabricator-shaped-request' => '7cbe244b', 'phabricator-shaped-request' => '7cbe244b',
'phabricator-side-menu-view-css' => 'a2ccd7bd', 'phabricator-side-menu-view-css' => 'a2ccd7bd',
@ -780,7 +780,7 @@ return array(
'phui-document-view-css' => 'a5615198', 'phui-document-view-css' => 'a5615198',
'phui-feed-story-css' => 'e2c9bc83', 'phui-feed-story-css' => 'e2c9bc83',
'phui-font-icon-base-css' => 'eb84f033', 'phui-font-icon-base-css' => 'eb84f033',
'phui-fontkit-css' => 'abeb59f0', 'phui-fontkit-css' => '1502a718',
'phui-form-css' => 'b78ec020', 'phui-form-css' => 'b78ec020',
'phui-form-view-css' => 'ebac1b1d', 'phui-form-view-css' => 'ebac1b1d',
'phui-header-view-css' => '39594ac0', 'phui-header-view-css' => '39594ac0',

View file

@ -121,6 +121,7 @@ final class DivinerAtomController extends DivinerController {
$document = id(new PHUIDocumentView()) $document = id(new PHUIDocumentView())
->setBook($book->getTitle(), $group_name) ->setBook($book->getTitle(), $group_name)
->setHeader($header) ->setHeader($header)
->addClass('diviner-view')
->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS) ->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS)
->appendChild($properties) ->appendChild($properties)
->appendChild($warnings) ->appendChild($warnings)

View file

@ -38,6 +38,8 @@ final class DivinerBookController extends DivinerController {
$document = new PHUIDocumentView(); $document = new PHUIDocumentView();
$document->setHeader($header); $document->setHeader($header);
$document->addClass('diviner-view');
$document->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS); $document->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS);
$properties = $this->buildPropertyList($book); $properties = $this->buildPropertyList($book);

View file

@ -33,6 +33,7 @@ final class DivinerMainController extends DivinerController {
$document = new PHUIDocumentView(); $document = new PHUIDocumentView();
$document->setHeader($header); $document->setHeader($header);
$document->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS); $document->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS);
$document->addClass('diviner-view');
if ($books) { if ($books) {
$books = msort($books, 'getTitle'); $books = msort($books, 'getTitle');

View file

@ -208,6 +208,7 @@ final class PhrictionDocumentController
$page_content = id(new PHUIDocumentView()) $page_content = id(new PHUIDocumentView())
->setOffset(true) ->setOffset(true)
->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS)
->setHeader($header) ->setHeader($header)
->appendChild( ->appendChild(
array( array(

View file

@ -238,15 +238,15 @@
.phabricator-remarkup-toc { .phabricator-remarkup-toc {
float: right; float: right;
border: 1px solid {$lightblueborder}; border-left: 1px solid {$lightblueborder};
background: {$lightgreybackground}; background: #fff;
padding: 8px; width: 160px;
width: 180px; padding-left: 8px;
margin: 0 0 4px 8px; margin: 0 0 4px 8px;
} }
.phabricator-remarkup-toc-header { .phabricator-remarkup-toc-header {
font-size: 12px; font-size: 13px;
line-height: 12px; line-height: 12px;
color: {$darkbluetext}; color: {$darkbluetext};
font-weight: bold; font-weight: bold;
@ -261,13 +261,16 @@
} }
.phabricator-remarkup-toc ul ul { .phabricator-remarkup-toc ul ul {
margin: 0 0 0 10px; margin: 0 0 0 8px;
} }
.phabricator-remarkup-toc ul li { .phabricator-remarkup-toc ul li {
padding: 0; padding: 0;
margin: 0; margin: 0;
font-size: 11px; font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.phabricator-remarkup-embed-layout-right { .phabricator-remarkup-embed-layout-right {

View file

@ -28,7 +28,7 @@
padding: 1px 3px 2px; padding: 1px 3px 2px;
} }
.phui-font-source-sans .phui-property-list-section { .diviner-view .phui-font-source-sans .phui-property-list-section {
border-bottom: 1px solid {$thinblueborder}; border-bottom: 1px solid {$thinblueborder};
margin-bottom: 8px; margin-bottom: 8px;
background: {$lightgreybackground}; background: {$lightgreybackground};
@ -41,6 +41,13 @@
.phui-font-source-sans .phui-property-list-container { .phui-font-source-sans .phui-property-list-container {
padding-bottom: 6px; padding-bottom: 6px;
font-family: 'Helvetica Neue', Arial, sans-serif;
font-size: 13px;
line-height: 16px;
}
.phui-font-source-sans .phabricator-action-view {
font-family: 'Helvetica Neue', Arial, sans-serif;
} }
.phui-font-source-sans a.remarkup-link { .phui-font-source-sans a.remarkup-link {