Path: blob/master/src/packages/frontend/editors/slate/elements/elements.css
1700 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45/*6CSS to handle tight/nontight lists.78ALSO, importantly, we handle the fact that lists in slate end up9getting entries somewhat renadomly wrapped in paragraphs or not.10When the markdown is loaded everything is wrapped in paragraphs;11however, when creating new lines, they might not be. We might12change/fix this, but in any case it's nice to be able to ensure13things don't look all wrong by getting rid of the paragraph margin14inside of lists. Also, eliminating this paragraph margin means we15don't have to compensate for it using negative margins.16*/1718.cocalc-slate-tight-list > li > p {19margin-bottom: 0em;20}21.cocalc-slate-nontight-list > li > p {22margin-bottom: 0em;23}2425.cocalc-slate-nontight-list > li {26margin-bottom: 1em;27}28293031