mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 03:58:34 +08:00
552 lines
8.1 KiB
SCSS
552 lines
8.1 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 {
|
|
font-size: 0.929em;
|
|
|
|
.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, .85);
|
|
|
|
blockquote {
|
|
background-color: $secondary-low;
|
|
border-left-color: $secondary-low;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.143em;
|
|
font-weight: normal;
|
|
i {font-size: .8em;}
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.214em;
|
|
font-weight: normal;
|
|
margin-top: 10px;
|
|
max-width: 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
h3 {
|
|
font-weight: normal;
|
|
font-size: 1em;
|
|
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%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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, .85);
|
|
|
|
.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: 1.429em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.071em;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
h3 {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.staff-counters {
|
|
text-align: left;
|
|
background: $primary;
|
|
|
|
> div {
|
|
margin: 0 10px 0 0;
|
|
display: inline-block;
|
|
padding: 5px 0;
|
|
&:first-of-type {
|
|
padding-left: 10px;
|
|
}
|
|
span {
|
|
padding: 1px 5px;
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: dark-light-choose($primary-medium, $secondary-high);
|
|
}
|
|
|
|
.active {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.pill {
|
|
border-radius: 15px;
|
|
display: inline-block;
|
|
height: 30px;
|
|
width: 30px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.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: 80%;
|
|
line-height: 1.4em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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 & {
|
|
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;
|
|
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 0px;
|
|
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: 1.2em;
|
|
}
|
|
|
|
.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: 0.714em;
|
|
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: 80%;
|
|
line-height: 1.4em;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|