From 8bbcd896b80652a72a0e66c0b31787cd783cd91f Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 2 Nov 2015 12:35:33 -0800 Subject: [PATCH] Add styling for new Remarkup highlighter Summary: Adds some basic style to new !!Remarkup Highlighter!! Ref T5560 Test Plan: Wait for next diff. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T5560 Differential Revision: https://secure.phabricator.com/D14383 --- resources/celerity/map.php | 6 +++--- src/infrastructure/markup/PhabricatorMarkupEngine.php | 1 + webroot/rsrc/css/core/remarkup.css | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 387a834fde..eb94a7d4e9 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -7,7 +7,7 @@ */ return array( 'names' => array( - 'core.pkg.css' => 'fae3b050', + 'core.pkg.css' => 'dd913c69', 'core.pkg.js' => '47dc9ebb', 'darkconsole.pkg.js' => 'e7393ebb', 'differential.pkg.css' => '2de124c9', @@ -104,7 +104,7 @@ return array( 'rsrc/css/application/tokens/tokens.css' => '3d0f239e', 'rsrc/css/application/uiexample/example.css' => '528b19de', 'rsrc/css/core/core.css' => '78e8d7ea', - 'rsrc/css/core/remarkup.css' => 'f18999d1', + 'rsrc/css/core/remarkup.css' => '82f4e4c5', 'rsrc/css/core/syntax.css' => '9fd11da8', 'rsrc/css/core/z-index.css' => '57ddcaa2', 'rsrc/css/diviner/diviner-shared.css' => 'aa3656aa', @@ -736,7 +736,7 @@ return array( 'phabricator-object-selector-css' => '85ee8ce6', 'phabricator-phtize' => 'd254d646', 'phabricator-prefab' => '6920d200', - 'phabricator-remarkup-css' => 'f18999d1', + 'phabricator-remarkup-css' => '82f4e4c5', 'phabricator-search-results-css' => '7dea472c', 'phabricator-shaped-request' => '7cbe244b', 'phabricator-side-menu-view-css' => 'bec2458e', diff --git a/src/infrastructure/markup/PhabricatorMarkupEngine.php b/src/infrastructure/markup/PhabricatorMarkupEngine.php index c6babe99e0..ed51b00175 100644 --- a/src/infrastructure/markup/PhabricatorMarkupEngine.php +++ b/src/infrastructure/markup/PhabricatorMarkupEngine.php @@ -510,6 +510,7 @@ final class PhabricatorMarkupEngine extends Phobject { $rules[] = new PhutilRemarkupItalicRule(); $rules[] = new PhutilRemarkupDelRule(); $rules[] = new PhutilRemarkupUnderlineRule(); + $rules[] = new PhutilRemarkupHighlightRule(); foreach (self::loadCustomInlineRules() as $rule) { $rules[] = $rule; diff --git a/webroot/rsrc/css/core/remarkup.css b/webroot/rsrc/css/core/remarkup.css index 078e75af81..8da6c4e2f0 100644 --- a/webroot/rsrc/css/core/remarkup.css +++ b/webroot/rsrc/css/core/remarkup.css @@ -520,3 +520,7 @@ var.remarkup-assist-textarea { background: {$thinblueborder}; margin: 24px 0; } + +.phabricator-remarkup .remarkup-highlight { + background-color: {$lightviolet}; +}