mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Adjusted styling for user role badges in light and dark mode for improved consistency
This commit is contained in:
parent
a8ce77b1f7
commit
0b27a366ff
@ -13,10 +13,10 @@
|
||||
<div class="apps-card-right">
|
||||
<div class="apps-configured">
|
||||
{{#if user.isSuspended}}
|
||||
<span class="gh-badge author">Suspended</span>
|
||||
<span class="gh-badge suspended">Suspended</span>
|
||||
{{else}}
|
||||
{{#if user.isLocked}}
|
||||
<span class="gh-badge author">Locked</span>
|
||||
<span class="gh-badge locked">Locked</span>
|
||||
{{/if}}
|
||||
{{#unless this.session.user.isAuthorOrContributor}}
|
||||
{{#each user.roles as |role|}}
|
||||
|
@ -107,41 +107,48 @@
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
.gh-badge.owner {
|
||||
background: var(--darkgrey);
|
||||
background: var(--middarkgrey);
|
||||
text-transform: uppercase;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.gh-badge.administrator {
|
||||
background: var(--red);
|
||||
background: color-mod(var(--purple) a(15%));
|
||||
text-transform: uppercase;
|
||||
color: var(--white);
|
||||
color: var(--purple-d2);
|
||||
}
|
||||
|
||||
.gh-badge.editor {
|
||||
background: var(--blue);
|
||||
background: color-mod(var(--blue) a(20%));
|
||||
text-transform: uppercase;
|
||||
color: var(--white);
|
||||
color: var(--blue-d2);
|
||||
}
|
||||
|
||||
.gh-badge.contributor {
|
||||
background: var(--lightgrey);
|
||||
text-transform: uppercase;
|
||||
color: var(--middarkgrey);
|
||||
}
|
||||
|
||||
.gh-badge.author {
|
||||
background: color-mod(var(--green) a(20%));
|
||||
text-transform: uppercase;
|
||||
color: var(--green-d2);
|
||||
}
|
||||
|
||||
.gh-badge.suspended {
|
||||
background: var(--lightgrey);
|
||||
text-transform: uppercase;
|
||||
color: var(--middarkgrey);
|
||||
}
|
||||
|
||||
.gh-badge.locked {
|
||||
border: color-mod(var(--lightgrey) blackness(+8%)) 1px solid;
|
||||
color: color-mod(var(--midgrey) l(+5%));
|
||||
background: #fff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.gh-badge.suspended {
|
||||
font-size: 13px;
|
||||
margin-left: 16px;
|
||||
margin-top: 1px;
|
||||
padding: 6px 8px;
|
||||
border: color-mod(var(--midlightgrey) l(+10%)) 1px solid;
|
||||
background: transparent;
|
||||
color: var(--midgrey);
|
||||
}
|
||||
|
||||
|
||||
/* User invitation modal
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user