Add verification

This commit is contained in:
Sofía Aritz 2023-10-25 20:47:35 +00:00
parent 6ffc88c95d
commit 048de08794

View file

@ -5,29 +5,71 @@
* The `theme-forgejo-auto` theme is also loaded there. * The `theme-forgejo-auto` theme is also loaded there.
**/ **/
:root {
--fj-tweaks--checkmark: "\2714";
--fj-tweaks--official-text: "Official Project";
--fj-tweaks--official-color: #3b913b;
--fj-tweaks--verified-text: "Verified User";
--fj-tweaks--verified-color: var(--color-primary);
}
/* Improve look of the repo listings */ /* Improve look of the repo listings */
.ui.repository.list .item .header .repo-title, .ui.user.list .item .header .repo-title { .ui.repository.list .item .header .repo-title, .ui.user.list .item .header .repo-title {
display: flex !important; display: flex !important;
gap: 1rem; gap: 1rem;
} }
.ui.repository.list .item .description .time, .ui.user.list .item .description .time { .ui.repository.list .item .description .time, .ui.user.list .item .description .time {
grid-row: auto !important; grid-row: auto !important;
grid-column: auto !important; grid-column: auto !important;
margin-left: 0 !important; margin-left: 0 !important;
text-align: left !important; text-align: left !important;
margin-top: 0.5rem; margin-top: 0.5rem;
margin-block: unset !important; margin-block: unset !important;
} }
/* Improve look of the profile page */ /* Improve look of the profile page */
div.page-content.user.profile div.ui.container div.ui.stackable.grid div.ui.four.wide.column { div.page-content.user.profile div.ui.container div.ui.stackable.grid div.ui.four.wide.column {
width: 20% !important; width: 20% !important;
} }
/* Align the top of the repo view */ /* Align the top of the repo view */
@media only screen and (min-width: 850px) { @media only screen and (min-width: 850px) {
.page-content.repository:not(.issues.repository.milestones) .header-wrapper > .ui.container:first-child { .page-content.repository:not(.issues.repository.milestones) .header-wrapper > .ui.container:first-child {
padding-left: 67px !important; padding-left: 67px !important;
} }
}
/* === Verified Users and Organizations === */
.ui.user.list a[href="/Infrastructure"]::after {
display: inline-block;
content: var(--fj-tweaks--checkmark);
color: var(--fj-tweaks--official-color);
border: solid 2px var(--fj-tweaks--official-color);
padding: 0 2px 1px 3px;
margin-left: 3px;
border-radius: 99999px;
}
.ui.user.list a[href="/Infrastructure"]:hover::after {
content: var(--fj-tweaks--official-text);
padding-left: 5px;
padding-right: 5px;
}
.ui.user.list a[href="/sofia"]::after {
display: inline-block;
content: var(--fj-tweaks--checkmark);
color: var(--fj-tweaks--verified-color);
border: solid 2px var(--fj-tweaks--verified-color);
padding: 0 2px 1px 3px;
margin-left: 3px;
border-radius: 99999px;
}
.ui.user.list a[href="/sofia"]:hover::after {
content: var(--fj-tweaks--verified-text);
padding-left: 5px;
padding-right: 5px;
} }