1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/webroot/rsrc/css/application/search/search-results.css
epriestley 0efae2858e Don't syntax highlight codebase pattern search results
Summary:
Ref T5644. Ref T7472. Currently, we highlight each line of pattern search results in Diffusion.

  - This is incredibly slow for non-PHP languages which need to shell out to Pygments.
  - A lot of this highlighting isn't very useful anyway, because it doesn't have any context.

Instead, try to highlight pattern matches but don't highlight the source itself.

Test Plan: {F349637}

Reviewers: chad, btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T7472, T5644

Differential Revision: https://secure.phabricator.com/D12141
2015-03-24 12:47:28 -07:00

20 lines
343 B
CSS

/**
* @provides phabricator-search-results-css
*/
.phui-object-item-link strong {
background-color: {$lightyellow};
color: black;
padding: 0 4px;
border-radius: 3px;
}
.phui-source-fragment {
color: {$darkgreytext};
}
.phui-source-fragment strong {
background-color: {$lightyellow};
font-weight: normal;
color: #000000;
}