mirror of
https://github.com/ppy/osu
synced 2025-01-10 08:09:40 +00:00
change line spacing to 21
We use margin bottom in osu-web markdown paragraph[1] as reference for this line spacing value. The value from osu-web itself is 1.5em[2]. Because the base font size of the paragraph is 14px[3][4], the actual value is 14 * 1.5 = 21px [1]376cac43a0/resources/assets/less/bem/osu-md.less (L230)
[2]376cac43a0/resources/assets/less/variables.less (L58)
[3]376cac43a0/resources/assets/less/bem/osu-md.less (L9)
[4]376cac43a0/resources/assets/less/variables.less (L161)
This commit is contained in:
parent
91283d41ce
commit
ba634cbf11
@ -16,6 +16,11 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
{
|
||||
public class OsuMarkdownContainer : MarkdownContainer
|
||||
{
|
||||
public OsuMarkdownContainer()
|
||||
{
|
||||
LineSpacing = 21;
|
||||
}
|
||||
|
||||
protected override void AddMarkdownComponent(IMarkdownObject markdownObject, FillFlowContainer container, int level)
|
||||
{
|
||||
switch (markdownObject)
|
||||
|
Loading…
Reference in New Issue
Block a user