Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/editors/slate/elements/elements.css
1700 views
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
/*
7
CSS to handle tight/nontight lists.
8
9
ALSO, importantly, we handle the fact that lists in slate end up
10
getting entries somewhat renadomly wrapped in paragraphs or not.
11
When the markdown is loaded everything is wrapped in paragraphs;
12
however, when creating new lines, they might not be. We might
13
change/fix this, but in any case it's nice to be able to ensure
14
things don't look all wrong by getting rid of the paragraph margin
15
inside of lists. Also, eliminating this paragraph margin means we
16
don't have to compensate for it using negative margins.
17
*/
18
19
.cocalc-slate-tight-list > li > p {
20
margin-bottom: 0em;
21
}
22
.cocalc-slate-nontight-list > li > p {
23
margin-bottom: 0em;
24
}
25
26
.cocalc-slate-nontight-list > li {
27
margin-bottom: 1em;
28
}
29
30
31