|
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: 1.15; |
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>');
|
@@ -518,6 +520,9 @@ a.label,
|
518 | 520 | .ui.menu .item {
|
519 | 521 | color: var(--color-text);
|
520 | 522 | user-select: auto;
|
| 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 */ |
521 | 526 | }
|
522 | 527 |
|
523 | 528 | .ui.menu .item > .svg {
|
@@ -664,6 +669,8 @@ a.label,
|
664 | 669 | .ui.secondary.menu .item {
|
665 | 670 | margin-left: 0;
|
666 | 671 | margin-right: 0;
|
| 672 | + padding-top: 10px; /* counteract line-height change */ |
| 673 | + padding-bottom: 10px; /* counteract line-height change */ |
667 | 674 | }
|
668 | 675 |
|
669 | 676 | .ui.secondary.menu .dropdown.item:hover,
|
@@ -1476,7 +1483,7 @@ img.ui.avatar,
|
1476 | 1483 | height: 3em;
|
1477 | 1484 | float: none;
|
1478 | 1485 | display: block;
|
1479 |
| - line-height: 1; |
| 1486 | + line-height: var(--line-height-default); |
1480 | 1487 | padding: 0;
|
1481 | 1488 | margin: 0 auto 0.5rem;
|
1482 | 1489 | opacity: 1;
|
@@ -2124,7 +2131,7 @@ table th[data-sortt-desc] .svg {
|
2124 | 2131 | .emoji,
|
2125 | 2132 | .reaction {
|
2126 | 2133 | font-size: 1.25em;
|
2127 |
| - line-height: 1; |
| 2134 | + line-height: var(--line-height-default); |
2128 | 2135 | font-style: normal !important;
|
2129 | 2136 | font-weight: var(--font-weight-normal) !important;
|
2130 | 2137 | vertical-align: -0.075em;
|
@@ -2247,7 +2254,7 @@ table th[data-sortt-desc] .svg {
|
2247 | 2254 | }
|
2248 | 2255 |
|
2249 | 2256 | .ui.dropdown {
|
2250 |
| - line-height: 1; /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */ |
| 2257 | + 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 */ |
2251 | 2258 | }
|
2252 | 2259 |
|
2253 | 2260 | /* dropdown has some kinds of icons:
|
|
0 commit comments