discourse/app/assets/stylesheets/desktop/user-card.scss

206 lines
3.1 KiB
SCSS
Raw Normal View History

// styles that apply to the "share" popup when sharing a link to a post or topic
#user-card {
position: absolute;
2014-10-29 19:48:20 -04:00
width: 500px;
left: 20px;
z-index: 990;
2014-08-06 09:31:13 -04:00
box-shadow: 0 2px 6px rgba(0,0,0, .6);
margin-top: -2px;
2014-10-29 19:48:20 -04:00
background-color: $primary;
color: $secondary;
background-size: cover;
background-position: center center;
2014-10-29 19:48:20 -04:00
.card-content {
padding: 12px;
background: rgba($primary, .85);
margin-top: 100px;
&:after {
content: '';
display: block;
clear: both;
}
}
&.no-bg {
.card-content {
margin-top: 0;
}
}
.avatar-placeholder {
width: 120px;
height: 120px;
float: left;
padding-right: 10px;
}
h1 {
display: inline-block;
min-width: 120px;
2014-07-03 23:40:49 -04:00
font-size: 25px;
line-height: 1.25;
display: block;
2014-10-29 19:48:20 -04:00
max-width: 250px;
2014-07-03 23:40:49 -04:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2013-10-04 16:55:54 -04:00
a {
2014-10-29 19:48:20 -04:00
color: $secondary;
2013-10-04 16:55:54 -04:00
}
}
h2 {
2014-07-03 23:40:49 -04:00
font-size: 15px;
line-height: 1.25;
font-weight: normal;
2014-07-03 23:40:49 -04:00
display: block;
2014-10-29 19:48:20 -04:00
max-width: 250px;
2014-07-03 23:40:49 -04:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
a {
2014-10-29 19:48:20 -04:00
color: $secondary;
}
}
h3 {
font-size: 13px;
font-weight: normal;
margin-top: 0;
2014-05-29 04:21:19 -04:00
color: scale-color($primary, $lightness: 50%);
overflow: hidden;
text-overflow: ellipsis;
2014-10-29 19:48:20 -04:00
a {
color: $secondary;
}
}
.groups {
font-size: 13px;
font-weight: normal;
margin-top: 0;
color: $primary;
.group-link {
color: $primary;
}
}
.metadata {
2014-07-03 23:40:49 -04:00
position: absolute;
right: 20px;
top: 10px;
max-width: 180px;
text-align: right;
}
.bottom {
clear: both;
padding-top: 10px;
}
.bio {
2014-10-29 19:48:20 -04:00
max-height: 55px;
overflow: auto;
2014-10-29 19:48:20 -04:00
float: left;
margin: 10px 0;
width: 70%;
a {
color: $secondary;
text-decoration: underline;
}
img {
max-width: 100%;
}
}
img.avatar {
float: left;
padding-right: 10px;
2014-10-29 19:48:20 -04:00
margin-top: -60px;
}
p {
margin: 0 0 5px 0;
}
2013-10-04 15:33:03 -04:00
p.loading {
margin-top: 45px;
color: $primary;
2013-10-04 15:33:03 -04:00
}
.btn {
margin: 0 0 7px 0;
2014-10-29 19:48:20 -04:00
box-sizing: border-box;
}
.usercard-controls {
list-style-type: none;
margin: 0;
position: absolute;
right: 12px;
a {width: 100%; min-width: 150px;}
}
2013-12-19 18:58:48 -05:00
.new-user a {
2014-05-14 04:05:24 -04:00
color: scale-color($primary, $lightness: 70%);
2013-12-19 18:58:48 -05:00
}
&.show-badges {
2014-10-29 19:48:20 -04:00
width: 580px;
.names {
float: left;
2014-10-29 19:48:20 -04:00
height: 60px;
position: relative;
width: 45%;
span {
position: absolute;
bottom: 0;
display: block;
}
}
.badge-section {
margin-top: 10px;
2014-07-03 23:40:49 -04:00
float: left;
2014-10-29 19:48:20 -04:00
width: 390px;
.user-badge {
background: transparent;
color: $secondary;
}
2014-07-03 23:40:49 -04:00
h3 {
color: $primary;
font-size: 14px;
margin-bottom: -8px;
}
}
2014-04-14 01:58:36 -04:00
2014-04-16 06:02:57 -04:00
.more-user-badges {
@extend .user-badge;
padding: 3px 8px;
font-size: 13px;
2014-04-16 06:02:57 -04:00
}
2014-04-14 01:58:36 -04:00
}
.suspended {
color: $danger;
margin-bottom: 10px;
}
.card-badge {
img {
max-width: 100px;
}
float: right;
margin-right: 5px;
}
2014-04-14 01:58:36 -04:00
}