From 1876bef404633298c78ac2223fbdbfc6ab1b642d Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 1 May 2014 17:53:34 -0700 Subject: [PATCH] Add CSS and docs for remarkup checkbox list styles Summary: See D8931. Ref T3945. CSS for the checkmark styles. Test Plan: {F149713} Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T3945 Differential Revision: https://secure.phabricator.com/D8932 --- resources/celerity/map.php | 6 +++--- src/docs/user/userguide/remarkup.diviner | 13 +++++++++++++ webroot/rsrc/css/core/remarkup.css | 13 +++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index d065849bb7..88542a7e66 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -7,7 +7,7 @@ return array( 'names' => array( - 'core.pkg.css' => 'cd6367eb', + 'core.pkg.css' => '94fe8187', 'core.pkg.js' => '417722ff', 'darkconsole.pkg.js' => 'ca8671ce', 'differential.pkg.css' => '8a064eb7', @@ -106,7 +106,7 @@ return array( 'rsrc/css/application/tokens/tokens.css' => '5f7bca25', 'rsrc/css/application/uiexample/example.css' => '528b19de', 'rsrc/css/core/core.css' => '7dff07c3', - 'rsrc/css/core/remarkup.css' => '98a7627b', + 'rsrc/css/core/remarkup.css' => '0ec9ea61', 'rsrc/css/core/syntax.css' => '3c18c1cb', 'rsrc/css/core/z-index.css' => '7e4989ed', 'rsrc/css/diviner/diviner-shared.css' => '38813222', @@ -713,7 +713,7 @@ return array( 'phabricator-prefab' => '0326e5d0', 'phabricator-profile-css' => '33e6f703', 'phabricator-project-tag-css' => '095c9404', - 'phabricator-remarkup-css' => '98a7627b', + 'phabricator-remarkup-css' => '0ec9ea61', 'phabricator-search-results-css' => 'f240504c', 'phabricator-settings-css' => 'ea8f5915', 'phabricator-shaped-request' => 'dfa181a4', diff --git a/src/docs/user/userguide/remarkup.diviner b/src/docs/user/userguide/remarkup.diviner index ab671649e1..37f1b0a6db 100644 --- a/src/docs/user/userguide/remarkup.diviner +++ b/src/docs/user/userguide/remarkup.diviner @@ -158,6 +158,19 @@ As expected, this produces: -- Branch --- Twig +You can add checkboxes to items by prefacing them with `[ ]` or `[X]`, like +this: + +``` + - [X] Preheat oven to 450 degrees. + - [ ] Zest 35 lemons. +``` + +When rendered, this produces: + + - [X] Preheat oven to 450 degrees. + - [ ] Zest 35 lemons. + Make **code blocks** by indenting two spaces: f(x, y); diff --git a/webroot/rsrc/css/core/remarkup.css b/webroot/rsrc/css/core/remarkup.css index 3f65938b4a..f8b3209f9c 100644 --- a/webroot/rsrc/css/core/remarkup.css +++ b/webroot/rsrc/css/core/remarkup.css @@ -71,6 +71,19 @@ margin: 12px 0 12px 30px; } +.phabricator-remarkup .remarkup-list-with-checkmarks { + list-style: none; + margin-left: 18px; +} + +.phabricator-remarkup .remarkup-list-with-checkmarks input { + margin-right: 2px; +} + +.phabricator-remarkup .remarkup-list-with-checkmarks .remarkup-checked-item { + color: {$greytext}; +} + .phabricator-remarkup ul ol, .phabricator-remarkup ul ul, .phabricator-remarkup ol ol,