Skip to content

Commit 1876bef

Browse files
author
epriestley
committed
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
1 parent d1d6924 commit 1876bef

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

resources/celerity/map.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
return array(
88
'names' =>
99
array(
10-
'core.pkg.css' => 'cd6367eb',
10+
'core.pkg.css' => '94fe8187',
1111
'core.pkg.js' => '417722ff',
1212
'darkconsole.pkg.js' => 'ca8671ce',
1313
'differential.pkg.css' => '8a064eb7',
@@ -106,7 +106,7 @@
106106
'rsrc/css/application/tokens/tokens.css' => '5f7bca25',
107107
'rsrc/css/application/uiexample/example.css' => '528b19de',
108108
'rsrc/css/core/core.css' => '7dff07c3',
109-
'rsrc/css/core/remarkup.css' => '98a7627b',
109+
'rsrc/css/core/remarkup.css' => '0ec9ea61',
110110
'rsrc/css/core/syntax.css' => '3c18c1cb',
111111
'rsrc/css/core/z-index.css' => '7e4989ed',
112112
'rsrc/css/diviner/diviner-shared.css' => '38813222',
@@ -713,7 +713,7 @@
713713
'phabricator-prefab' => '0326e5d0',
714714
'phabricator-profile-css' => '33e6f703',
715715
'phabricator-project-tag-css' => '095c9404',
716-
'phabricator-remarkup-css' => '98a7627b',
716+
'phabricator-remarkup-css' => '0ec9ea61',
717717
'phabricator-search-results-css' => 'f240504c',
718718
'phabricator-settings-css' => 'ea8f5915',
719719
'phabricator-shaped-request' => 'dfa181a4',

src/docs/user/userguide/remarkup.diviner

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,19 @@ As expected, this produces:
158158
-- Branch
159159
--- Twig
160160

161+
You can add checkboxes to items by prefacing them with `[ ]` or `[X]`, like
162+
this:
163+
164+
```
165+
- [X] Preheat oven to 450 degrees.
166+
- [ ] Zest 35 lemons.
167+
```
168+
169+
When rendered, this produces:
170+
171+
- [X] Preheat oven to 450 degrees.
172+
- [ ] Zest 35 lemons.
173+
161174
Make **code blocks** by indenting two spaces:
162175

163176
f(x, y);

webroot/rsrc/css/core/remarkup.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@
7171
margin: 12px 0 12px 30px;
7272
}
7373

74+
.phabricator-remarkup .remarkup-list-with-checkmarks {
75+
list-style: none;
76+
margin-left: 18px;
77+
}
78+
79+
.phabricator-remarkup .remarkup-list-with-checkmarks input {
80+
margin-right: 2px;
81+
}
82+
83+
.phabricator-remarkup .remarkup-list-with-checkmarks .remarkup-checked-item {
84+
color: {$greytext};
85+
}
86+
7487
.phabricator-remarkup ul ol,
7588
.phabricator-remarkup ul ul,
7689
.phabricator-remarkup ol ol,

0 commit comments

Comments
 (0)