Merge pull request #5484 from JohnONolan/O

Fix mobile display bugs on user list
This commit is contained in:
Hannah Wolfe 2015-06-26 13:11:40 +01:00
commit 0dac251ffe

View File

@ -22,24 +22,12 @@
}
.user-list-item {
border-top: 1px solid #dfe1e3;
}
@media (max-width: 550px) {
.user-list-item {
display: block;
padding: 15px 0;
}
}
@media (min-width: 551px) {
.user-list-item {
display: flex;
justify-content: start;
align-items: center;
padding: 0 15px;
height: 68px;
}
border-top: 1px solid #dfe1e3;
}
/* Only apply these styles to anchor tags (pending invited are divs) */
@ -98,14 +86,6 @@ a.user-list-item {
opacity: 0;
}
@media (max-width: 550px) {
.user-list-item-icon,
.user-list-item-figure {
float: left;
margin-right: 15px;
}
}
.user-list-item-body {
flex: 1 1 auto;
align-items: stretch;
@ -113,12 +93,6 @@ a.user-list-item {
line-height: 1;
}
@media (max-width: 550px) {
.user-list-item-body {
margin-top: 3px;
}
}
.user-list-item-body .name {
display: inline-block;
color: var(--darkgrey);
@ -134,24 +108,10 @@ a.user-list-item {
font-size: 12px;
}
@media (max-width: 550px) {
.user-list-item-aside {
float: left;
margin: 12px 0 0 50px;
width: 100%;
}
}
.user-list-item-aside .user-list-action:not(:first-of-type) {
margin-left: 20px;
}
@media (min-width: 551px) {
.user-list-item-aside .user-list-action:not(:first-of-type) {
margin-left: 50px;
}
}
.user-list-item-aside .role-label {
float: left;
margin-top: -1px;