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

579 lines
8.6 KiB
SCSS
Raw Normal View History

// Common styles for "/user" section
.user-right {
.list-actions {
margin-bottom: 10px;
.btn {
margin-right: 10px;
}
}
.paginated-topics-list {
position: relative;
}
.show-mores {
width: 100%;
}
}
2015-07-22 07:19:15 -04:00
.user-main {
.d-icon-heart {
2015-07-22 07:19:15 -04:00
color: $love !important;
}
.about {
overflow: hidden;
width: 100%;
.secondary {
.btn {
padding: 3px 12px;
}
dl {
margin: 0;
}
dd {
padding: 0;
overflow: hidden;
text-overflow: ellipsis;
color: $primary;
&.groups {
span:after {
content: ','
}
span:last-of-type:after {
content:''
}
}
}
dt {
color: $secondary-medium;
margin: 0;
display: inline-block;
}
}
.details {
background: rgba($secondary, .8);
blockquote {
background-color: $secondary-low;
border-left-color: $secondary-low;
}
h1 {
2018-01-12 17:27:38 -05:00
font-size: $font-up-5;
font-weight: normal;
i {font-size: .8em;}
}
h2 {
2018-01-12 17:27:38 -05:00
font-size: $font-up-2;
font-weight: normal;
margin-top: 10px;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
h3 {
font-weight: normal;
2018-01-12 17:27:38 -05:00
font-size: $font-0;
margin: 5px 0;
.d-icon:not(:first-of-type) {
margin-left: 10px;
}
}
.groups {
margin-left: 10px;
display: inline;
}
img.avatar {
float: left;
}
.suspended {
color: $danger;
}
.primary {
width: 100%;
position: relative;
float: left;
h1 {
font-weight: bold;
}
.bio {
max-height: 300px;
overflow: auto;
a[href] {
text-decoration: underline;
}
img {
max-width: 100%;
}
}
}
.user-profile-avatar {
position: relative;
float: left;
height: 100%;
.avatar-flair {
bottom: 8px;
right: 16px;
}
}
}
.controls {
ul {
list-style-type: none;
}
a {
padding: 5px 10px;
margin-bottom: 10px;
}
}
&.collapsed-info {
.controls {
margin-top: 0;
}
.profile-image {
height: 0;
}
.details {
margin-top: 0;
background: rgba($secondary, .8);
.bio {
display: none;
}
.primary {
text-align: left;
margin-top: 0;
width: 100%;
.avatar {
float: left;
margin-right: 10px;
width: 45px;
height: 45px;
}
h1 {
2018-01-12 17:27:38 -05:00
font-size: $font-up-3;
}
h2 {
2018-01-12 17:27:38 -05:00
font-size: $font-up-1;
margin-top: 4px;
}
h3 {
display: none;
}
}
}
.user-profile-avatar {
.avatar-flair {
bottom: 8px;
right: 2px;
}
}
}
}
.staff-counters {
background: $primary;
color: $secondary;
display: flex;
padding: 10px;
> div, > div a {
display: flex;
align-items: baseline;
flex: 0 1 auto;
margin: 0 10px 0 0;
span {
padding: 1px 6px;
border-radius: 10px;
margin-right: 5px;
}
}
a {
color: $secondary;
}
.active {
font-weight: bold;
}
}
.pill {
border-radius: 15px;
display: inline-block;
height: 30px;
width: 30px;
text-align: center;
vertical-align: middle;
2018-01-12 17:27:38 -05:00
line-height: $line-height-large;
}
.helpful-flags {
background-color: green;
}
.flagged-posts {
background-color: #E49735;
}
.warnings-received {
background-color: #EC441B;
}
.deleted-posts {
background-color: #EC441B;
}
.suspensions {
background-color: #c22020;
}
.user-field {
clear: both;
margin-bottom: 10px;
&.text {
padding-top: 18px;
}
.controls {
label {
width: auto;
text-align: left;
font-weight: normal;
float: auto;
}
.instructions {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
margin-top: 5px;
margin-bottom: 10px;
2018-01-12 17:27:38 -05:00
font-size: $font-down-1;
line-height: $line-height-large;
}
}
}
2015-07-22 07:19:15 -04:00
}
.user-field {
.required {
text-align: top;
color: $danger;
font-weight: bold;
2018-01-12 17:27:38 -05:00
font-size: $font-up-2;
}
}
.public-user-fields {
margin-top: 8px;
margin-bottom: 8px;
.user-field-name {
font-weight: bold;
}
.collapsed-info & {
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 {
2018-01-12 17:27:38 -05:00
font-size: $font-0;
2015-11-20 11:36:55 -05:00
color: scale-color($tertiary, $lightness: -10%);
cursor: pointer;
}
}
}
.user-table {
position: relative;
margin-top: 20px;
}
.avatar-selector {
padding-bottom: 0 !important;
label.radio {
padding-left: 10px;
}
.avatar-choice {
min-height: 40px;
}
label {
display: inline-block;
margin-right: 10px;
}
#avatar-input {
width: 0;
height: 0;
overflow: hidden;
}
.avatar {
margin: 5px 10px 5px 0;
}
p.error {
color: $danger;
}
}
.new-private-message {
margin-bottom: 15px;
}
.user-nav {
margin: 5px 0;
padding-top: 10px;
li a {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
}
}
.top-section {
@include clearfix();
2016-03-30 12:05:16 -04:00
ul {
list-style: none;
margin: 0;
}
2016-03-30 12:05:16 -04:00
}
.top-section,
.top-sub-section {
2016-03-30 12:05:16 -04:00
margin-bottom: 20px;
&.badges-section {
display: flex;
flex-wrap: wrap;
}
2016-03-30 12:05:16 -04:00
}
.stats-title {
text-transform: uppercase;
margin-bottom: 10px;
width: 100%;
2016-03-30 12:05:16 -04:00
}
.stats-section {
ul {
margin: 10px 0;
}
2016-03-30 12:05:16 -04: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-22 18:48:31 -04:00
color: $primary;
}
}
}
2016-03-30 12:05:16 -04:00
li:last-of-type {
margin: 0;
}
2016-03-30 12:05:16 -04:00
.value {
font-weight: bold;
2018-01-12 17:27:38 -05:00
font-size: $font-up-2;
}
.label {
// TODO: Remove once all languages have been translated to remove icons from
// their user-stat labels
.fa:nth-of-type(2) {
display: none;
}
2017-06-11 22:20:14 -04:00
color: blend-primary-secondary(50%);
}
2016-03-30 12:05:16 -04:00
}
.top-sub-section {
2016-03-30 12:05:16 -04:00
width: 50%;
ul {
max-width: 95%;
}
li {
2017-06-11 22:20:14 -04:00
border-left: $primary-low solid 2px;
2016-03-30 12:05:16 -04:00
padding: 5px 8px;
margin: 10px 0;
}
2016-03-30 12:05:16 -04:00
.topic-info {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-high);
}
@media all and (max-width : 600px) {
float: none;
width: 100%;
}
}
2016-04-18 12:07:14 -04:00
.replies-section,
.topics-section,
.links-section {
li {
word-wrap: break-word;
}
}
.links-section {
.domain {
2018-01-12 17:27:38 -05:00
font-size: $font-down-1;
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-high);
}
2016-03-30 12:05:16 -04:00
}
.summary-user-list {
li {
height: 40px;
}
2016-03-30 12:05:16 -04:00
}
.groups {
.group-link {
color: $tertiary;
}
}
.user-preferences {
textarea {
height: 100px;
}
.static {
color: $primary;
display: inline-block;
}
.instructions {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
margin-bottom: 10px;
2018-01-12 17:27:38 -05:00
font-size: $font-down-1;
line-height: $line-height-large;
a[href] {
color: $tertiary;
}
}
.avatar {
margin-left: 3px;
}
.warning {
2017-10-10 16:07:46 -04:00
background-color: $danger-medium;
padding: 5px 8px;
color: $secondary;
width: 520px;
}
.category-notifications .category-controls,
.tag-notifications .tag-controls {
margin-top: 24px;
}
}
.paginated-topics-list {
.user-content {
width: 100%;
margin-top: 0;
}
}
.large-notification {
display: flex;
align-items: center;
a {
display: flex;
align-items: center;
.d-icon {
margin-right: 0.5em;
}
span {
color: $primary;
}
// Can remove this once other languages have removed html from i18n values
div {
.fa {
display: none;
}
p {
margin: 0;
}
}
}
}
.qr-code-container {
display: flex;
.qr-code {
padding: 5px 5px 0 5px;
background-color: white;
}
}