mirror of
https://github.com/go-gitea/gitea
synced 2024-11-14 01:35:54 +01:00
19993d8814
There was some recent discussion about this in Discord `ui-design` channel and the conclusion was that https://github.com/go-gitea/gitea/issues/24305 should have fixed their OS font installation to have semibold weights. I have now tested this 601 weight on a Windows 10 machine on Firefox myself, and I immediately noticed that bold was excessivly bold and rendering as 700 because browsers are biased towards bolder fonts. So revert this back to the previous value.
92 lines
1.5 KiB
CSS
92 lines
1.5 KiB
CSS
/* These are the remnants of the fomantic comment module */
|
|
/* TODO: remove all of these rules */
|
|
|
|
.ui.comments {
|
|
margin: 1.5em 0;
|
|
max-width: 650px;
|
|
}
|
|
|
|
.ui.comments:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.ui.comments:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.ui.comments .comment {
|
|
position: relative;
|
|
background: none;
|
|
margin: 0.5em 0 0;
|
|
padding: 0.5em 0 0;
|
|
border: none;
|
|
border-top: none;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.ui.comments .comment:first-child {
|
|
margin-top: 0;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.ui.comments .comment > .comments {
|
|
margin: 0 0 0.5em 0.5em;
|
|
padding: 1em 0 1em 1em;
|
|
}
|
|
|
|
.ui.comments .comment > .comments::before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.ui.comments .comment > .comments .comment {
|
|
border: none;
|
|
border-top: none;
|
|
background: none;
|
|
}
|
|
|
|
.ui.comments .comment .avatar {
|
|
float: left;
|
|
width: 2.5em;
|
|
}
|
|
|
|
.ui.comments .comment > .content {
|
|
display: block;
|
|
}
|
|
|
|
.ui.comments .comment > .avatar ~ .content {
|
|
margin-left: 3.5em;
|
|
}
|
|
|
|
.ui.comments .comment .author {
|
|
font-size: 1em;
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.ui.comments .comment a.author {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ui.comments .comment .metadata {
|
|
display: inline-block;
|
|
margin-left: 0.5em;
|
|
font-size: 0.875em;
|
|
}
|
|
|
|
.ui.comments .comment .metadata > * {
|
|
display: inline-block;
|
|
margin: 0 0.5em 0 0;
|
|
}
|
|
|
|
.ui.comments .comment .metadata > :last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.ui.comments .comment .text {
|
|
margin: 0.25em 0 0.5em;
|
|
font-size: 1em;
|
|
word-wrap: break-word;
|
|
line-height: 1.3;
|
|
}
|