mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 13:05:50 +08:00
af89b23f67
* refactor: Avatar classes refactor * refactor: Badge classes refactor * chore: Remove commented dead code * chore: Remove SignUpModal dead CSS code Flarum seem to have had some kind of user display in the sign up modal on successful sign up, which no longer exists. https://github.com/flarum/core/blob/v0.1.0-beta/js/forum/src/components/SignUpModal.js#L111 * chore: Deprecate unneeded vendor mixins * chore: Normalize property values format Co-authored-by: David Wheatley <hi@davwheat.dev> * chore: Remove @-webkit-keyframes * chore: Combine animation properties * chore: Avoid `all` for transition * chore: translate3d is no longer necessary for hardware acceleration * fix: Lost cursor pointer to normalize update * chore: Use CSS variables for more things * chore: Remove unecessary overspecification Co-authored-by: David Wheatley <hi@davwheat.dev>
106 lines
1.6 KiB
Plaintext
106 lines
1.6 KiB
Plaintext
.UserCard {
|
|
background: var(--usercard-bg);
|
|
.light-contents();
|
|
background-size: 100% 100%;
|
|
}
|
|
.UserCard-controls {
|
|
float: right;
|
|
|
|
.Dropdown-menu {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
}
|
|
.UserCard--popover {
|
|
width: 500px;
|
|
box-shadow: 0 2px 6px @shadow-color;
|
|
|
|
&, .darkenBackground {
|
|
border-radius: @border-radius;
|
|
}
|
|
.container {
|
|
width: auto !important;
|
|
padding: 20px !important;
|
|
}
|
|
.UserCard-identity {
|
|
font-size: 22px;
|
|
}
|
|
}
|
|
|
|
.UserCard-profile {
|
|
text-align: left;
|
|
padding-left: 130px;
|
|
max-width: 800px;
|
|
|
|
@media @phone {
|
|
padding-left: 0;
|
|
text-align: center;
|
|
}
|
|
}
|
|
.UserCard-identity {
|
|
font-weight: normal;
|
|
display: inline;
|
|
vertical-align: middle;
|
|
}
|
|
.UserCard-avatar {
|
|
float: left;
|
|
margin-left: -130px;
|
|
|
|
@media @phone {
|
|
display: block;
|
|
float: none;
|
|
margin: 0 auto 20px;
|
|
width: 64px + 8px;
|
|
}
|
|
.Dropdown-toggle {
|
|
margin: 4px;
|
|
line-height: 96px;
|
|
font-size: 26px;
|
|
|
|
@media @phone {
|
|
line-height: 64px;
|
|
}
|
|
}
|
|
.Avatar {
|
|
.Avatar--size(96px);
|
|
border: 4px solid #fff;
|
|
box-shadow: 0 2px 6px @shadow-color;
|
|
|
|
@media @phone {
|
|
.Avatar--size(64px);
|
|
}
|
|
}
|
|
}
|
|
.UserCard-badges {
|
|
list-style: none;
|
|
margin: 0 0 0 15px;
|
|
padding: 0;
|
|
|
|
&, > li {
|
|
display: inline-block;
|
|
margin-right: 5px
|
|
}
|
|
}
|
|
.UserCard-info {
|
|
margin: 15px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
font-size: 12px;
|
|
|
|
> li {
|
|
display: inline-block;
|
|
margin-right: 15px;
|
|
}
|
|
}
|
|
.UserCard-lastSeen {
|
|
& .icon {
|
|
font-size: 14px;
|
|
}
|
|
&.online .fa-circle {
|
|
color: @online-user-circle-color;
|
|
}
|
|
&.online .icon {
|
|
font-size: 12px;
|
|
}
|
|
}
|