mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 23:16:20 +08:00
UX: Consistent profile image positioning on desktop and mobile
This commit is contained in:
parent
d8704c11ca
commit
254de64df7
|
@ -101,6 +101,14 @@
|
|||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
|
||||
&.has-background {
|
||||
.user-profile-image {
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
.secondary {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
|
|
|
@ -151,8 +151,6 @@
|
|||
&.has-background {
|
||||
.user-profile-image {
|
||||
height: 300px;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.details {
|
||||
box-sizing: border-box;
|
||||
|
|
|
@ -132,12 +132,9 @@
|
|||
&.has-background {
|
||||
.user-profile-image {
|
||||
height: 200px;
|
||||
background-size: contain;
|
||||
background-position: top center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.user-profile-avatar {
|
||||
margin-top: s(-24);
|
||||
margin-top: s(-15);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user