mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:51:36 +08:00
568 lines
8.5 KiB
SCSS
568 lines
8.5 KiB
SCSS
// Common styles for "/user" section
|
|
.user-right {
|
|
.list-actions {
|
|
margin-bottom: 10px;
|
|
|
|
.btn {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-main {
|
|
.d-icon-heart {
|
|
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 {
|
|
font-size: $font-up-5;
|
|
font-weight: normal;
|
|
i {font-size: .8em;}
|
|
}
|
|
|
|
h2 {
|
|
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;
|
|
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 {
|
|
font-size: $font-up-3;
|
|
}
|
|
|
|
h2 {
|
|
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;
|
|
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 {
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
margin-top: 5px;
|
|
margin-bottom: 10px;
|
|
font-size: $font-down-1;
|
|
line-height: $line-height-large;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-field {
|
|
.required {
|
|
text-align: top;
|
|
color: $danger;
|
|
font-weight: bold;
|
|
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 {
|
|
font-size: $font-0;
|
|
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 {
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
}
|
|
}
|
|
|
|
.top-section {
|
|
@include clearfix();
|
|
ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.top-section,
|
|
.top-sub-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.stats-title {
|
|
text-transform: uppercase;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.stats-section {
|
|
ul {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
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;
|
|
color: $primary;
|
|
}
|
|
}
|
|
}
|
|
|
|
li:last-of-type {
|
|
margin: 0;
|
|
}
|
|
|
|
.value {
|
|
font-weight: bold;
|
|
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;
|
|
}
|
|
|
|
color: blend-primary-secondary(50%);
|
|
}
|
|
}
|
|
|
|
.top-sub-section {
|
|
width: 50%;
|
|
|
|
ul {
|
|
max-width: 95%;
|
|
}
|
|
|
|
li {
|
|
border-left: $primary-low solid 2px;
|
|
padding: 5px 8px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.topic-info {
|
|
color: dark-light-choose($primary-medium, $secondary-high);
|
|
}
|
|
|
|
@media all and (max-width : 600px) {
|
|
float: none;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.replies-section,
|
|
.topics-section,
|
|
.links-section {
|
|
li {
|
|
word-wrap: break-word;
|
|
}
|
|
}
|
|
|
|
.links-section {
|
|
.domain {
|
|
font-size: $font-down-1;
|
|
color: dark-light-choose($primary-medium, $secondary-high);
|
|
}
|
|
}
|
|
|
|
.summary-user-list {
|
|
li {
|
|
height: 40px;
|
|
}
|
|
}
|
|
|
|
.groups {
|
|
.group-link {
|
|
color: $tertiary;
|
|
}
|
|
}
|
|
|
|
.user-preferences {
|
|
textarea {
|
|
height: 100px;
|
|
}
|
|
|
|
.static {
|
|
color: $primary;
|
|
display: inline-block;
|
|
}
|
|
|
|
.instructions {
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
margin-bottom: 10px;
|
|
font-size: $font-down-1;
|
|
line-height: $line-height-large;
|
|
|
|
a[href] {
|
|
color: $tertiary;
|
|
}
|
|
}
|
|
|
|
.avatar {
|
|
margin-left: 3px;
|
|
}
|
|
|
|
.warning {
|
|
background-color: $danger-medium;
|
|
padding: 5px 8px;
|
|
color: $secondary;
|
|
width: 520px;
|
|
}
|
|
|
|
.category-notifications .category-controls,
|
|
.tag-notifications .tag-controls {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.tags .select2-container-multi {
|
|
border: 1px solid $primary-low;
|
|
width: 540px;
|
|
border-radius: 0;
|
|
.select2-choices {
|
|
border: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|