|
9 | 9 | --font-weight-medium: 500;
|
10 | 10 | --font-weight-semibold: 600;
|
11 | 11 | --font-weight-bold: 700;
|
| 12 | + /* line-height: use the default value as "modules/normalize.css" */ |
| 13 | + --line-height-default: normal; |
12 | 14 | /* backgrounds */
|
13 | 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>');
|
14 | 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>');
|
@@ -509,6 +511,7 @@ a.label,
|
509 | 511 | .ui.menu .item {
|
510 | 512 | color: var(--color-text);
|
511 | 513 | user-select: auto;
|
| 514 | + line-height: var(--line-height-default); /* fomantic uses "1" which causes overflow problems because "1" doesn't consider the descent part */ |
512 | 515 | }
|
513 | 516 |
|
514 | 517 | .ui.menu .item > .svg {
|
@@ -1517,7 +1520,7 @@ img.ui.avatar,
|
1517 | 1520 | height: 3em;
|
1518 | 1521 | float: none;
|
1519 | 1522 | display: block;
|
1520 |
| - line-height: 1; |
| 1523 | + line-height: var(--line-height-default); |
1521 | 1524 | padding: 0;
|
1522 | 1525 | margin: 0 auto 0.5rem;
|
1523 | 1526 | opacity: 1;
|
@@ -2170,7 +2173,7 @@ table th[data-sortt-desc] .svg {
|
2170 | 2173 | .emoji,
|
2171 | 2174 | .reaction {
|
2172 | 2175 | font-size: 1.25em;
|
2173 |
| - line-height: 1; |
| 2176 | + line-height: var(--line-height-default); |
2174 | 2177 | font-style: normal !important;
|
2175 | 2178 | font-weight: var(--font-weight-normal) !important;
|
2176 | 2179 | vertical-align: -0.075em;
|
@@ -2294,7 +2297,7 @@ table th[data-sortt-desc] .svg {
|
2294 | 2297 | }
|
2295 | 2298 |
|
2296 | 2299 | .ui.dropdown {
|
2297 |
| - line-height: 1em; /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */ |
| 2300 | + line-height: var(--line-height-default); /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */ |
2298 | 2301 | }
|
2299 | 2302 |
|
2300 | 2303 | /* dropdown has some kinds of icons:
|
|
0 commit comments