mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
69 lines
1.3 KiB
SCSS
69 lines
1.3 KiB
SCSS
|
// Common styles for "user-info" component
|
||
|
.user-info {
|
||
|
display: inline-block;
|
||
|
clear: both;
|
||
|
margin-bottom: 1em;
|
||
|
|
||
|
.user-image {
|
||
|
float: left;
|
||
|
padding-right: 4px;
|
||
|
}
|
||
|
|
||
|
.user-detail {
|
||
|
float: left;
|
||
|
width: 70%;
|
||
|
padding-left: 5px;
|
||
|
font-size: 13px;
|
||
|
|
||
|
.name-line {
|
||
|
white-space: nowrap;
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
}
|
||
|
|
||
|
.username a {
|
||
|
font-weight: bold;
|
||
|
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));
|
||
|
}
|
||
|
|
||
|
.name {
|
||
|
margin-left: 5px;
|
||
|
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));
|
||
|
}
|
||
|
|
||
|
.title {
|
||
|
margin-top: 3px;
|
||
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.small {
|
||
|
width: 333px;
|
||
|
}
|
||
|
|
||
|
&.medium {
|
||
|
min-height: 60px;
|
||
|
|
||
|
.username, .name {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.name {
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
&.badge-info {
|
||
|
min-height: 80px;
|
||
|
|
||
|
.granted-on {
|
||
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
||
|
}
|
||
|
|
||
|
.post-link {
|
||
|
display: block;
|
||
|
margin-top: 0.2em;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|