Skip to content

Commit e7d18be

Browse files
committed
Reduce emoji size (go-gitea#12317)
* Reduce emoji size Rendering should now pretty much match GitHub with 1.25em. I verified that emojis don't increase the line height and removed unecessary size overrides because now all emojis should appear similar in relation to the font size. * fix reaction hover
1 parent 9a79b47 commit e7d18be

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

web_src/less/_base.less

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,33 +1271,18 @@ i.icon.centerlock {
12711271

12721272
.emoji,
12731273
.reaction {
1274-
font-size: 1.5em;
1275-
line-height: 1.2;
1274+
font-size: 1.25em;
1275+
line-height: 1;
12761276
font-style: normal !important;
12771277
font-weight: normal !important;
1278-
vertical-align: middle;
1279-
}
1280-
1281-
#issue-title > .emoji {
1282-
font-size: 1em;
1283-
}
1284-
1285-
.commit-summary > .emoji {
1286-
font-size: 1em;
1287-
}
1288-
1289-
.label > .emoji {
1290-
font-size: 1em;
1278+
vertical-align: -.075em;
12911279
}
12921280

1293-
.dropdown .emoji {
1294-
font-size: 1em;
1295-
}
12961281
.emoji img,
12971282
.reaction img {
12981283
border-width: 0 !important;
12991284
margin: 0 !important;
13001285
width: 1em !important;
13011286
height: 1em !important;
1302-
vertical-align: middle !important;
1287+
vertical-align: -.15em;
13031288
}

web_src/less/_repository.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,7 @@
22462246
.select-reaction {
22472247
display: flex;
22482248
align-items: center;
2249-
padding: .5rem;
2249+
padding: 0 .5rem;
22502250

22512251
&:not(.active) a {
22522252
display: none;

0 commit comments

Comments
 (0)