Fix + remove unnecessary indentation, dead code, cleanup user.css

This commit is contained in:
minusfive 2017-08-24 17:40:57 -04:00 committed by Robin Ward
parent c8ce3c6dee
commit 8a06d3d312
4 changed files with 155 additions and 172 deletions

View File

@ -92,6 +92,11 @@
} }
.user-table {
position: relative;
margin-top: 20px;
}
.avatar-selector { .avatar-selector {
label { label {
display: inline-block; display: inline-block;

View File

@ -98,7 +98,6 @@
} }
.user-table { .user-table {
margin-top: 30px;
width: 100%; width: 100%;
display: table; display: table;
table-layout: fixed; table-layout: fixed;
@ -143,28 +142,7 @@
} }
} }
.user-main { .user-content {
margin-bottom: 50px;
// name hacky so lastpass does not freak out
// -search- means it is bypassed
#add-user-to-group {
button, .ac-wrap {
float: left;
}
button {
margin-top: 5px;
}
#user-search-selector {
width: 400px;
}
}
.user-right {
display: table-cell;
}
.user-content {
padding: 10px 8px; padding: 10px 8px;
background-color: $secondary; background-color: $secondary;
margin-bottom: 10px; margin-bottom: 10px;
@ -177,8 +155,16 @@
h2 { h2 {
margin-bottom: 10px; margin-bottom: 10px;
} }
}
.user-invite-list { .pref-avatar {
.avatar {
max-width: 45px;
max-height: 45px;
}
}
.user-invite-list {
width: 100%; width: 100%;
margin-top: 15px; margin-top: 15px;
@ -194,31 +180,26 @@
padding: 10px 0 10px 0; padding: 10px 0 10px 0;
border-bottom: 1px solid $primary-low; border-bottom: 1px solid $primary-low;
} }
} }
.pref-avatar { .user-invite-controls {
.avatar {
max-width: 45px;
max-height: 45px;
}
}
.user-invite-controls {
background-color: $primary-low; background-color: $primary-low;
padding: 5px 10px 0px 0; padding: 5px 10px 0px 0;
height: 35px; height: 35px;
} }
.user-invite-search { .user-invite-search {
clear: both; clear: both;
margin: 15px 0px -15px 0px; margin: 15px 0px -15px 0px;
} }
.user-invite-none { .user-invite-none {
clear: both; clear: both;
padding: 15px; padding: 15px;
} }
}
.user-main {
margin-bottom: 50px;
.about { .about {
background-position: center center; background-position: center center;
@ -239,7 +220,10 @@
border-top: 1px solid $primary-low; border-top: 1px solid $primary-low;
border-bottom: 1px solid $primary-low; border-bottom: 1px solid $primary-low;
font-size: 0.929em; font-size: 0.929em;
.btn { padding: 3px 12px; }
.btn {
padding: 3px 12px;
}
dl dd { dl dd {
display: inline; display: inline;
@ -363,8 +347,11 @@
} }
} }
} }
&.has-background { &.has-background {
.details { padding: 15px 15px 4px 15px;} .details {
padding: 15px 15px 4px 15px;
}
} }
.controls { .controls {
@ -372,7 +359,9 @@
float: right; float: right;
text-align: right; text-align: right;
width: 180px; width: 180px;
ul {list-style-type: none;} ul {
list-style-type: none;
}
a { a {
padding: 5px 10px; padding: 5px 10px;
width: 140px; width: 140px;
@ -384,9 +373,8 @@
margin-left: 5px; margin-left: 5px;
} }
} }
}
.about.collapsed-info { &.collapsed-info {
.controls { .controls {
margin-top: 0; margin-top: 0;
width: auto; width: auto;
@ -404,7 +392,9 @@
display: none; display: none;
} }
.secondary { display: none; } .secondary {
display: none;
}
.profile-image { .profile-image {
height: 0; height: 0;
@ -415,7 +405,9 @@
margin-top: 0; margin-top: 0;
background: rgba($secondary, .85); background: rgba($secondary, .85);
border-bottom: 1px solid $primary-low; border-bottom: 1px solid $primary-low;
.bio { display: none; } .bio {
display: none;
}
.primary { .primary {
text-align: left; text-align: left;
@ -447,7 +439,7 @@
&.has-background { &.has-background {
.details { padding: 12px 15px 2px 15px;} .details { padding: 12px 15px 2px 15px;}
} }
}
} }
.user-stream { .user-stream {
@ -643,7 +635,11 @@
} }
} }
.user-right .group-notification-menu { .user-right {
display: table-cell;
.group-notification-menu {
float: right; float: right;
margin-bottom: 5px; margin-bottom: 5px;
}
} }

View File

@ -100,10 +100,6 @@ h2#site-text-logo
font-weight: normal; font-weight: normal;
} }
.user-table {
position: relative;
}
.mobile-view .mobile-nav { .mobile-view .mobile-nav {
&.messages-nav, &.notifications-nav, &.activity-nav, &.preferences-nav { &.messages-nav, &.notifications-nav, &.activity-nav, &.preferences-nav {
position: absolute; position: absolute;

View File

@ -134,18 +134,6 @@
margin-top: 18px; margin-top: 18px;
} }
.user-navigation {
width: 100%;
margin-top: 20px;
min-height: 20px;
h3 {
color: $primary;
margin: 10px;
}
}
.user-main { .user-main {
table.group-members { table.group-members {
@ -392,6 +380,8 @@
.user-stream { .user-stream {
padding-top: 20px;
.excerpt { .excerpt {
margin: 5px 0; margin: 5px 0;
font-size: 0.929em; font-size: 0.929em;
@ -586,10 +576,6 @@
} }
} }
.user-archive {
display: inline-block;
}
// mobile fixups for badges // mobile fixups for badges
.badge-card.medium { .badge-card.medium {