discourse/app/assets/stylesheets/common/base/user.scss

271 lines
4.0 KiB
SCSS
Raw Normal View History

// Common styles for "/user" section
2015-07-22 19:19:15 +08:00
.user-main {
.d-icon-heart {
2015-07-22 19:19:15 +08:00
color: $love !important;
}
}
.user-field {
.required {
text-align: top;
color: $danger;
font-weight: bold;
font-size: 1.3em;
}
}
.public-user-fields {
margin-top: 8px;
margin-bottom: 8px;
.user-field-name {
font-weight: bold;
}
}
.collapsed-info .public-user-fields {
display: none;
}
.user-navigation {
.map {
height: 50px;
}
.avatar {
float: left;
width: 45px;
}
nav.buttons {
width: 180px;
padding: 0;
.btn {
width: 100%;
margin-bottom: 5px;
box-sizing: border-box;
}
}
h2 {
a {
font-size: 1em;
2015-11-21 00:36:55 +08:00
color: scale-color($tertiary, $lightness: -10%);
cursor: pointer;
}
}
}
.user-table {
position: relative;
margin-top: 20px;
}
.avatar-selector {
label {
display: inline-block;
margin-right: 10px;
}
#avatar-input {
width: 0;
height: 0;
overflow: hidden;
}
.avatar {
margin: 5px 10px 5px 0;
}
}
.new-private-message {
margin-bottom: 15px;
}
.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%));
}
}
}
.user-info.small {
width: 333px;
}
.user-info.medium {
width: 480px;
min-height: 60px;
.user-image {
width: 55px;
}
.user-detail {
width: 380px;
}
.username, .name {
display: block;
}
.name {
margin-left: 0;
}
}
.user-nav {
2015-12-24 06:45:09 +08:00
margin: 5px 0px;
padding-top: 10px;
li a {
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 40%));
}
}
.user-right {
.list-actions {
margin-bottom: 10px;
.btn {
margin-right: 10px;
}
}
}
2015-12-24 06:45:09 +08:00
.top-section {
@include clearfix();
2016-03-31 00:05:16 +08:00
ul {
list-style: none;
margin: 0;
}
2016-03-31 00:05:16 +08:00
}
.top-section,
.top-sub-section {
2016-03-31 00:05:16 +08:00
margin-bottom: 20px;
}
.stats-title {
text-transform: uppercase;
margin-bottom: 10px;
}
.stats-section {
ul {
margin: 10px 0;
}
2016-03-31 00:05:16 +08:00
li {
display: inline-block;
padding: 10px 14px;
margin: 0 5px 10px 0;
&.linked-stat { // This makes the entire "box" (the li) clickable instead of a narrow area.
padding: 0;
a {
padding: 10px 14px;
width: 100%;
height: 100%;
display: block;
2017-07-23 06:48:31 +08:00
color: $primary;
}
}
}
2016-03-31 00:05:16 +08:00
li:last-of-type {
margin: 0;
}
2016-03-31 00:05:16 +08:00
.value {
font-weight: bold;
font-size: 1.2em;
}
.label {
2017-06-12 10:20:14 +08:00
color: blend-primary-secondary(50%);
}
2016-03-31 00:05:16 +08:00
}
.top-sub-section {
2016-03-31 00:05:16 +08:00
width: 50%;
ul {
max-width: 95%;
}
li {
2017-06-12 10:20:14 +08:00
border-left: $primary-low solid 2px;
2016-03-31 00:05:16 +08:00
padding: 5px 8px;
margin: 10px 0;
}
2016-03-31 00:05:16 +08:00
.topic-info {
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 40%));
}
}
2016-04-19 00:07:14 +08:00
.replies-section,
.topics-section,
.links-section {
li {
word-wrap: break-word;
}
}
.links-section {
.domain {
font-size: 0.714em;
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 40%));
}
2016-03-31 00:05:16 +08:00
}
.likes-section {
li {
height: 40px;
}
2016-03-31 00:05:16 +08:00
}
@media all
and (max-width : 600px) {
.top-sub-section {
2016-03-31 00:05:16 +08:00
float: none;
width: 100%;
}
}
.user-preferences .tags .select2-container-multi {
2017-06-12 10:20:14 +08:00
border: 1px solid $primary-low;
width: 540px;
border-radius: 0;
.select2-choices {
border: none;
}
}