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

551 lines
8.2 KiB
SCSS
Raw Normal View History

// Common styles for "/user" section
.user-right {
.list-actions {
margin-bottom: 10px;
.btn {
margin-right: 10px;
}
}
}
2015-07-22 19:19:15 +08:00
.user-main {
.d-icon-heart {
2015-07-22 19:19:15 +08: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-13 06:27:38 +08:00
font-size: $font-up-5;
font-weight: normal;
i {font-size: .8em;}
}
h2 {
2018-01-13 06:27:38 +08: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-13 06:27:38 +08: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%;
}
}
}
}
.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-13 06:27:38 +08:00
font-size: $font-up-3;
}
h2 {
2018-01-13 06:27:38 +08:00
font-size: $font-up-1;
margin-top: 4px;
}
h3 {
display: none;
}
}
}
}
}
.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-13 06:27:38 +08: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-11 04:07:46 +08:00
color: dark-light-choose($primary-medium, $secondary-medium);
margin-top: 5px;
margin-bottom: 10px;
2018-01-13 06:27:38 +08:00
font-size: $font-down-1;
line-height: $line-height-large;
}
}
}
2015-07-22 19:19:15 +08:00
}
.user-field {
.required {
text-align: top;
color: $danger;
font-weight: bold;
2018-01-13 06:27:38 +08: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-13 06:27:38 +08:00
font-size: $font-0;
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 {
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-11 04:07:46 +08:00
color: dark-light-choose($primary-medium, $secondary-medium);
}
}
.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;
2018-01-13 06:27:38 +08: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-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 {
2017-10-11 04:07:46 +08:00
color: dark-light-choose($primary-medium, $secondary-high);
}
@media all and (max-width : 600px) {
float: none;
width: 100%;
}
}
2016-04-19 00:07:14 +08:00
.replies-section,
.topics-section,
.links-section {
li {
word-wrap: break-word;
}
}
.links-section {
.domain {
2018-01-13 06:27:38 +08:00
font-size: $font-down-1;
2017-10-11 04:07:46 +08:00
color: dark-light-choose($primary-medium, $secondary-high);
}
2016-03-31 00:05:16 +08:00
}
.summary-user-list {
li {
height: 40px;
}
2016-03-31 00:05:16 +08:00
}
.groups {
.group-link {
color: $tertiary;
}
}
.user-preferences {
textarea {
height: 100px;
}
.static {
color: $primary;
display: inline-block;
}
.instructions {
2017-10-11 04:07:46 +08:00
color: dark-light-choose($primary-medium, $secondary-medium);
margin-bottom: 10px;
2018-01-13 06:27:38 +08:00
font-size: $font-down-1;
line-height: $line-height-large;
a[href] {
color: $tertiary;
}
}
.avatar {
margin-left: 3px;
}
.warning {
2017-10-11 04:07:46 +08:00
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;
}
}
}
}