mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Move code examples in remarkup to grey backgrounds
Summary: This should make code easier to read. Right now large blocks get a really bright treatment, and this should tone it down. Also upped the spacing a bit. Test Plan: Review Remarkup Examples from Diviner, also some test code blocks and counter examples. {F1081606} {F1081607} Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15141
This commit is contained in:
parent
b8139e6946
commit
8c3f355a95
3 changed files with 24 additions and 15 deletions
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'names' => array(
|
'names' => array(
|
||||||
'core.pkg.css' => '8abb1666',
|
'core.pkg.css' => '5e4df064',
|
||||||
'core.pkg.js' => 'a79eed25',
|
'core.pkg.js' => 'a79eed25',
|
||||||
'darkconsole.pkg.js' => 'e7393ebb',
|
'darkconsole.pkg.js' => 'e7393ebb',
|
||||||
'differential.pkg.css' => '2de124c9',
|
'differential.pkg.css' => '2de124c9',
|
||||||
|
@ -103,7 +103,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' => '5b3563c8',
|
'rsrc/css/core/core.css' => '5b3563c8',
|
||||||
'rsrc/css/core/remarkup.css' => '64277c02',
|
'rsrc/css/core/remarkup.css' => 'e1c8b32f',
|
||||||
'rsrc/css/core/syntax.css' => '9fd11da8',
|
'rsrc/css/core/syntax.css' => '9fd11da8',
|
||||||
'rsrc/css/core/z-index.css' => 'a36a45da',
|
'rsrc/css/core/z-index.css' => 'a36a45da',
|
||||||
'rsrc/css/diviner/diviner-shared.css' => 'aa3656aa',
|
'rsrc/css/diviner/diviner-shared.css' => 'aa3656aa',
|
||||||
|
@ -128,7 +128,7 @@ return array(
|
||||||
'rsrc/css/phui/phui-crumbs-view.css' => '414406b5',
|
'rsrc/css/phui/phui-crumbs-view.css' => '414406b5',
|
||||||
'rsrc/css/phui/phui-document-pro.css' => '8799acf7',
|
'rsrc/css/phui/phui-document-pro.css' => '8799acf7',
|
||||||
'rsrc/css/phui/phui-document-summary.css' => '9ca48bdf',
|
'rsrc/css/phui/phui-document-summary.css' => '9ca48bdf',
|
||||||
'rsrc/css/phui/phui-document.css' => 'a4a1c3b9',
|
'rsrc/css/phui/phui-document.css' => '9c71d2bf',
|
||||||
'rsrc/css/phui/phui-feed-story.css' => 'b7b26d23',
|
'rsrc/css/phui/phui-feed-story.css' => 'b7b26d23',
|
||||||
'rsrc/css/phui/phui-fontkit.css' => '9cda225e',
|
'rsrc/css/phui/phui-fontkit.css' => '9cda225e',
|
||||||
'rsrc/css/phui/phui-form-view.css' => '4a1a0f5e',
|
'rsrc/css/phui/phui-form-view.css' => '4a1a0f5e',
|
||||||
|
@ -759,7 +759,7 @@ return array(
|
||||||
'phabricator-object-selector-css' => '85ee8ce6',
|
'phabricator-object-selector-css' => '85ee8ce6',
|
||||||
'phabricator-phtize' => 'd254d646',
|
'phabricator-phtize' => 'd254d646',
|
||||||
'phabricator-prefab' => 'e67df814',
|
'phabricator-prefab' => 'e67df814',
|
||||||
'phabricator-remarkup-css' => '64277c02',
|
'phabricator-remarkup-css' => 'e1c8b32f',
|
||||||
'phabricator-search-results-css' => '7dea472c',
|
'phabricator-search-results-css' => '7dea472c',
|
||||||
'phabricator-shaped-request' => '7cbe244b',
|
'phabricator-shaped-request' => '7cbe244b',
|
||||||
'phabricator-side-menu-view-css' => '3a3d9f41',
|
'phabricator-side-menu-view-css' => '3a3d9f41',
|
||||||
|
@ -801,7 +801,7 @@ return array(
|
||||||
'phui-calendar-month-css' => '476be7e0',
|
'phui-calendar-month-css' => '476be7e0',
|
||||||
'phui-crumbs-view-css' => '414406b5',
|
'phui-crumbs-view-css' => '414406b5',
|
||||||
'phui-document-summary-view-css' => '9ca48bdf',
|
'phui-document-summary-view-css' => '9ca48bdf',
|
||||||
'phui-document-view-css' => 'a4a1c3b9',
|
'phui-document-view-css' => '9c71d2bf',
|
||||||
'phui-document-view-pro-css' => '8799acf7',
|
'phui-document-view-pro-css' => '8799acf7',
|
||||||
'phui-feed-story-css' => 'b7b26d23',
|
'phui-feed-story-css' => 'b7b26d23',
|
||||||
'phui-font-icon-base-css' => 'ecbbb4c2',
|
'phui-font-icon-base-css' => 'ecbbb4c2',
|
||||||
|
|
|
@ -13,12 +13,12 @@
|
||||||
|
|
||||||
.PhabricatorMonospaced,
|
.PhabricatorMonospaced,
|
||||||
.phabricator-remarkup .remarkup-code-block .remarkup-code {
|
.phabricator-remarkup .remarkup-code-block .remarkup-code {
|
||||||
font: 10px/13px "Menlo", "Consolas", "Monaco", monospace;
|
font: 11px/15px "Menlo", "Consolas", "Monaco", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.platform-windows .PhabricatorMonospaced,
|
.platform-windows .PhabricatorMonospaced,
|
||||||
.platform-windows .phabricator-remarkup .remarkup-code-block .remarkup-code {
|
.platform-windows .phabricator-remarkup .remarkup-code-block .remarkup-code {
|
||||||
font: 11px/13px "Menlo", "Consolas", "Monaco", monospace;
|
font: 12px/15px "Menlo", "Consolas", "Monaco", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.phabricator-remarkup .remarkup-code-block {
|
.phabricator-remarkup .remarkup-code-block {
|
||||||
|
@ -27,28 +27,33 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.phabricator-remarkup .remarkup-code-header {
|
.phabricator-remarkup .remarkup-code-header {
|
||||||
padding: 2px 8px;
|
padding: 6px 12px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background: {$sh-yellowbackground};
|
background: rgba(71,87,120,0.08);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.phabricator-remarkup .code-block-counterexample .remarkup-code-header {
|
.phabricator-remarkup .code-block-counterexample .remarkup-code-header {
|
||||||
background-color: {$sh-redbackground};
|
background-color: {$sh-redbackground};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.phabricator-remarkup .remarkup-code-block .remarkup-code-header + pre {
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.phabricator-remarkup .remarkup-code-block pre {
|
.phabricator-remarkup .remarkup-code-block pre {
|
||||||
background: #FEF9ED;
|
background: rgba(71,87,120,0.08);
|
||||||
border: 1px solid {$sh-lightyellowborder};
|
|
||||||
display: block;
|
display: block;
|
||||||
color: #000;
|
color: #000;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 8px;
|
padding: 12px;
|
||||||
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.phabricator-remarkup pre.remarkup-counterexample {
|
.phabricator-remarkup pre.remarkup-counterexample {
|
||||||
border: 1px solid {$sh-lightredborder};
|
|
||||||
background-color: {$sh-redbackground};
|
background-color: {$sh-redbackground};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +71,10 @@
|
||||||
color: {$anchor};
|
color: {$anchor};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.phabricator-remarkup .remarkup-header tt.remarkup-monospaced {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.phabricator-remarkup ul.remarkup-list {
|
.phabricator-remarkup ul.remarkup-list {
|
||||||
list-style: disc;
|
list-style: disc;
|
||||||
margin: 12px 0 12px 30px;
|
margin: 12px 0 12px 30px;
|
||||||
|
|
|
@ -151,11 +151,11 @@ body .phui-document-view .phui-header-shell.phui-bleed-header {
|
||||||
|
|
||||||
.phui-document-view .PhabricatorMonospaced,
|
.phui-document-view .PhabricatorMonospaced,
|
||||||
.phui-document-view .phabricator-remarkup .remarkup-code-block .remarkup-code {
|
.phui-document-view .phabricator-remarkup .remarkup-code-block .remarkup-code {
|
||||||
font: 11px/16px "Menlo", "Consolas", "Monaco", monospace;
|
font: 12px/18px "Menlo", "Consolas", "Monaco", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.platform-windows .phui-document-view .PhabricatorMonospaced,
|
.platform-windows .phui-document-view .PhabricatorMonospaced,
|
||||||
.platform-windows .phui-document-view .phabricator-remarkup .remarkup-code-block
|
.platform-windows .phui-document-view .phabricator-remarkup .remarkup-code-block
|
||||||
.remarkup-code {
|
.remarkup-code {
|
||||||
font: 12px/16px "Menlo", "Consolas", "Monaco", monospace;
|
font: 13px/18px "Menlo", "Consolas", "Monaco", monospace;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue