1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 07:50:57 +01:00
phorge-phorge/webroot/rsrc/css/phui/phui-fontkit.css
Chad Little 0a8eee37a1 Bump monospace font +1px when using Source Sans Pro
Summary: This diff moves the default monospace font from a Global Default config value to CSS. What this will allow is some flexibility in changing this font in other areas (like Diviner and DocumentView) without changing the defaults globally. However if the admin sets a config value or a user sets a config value, that value will trump all settings in the CSS files with an !important declaration in the page head.

Test Plan:
Currently tested:

- Setting no value
- Setting an admin value
- Setting a user value

Verify remarkup blocks in Differential, Diviner, Conpherence, and Diffusion look as expected.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11597
2015-02-28 14:37:31 -08:00

96 lines
2.3 KiB
CSS

/**
* @provides phui-fontkit-css
*/
.phui-font-source-sans {
font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
font-size: 15px;
font-weight: 400;
line-height: 20px;
}
.phui-font-source-sans.conpherence-message-pane,
.phui-font-source-sans.conpherence-message-pane .remarkup-assist-textarea {
font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 18px;
}
.PhabricatorMonospaced .phui-document-view .phui-font-source-sans,
.phui-document-view .phui-font-source-sans .phabricator-remarkup
.remarkup-code-block .remarkup-code {
font-size: 11px;
line-height: 1.3em;
}
.platform-windows .PhabricatorMonospaced .phui-document-view
.phui-font-source-sans,
.platform-windows .phui-document-view .phui-font-source-sans
.phabricator-remarkup .remarkup-code-block .remarkup-code {
font-size: 12px;
line-height: 1.3em;
}
.phui-font-source-sans .phabricator-remarkup h2.remarkup-header {
padding: 8px 24px 8px 0;
border-bottom: 1px solid {$thinblueborder};
font-size: 20px;
font-weight: 400;
color: {$bluetext};
margin: 0 0 16px;
}
.phui-font-source-sans .phabricator-remarkup ol li.remarkup-list-item,
.phui-font-source-sans .phabricator-remarkup ul li.remarkup-list-item {
margin-bottom: 4px;
}
.phui-font-source-sans .phabricator-remarkup tt.remarkup-monospaced {
font-size: 13px;
padding: 1px 3px 2px;
}
.diviner-view .phui-font-source-sans .phui-property-list-section,
.legalpad .phui-font-source-sans .phui-property-list-section {
border-bottom: 1px solid {$thinblueborder};
margin-bottom: 8px;
background: {$lightgreybackground};
}
.phui-font-source-sans .phui-property-list-text-content {
background: {$lightgreybackground};
padding: 0;
}
.phui-font-source-sans .phui-property-list-container {
padding-bottom: 6px;
font: {$basefont};
line-height: 16px;
}
.phui-font-source-sans .phabricator-action-view {
font: {$basefont};
font-size: 12px;
}
.phui-font-source-sans a.atom-ref,
.phui-font-source-sans a.remarkup-link {
color: {$blue};
}
body .phui-font-source-sans
.phui-header-shell.phui-bleed-header .phui-header-view {
font-size: 18px;
}
.phui-font-source-sans .phui-form-view {
font: {$basefont};
font-weight: normal;
}
.phui-font-source-sans .phui-tag-shade .phui-icon-view {
font-size: 13px;
top: 4px;
left: 6px;
}