mirror of https://github.com/ppy/osu
change heading font size
Heading 1 : 30px -31579d45aa/resources/assets/less/base.less (L12-L16)
Heading 2 : 26px -31579d45aa/resources/assets/less/bem/osu-md.less (L133-L134)
-31579d45aa/resources/assets/less/variables.less (L169)
Heading 3 : 20px -31579d45aa/resources/assets/less/bem/osu-md.less (L147-L148)
-31579d45aa/resources/assets/less/variables.less (L170)
-31579d45aa/resources/assets/less/variables.less (L154)
Heading 4 : 18px -31579d45aa/resources/assets/less/bem/osu-md.less (L160-L161)
-31579d45aa/resources/assets/less/variables.less (L171)
-31579d45aa/resources/assets/less/variables.less (L153)
Heading 5 : 16px -31579d45aa/resources/assets/less/bem/osu-md.less (L174-L175)
-31579d45aa/resources/assets/less/variables.less (L172)
-31579d45aa/resources/assets/less/variables.less (L152)
Heading 6 : 14px -31579d45aa/resources/assets/less/bem/osu-md.less (L183-L184)
-31579d45aa/resources/assets/less/variables.less (L173)
-31579d45aa/resources/assets/less/variables.less (L150)
This commit is contained in:
parent
b497785416
commit
3e7df3bf02
|
@ -12,5 +12,31 @@ public OsuMarkdownHeading(HeadingBlock headingBlock)
|
|||
: base(headingBlock)
|
||||
{
|
||||
}
|
||||
|
||||
protected override float GetFontSizeByLevel(int level)
|
||||
{
|
||||
const float base_font_size = 14;
|
||||
|
||||
switch (level)
|
||||
{
|
||||
case 1:
|
||||
return 30 / base_font_size;
|
||||
|
||||
case 2:
|
||||
return 26 / base_font_size;
|
||||
|
||||
case 3:
|
||||
return 20 / base_font_size;
|
||||
|
||||
case 4:
|
||||
return 18 / base_font_size;
|
||||
|
||||
case 5:
|
||||
return 16 / base_font_size;
|
||||
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue