loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use line-height: normal by default (#26635)

Fix #26537 again because 1.15 is too small for some fonts.

authored by

wxiaoguang and committed by
GitHub
8f2e2878 75689b89

+2 -6
+1 -5
web_src/css/base.css
··· 10 10 --font-weight-semibold: 600; 11 11 --font-weight-bold: 700; 12 12 /* line-height: use the default value as "modules/normalize.css" */ 13 - --line-height-default: 1.15; 13 + --line-height-default: normal; 14 14 /* backgrounds */ 15 15 --checkbox-mask-checked: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 18 18" width="16" height="16"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>'); 16 16 --checkbox-mask-indeterminate: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"></path></svg>'); ··· 521 521 color: var(--color-text); 522 522 user-select: auto; 523 523 line-height: var(--line-height-default); /* fomantic uses "1" which causes overflow problems because "1" doesn't consider the descent part */ 524 - padding-top: 11px; /* counteract line-height change */ 525 - padding-bottom: 11px; /* counteract line-height change */ 526 524 } 527 525 528 526 .ui.menu .item > .svg { ··· 669 667 .ui.secondary.menu .item { 670 668 margin-left: 0; 671 669 margin-right: 0; 672 - padding-top: 10px; /* counteract line-height change */ 673 - padding-bottom: 10px; /* counteract line-height change */ 674 670 } 675 671 676 672 .ui.secondary.menu .dropdown.item:hover,
+1 -1
web_src/css/modules/normalize.css
··· 25 25 } 26 26 27 27 html { 28 - line-height: 1.15; /* 1. Correct the line height in all browsers. */ 28 + line-height: normal; /* 1. (not following the "modern-normalize") Do not change the browser's default line-height, the default value is font-dependent and roughly 1.2 */ 29 29 -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */ 30 30 } 31 31