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

248 lines
4.3 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;
2015-03-04 07:02:36 -05:00
left: -9999px;
top: -9999px;
z-index: 990;
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;
min-height: 175px;
opacity: 0;
-webkit-transform: scale(.9);
-ms-transform: scale(.9);
transform: scale(.9);
-webkit-transition: opacity .2s, -webkit-transform .2s;
transition: opacity .2s, transform .2s;
&.show {
opacity: 1;
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
}
2014-10-29 19:48:20 -04:00
.card-content {
2014-11-01 22:58:18 -04:00
padding: 12px 12px 0 12px;
2014-10-29 19:48:20 -04:00
background: rgba($primary, .85);
2014-11-01 22:58:18 -04:00
margin-top: 80px;
2014-10-29 19:48:20 -04:00
&:after {
content: '';
display: block;
clear: both;
}
}
&.no-bg {
min-height: 50px;
.card-content {
margin-top: 0;
}
2014-10-29 19:48:20 -04:00
}
.avatar-placeholder {
width: 120px;
height: 120px;
float: left;
padding-right: 10px;
}
h1 {
display: inline-block;
min-width: 120px;
font-size: 1.786em;
2014-07-03 23:40:49 -04:00
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
}
2014-11-01 22:58:18 -04:00
i {
font-size: .8em;
2014-11-01 22:58:18 -04:00
color: $secondary;
}
}
h2 {
font-size: 1.071em;
2014-07-03 23:40:49 -04:00
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: 0.929em;
font-weight: normal;
margin-top: 0;
color: dark-light-diff($secondary, $primary, 25%, -25%);
overflow: hidden;
text-overflow: ellipsis;
2014-10-29 19:48:20 -04:00
a {
color: dark-light-diff($primary, $secondary, 50%, -50%);
2014-10-29 19:48:20 -04:00
}
}
.groups {
font-size: 0.929em;
font-weight: normal;
margin-top: 0;
color: $primary;
.group-link {
color: $primary;
}
}
.metadata {
2014-11-01 22:58:18 -04:00
width: 100%;
clear: both;
padding-top: 5px;
h3 {
display: inline;
margin-right: 5px;
.desc, a {
color: dark-light-diff($secondary, $primary, 50%, -50%);
}
}
2014-11-01 22:58:18 -04:00
div {display: inline; color: scale-color($primary, $lightness: 50%);
.group-link {color: scale-color($primary, $lightness: 50%);}
}
}
.bottom {
clear: both;
padding-top: 10px;
}
&.has-card-badge-image .bio {
width: 75%;
}
.bio {
2014-11-01 22:58:18 -04:00
padding: 15px 0 0 0;
clear: left;
2014-10-29 19:48:20 -04:00
a {
color: $secondary;
text-decoration: underline;
}
img {
max-width: 100%;
}
2014-11-01 22:58:18 -04:00
a.mention {
background-color: dark-light-diff($secondary, $primary, 50%, -60%);
}
2014-11-01 22:58:18 -04:00
.overflow {
max-height: 60px;
overflow: hidden;
}
}
img.avatar {
float: left;
2015-04-02 21:28:13 -04:00
margin-right: 10px;
2014-11-01 22:58:18 -04:00
margin-top: -53px;
}
p {
margin: 0 0 5px 0;
}
.btn {
margin: 0 0 7px 0;
2014-10-29 19:48:20 -04:00
box-sizing: border-box;
}
.usercard-controls {
list-style-type: none;
2014-11-01 22:58:18 -04:00
float: right;
margin: 0;
2014-10-29 19:48:20 -04:00
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%;
2014-11-01 22:58:18 -04:00
margin-top: 11px;
2014-10-29 19:48:20 -04:00
span {
position: absolute;
bottom: 0;
display: block;
width: 250px;
2014-10-29 19:48:20 -04:00
}
}
.badge-section {
2014-07-03 23:40:49 -04:00
float: left;
2014-11-01 22:58:18 -04:00
width: 500px;
padding-bottom: 10px;
margin-top: 5px;
2014-10-29 19:48:20 -04:00
.user-badge {
background: transparent;
color: dark-light-diff($primary, $secondary, 50%, -50%);
border-color: dark-light-diff($primary, $secondary, 50%, -50%);
2014-10-29 19:48:20 -04:00
}
2014-07-03 23:40:49 -04:00
h3 {
color: $primary;
font-size: 1em;
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;
2014-04-16 06:02:57 -04:00
}
2014-04-14 01:58:36 -04:00
}
.suspended {
color: $danger;
margin-bottom: 5px;
clear: left;
padding-top: 15px;
}
.card-badge {
img {
max-width: 120px;
}
position: absolute;
right: 12px;
bottom: 12px;
font-size: 2.143em;
i {color: $secondary;}
}
2014-04-14 01:58:36 -04:00
}