mediawiki-skins-Citizen/resources/skins.citizen.styles/components/UserInfo.less
alistair3149 00b2495c1a
feat(core): use px for border-radius
- Move border radius calculation to CSS variable instead of LESS
- Rename CSS variable according to Codex, soft-deprecating the existing border radius
2024-07-05 13:24:31 -04:00

78 lines
1.4 KiB
Plaintext

.citizen-userInfo {
padding: var( --space-sm ) var( --space-md ) var( --space-md );
margin-bottom: var( --space-xs );
border-bottom: 1px solid var( --border-color-base );
&-title {
font-weight: var( --font-weight-medium );
}
&-title > div,
#pt-userpage-2 > a,
#pt-tmpuserpage-2 > span {
padding-top: var( --space-xxs );
padding-bottom: var( --space-xxs );
font-size: var( --font-size-medium );
color: var( --color-emphasized );
}
#pt-userpage-2 > a > span {
display: flex;
flex-grow: 1;
flex-wrap: wrap;
gap: var( --space-xs );
align-items: baseline;
}
#pt-tmpuserpage-2 > span {
display: block;
}
#pt-userpage-username {
font-size: var( --font-size-small );
color: var( --color-subtle );
}
&-text {
font-size: var( --font-size-small );
line-height: var( --line-height-sm );
color: var( --color-subtle );
+ .citizen-userInfo-edits {
margin-top: var( --space-sm );
}
}
&-usergroups {
display: flex;
flex-wrap: wrap;
gap: 0 var( --space-xs );
margin: 0;
list-style: none;
a {
color: var( --color-subtle );
}
}
&-edits {
&-count {
font-size: 1.75rem;
font-weight: var( --font-weight-medium );
color: var( --color-emphasized );
}
&-label {
font-size: var( --font-size-small );
color: var( --color-subtle );
letter-spacing: 0.05em;
}
}
}
#pt-userpage-2 > a {
padding-right: 0;
padding-left: 0;
border-radius: var( --border-radius-base );
}