mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 12:16:17 +08:00
cdcc5d6174
- Renamed 'stream-item' component to 'user-stream-item' - Replaced generic 'item' class with clearer 'user-stream-item' class - Retained 'item' class for backward compatibility, marked as 'DEPRECATED' - Extracted CSS pertaining 'user-stream-item' component to component CSS files - Removed unnecessary duplication from 'user-stream-item' CSS - Removed unnecessary nesting from 'user-stream-item' CSS
552 lines
9.4 KiB
SCSS
552 lines
9.4 KiB
SCSS
// Desktop styles for "/user" section
|
|
.groups {
|
|
.group-link {
|
|
color: $tertiary;
|
|
}
|
|
}
|
|
|
|
.profile-image {
|
|
height: 420px;
|
|
width: 100%;
|
|
background-size: cover;
|
|
transition: height .15s linear;
|
|
}
|
|
|
|
.no-background {
|
|
.profile-image {
|
|
height: 200px;
|
|
}
|
|
}
|
|
|
|
.user-preferences {
|
|
display: table-cell;
|
|
vertical-align: top;
|
|
padding-top: 10px;
|
|
padding-left: 30px;
|
|
|
|
h3 {
|
|
color: $primary;
|
|
margin: 20px 0 10px 0;
|
|
}
|
|
|
|
input.category-selector, input.user-selector, input.tag-chooser {
|
|
width: 530px;
|
|
}
|
|
|
|
textarea {
|
|
width: 530px;
|
|
height: 100px;
|
|
}
|
|
|
|
input[type=text] {
|
|
@include small-width {
|
|
width: 450px;
|
|
}
|
|
}
|
|
|
|
.static {
|
|
color: $primary;
|
|
display: inline-block;
|
|
}
|
|
.instructions {
|
|
display: inline-block;
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
|
margin-top: 0;
|
|
margin-bottom: 10px;
|
|
font-size: 80%;
|
|
line-height: 1.4em;
|
|
}
|
|
.form-horizontal .instructions {
|
|
margin-left: 160px;
|
|
}
|
|
.avatar {
|
|
margin-left: 3px;
|
|
}
|
|
.instructions a[href] {
|
|
color: $tertiary;
|
|
}
|
|
.warning {
|
|
background-color: scale-color($danger, $lightness: 30%);
|
|
padding: 5px 8px;
|
|
color: $secondary;
|
|
width: 520px;
|
|
}
|
|
|
|
.pref-mailing-list-mode .controls {
|
|
select {
|
|
width: 400px;
|
|
}
|
|
}
|
|
|
|
.notifications, .category-notifications, .tag-notifications, .user-custom-preferences-outlet {
|
|
.controls select {
|
|
width: 280px;
|
|
}
|
|
}
|
|
|
|
.category-notifications .category-controls, .tag-notifications .tag-controls {
|
|
margin-top: 24px;
|
|
}
|
|
}
|
|
|
|
.user-main .user-preferences .user-field.text {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.form-horizontal .control-group.category {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.user-table {
|
|
width: 100%;
|
|
display: table;
|
|
table-layout: fixed;
|
|
.wrapper {
|
|
display: table-row;
|
|
}
|
|
}
|
|
|
|
.user-navigation {
|
|
display: table-cell;
|
|
vertical-align: top;
|
|
width: 170px;
|
|
|
|
.nav-stacked {
|
|
background-color: transparent;
|
|
li {
|
|
border-bottom: none;
|
|
|
|
a {
|
|
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 40%));
|
|
}
|
|
|
|
a.active {
|
|
color: $primary;
|
|
font-weight: bold;
|
|
background-color: transparent;
|
|
|
|
&:after {
|
|
display: none;
|
|
}
|
|
}
|
|
&.archive {
|
|
padding-left: 15px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.viewing-self .user-main .about.collapsed-info {
|
|
.secondary, .staff-counters {
|
|
display: inherit;
|
|
}
|
|
}
|
|
|
|
.user-content {
|
|
padding: 10px 8px;
|
|
background-color: $secondary;
|
|
margin-bottom: 10px;
|
|
box-sizing: border-box;
|
|
|
|
.btn.right {
|
|
float: right
|
|
}
|
|
|
|
h2 {
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
.pref-avatar {
|
|
.avatar {
|
|
max-width: 45px;
|
|
max-height: 45px;
|
|
}
|
|
}
|
|
|
|
.user-invite-list {
|
|
width: 100%;
|
|
margin-top: 15px;
|
|
|
|
th {
|
|
text-align: left;
|
|
border-bottom: 3px solid $primary-low;
|
|
padding: 0 0 10px 0;
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
|
font-weight: normal;
|
|
}
|
|
|
|
td {
|
|
padding: 10px 0 10px 0;
|
|
border-bottom: 1px solid $primary-low;
|
|
}
|
|
}
|
|
|
|
.user-invite-controls {
|
|
background-color: $primary-low;
|
|
padding: 5px 10px 0px 0;
|
|
height: 35px;
|
|
}
|
|
|
|
.user-invite-search {
|
|
clear: both;
|
|
margin: 15px 0px -15px 0px;
|
|
}
|
|
|
|
.user-invite-none {
|
|
clear: both;
|
|
padding: 15px;
|
|
}
|
|
|
|
.user-main {
|
|
margin-bottom: 50px;
|
|
|
|
.about {
|
|
background-position: center center;
|
|
background-size: cover;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
|
|
&.group {
|
|
.details {
|
|
padding: 15px 0px;
|
|
margin: 0;
|
|
color: dark-light-choose(lighten($primary, 10%), $secondary);
|
|
}
|
|
}
|
|
|
|
.secondary {
|
|
background: scale-color($secondary, $lightness: -5%);
|
|
border-top: 1px solid $primary-low;
|
|
border-bottom: 1px solid $primary-low;
|
|
font-size: 0.929em;
|
|
|
|
.btn {
|
|
padding: 3px 12px;
|
|
}
|
|
|
|
dl dd {
|
|
display: inline;
|
|
margin: 0 10px 0 0;
|
|
padding: 0;
|
|
}
|
|
|
|
dl dt {
|
|
display: inline-block;
|
|
margin: 0 5px 0 0;
|
|
padding: 0;
|
|
}
|
|
|
|
dl {
|
|
margin: 0;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
dd {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: $primary;
|
|
}
|
|
|
|
dd.groups {
|
|
span:after {
|
|
content: ','
|
|
}
|
|
span:last-of-type:after {
|
|
content:''
|
|
}
|
|
}
|
|
|
|
dt {
|
|
color: $secondary-medium;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.details {
|
|
padding: 0 0 4px 0;
|
|
background: rgba($secondary, .85);
|
|
margin-top: -200px;
|
|
transition: margin .15s linear;
|
|
|
|
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;
|
|
i:not(:first-of-type) {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
|
|
.groups {
|
|
margin-left: 10px;
|
|
display: inline;
|
|
}
|
|
|
|
img.avatar {
|
|
margin: 0 20px 10px 0;
|
|
float: left;
|
|
transition: all .1s linear;
|
|
}
|
|
|
|
.suspended {
|
|
color: $danger;
|
|
}
|
|
|
|
.primary {
|
|
width: 100%;
|
|
position: relative;
|
|
float: left;
|
|
|
|
h1 {font-weight: bold;}
|
|
|
|
.primary-textual {
|
|
padding: 3px;
|
|
a[href] {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.bio {
|
|
max-height: 300px;
|
|
overflow: auto;
|
|
max-width: 750px;
|
|
|
|
a[href] {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
a.mention {
|
|
text-decoration: none;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.has-background {
|
|
.details {
|
|
padding: 15px 15px 4px 15px;
|
|
}
|
|
}
|
|
|
|
.controls {
|
|
padding: 0 0 12px 0;
|
|
float: right;
|
|
text-align: right;
|
|
width: 180px;
|
|
ul {
|
|
list-style-type: none;
|
|
}
|
|
a {
|
|
padding: 5px 10px;
|
|
width: 140px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.right {
|
|
float: right;
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
|
|
&.collapsed-info {
|
|
.controls {
|
|
margin-top: 0;
|
|
width: auto;
|
|
ul {
|
|
li {display: inline;}
|
|
a {
|
|
padding: 5px 10px;
|
|
margin-bottom: 10px;
|
|
width: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.staff-counters {
|
|
display: none;
|
|
}
|
|
|
|
.secondary {
|
|
display: none;
|
|
}
|
|
|
|
.profile-image {
|
|
height: 0;
|
|
}
|
|
|
|
.details {
|
|
padding: 0 0 2px 0;
|
|
margin-top: 0;
|
|
background: rgba($secondary, .85);
|
|
border-bottom: 1px solid $primary-low;
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.has-background {
|
|
.details { padding: 12px 15px 2px 15px;}
|
|
}
|
|
}
|
|
}
|
|
|
|
.staff-counters {
|
|
text-align: left;
|
|
background: $primary;
|
|
color: $secondary;
|
|
margin-bottom: 20px;
|
|
a {
|
|
color: $secondary;
|
|
}
|
|
> 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;
|
|
}
|
|
}
|
|
.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.text {
|
|
padding-top: 18px;
|
|
}
|
|
|
|
.user-field {
|
|
input[type=text] {
|
|
width: 530px;
|
|
}
|
|
.controls {
|
|
label {
|
|
width: auto;
|
|
text-align: left;
|
|
font-weight: normal;
|
|
float: auto;
|
|
}
|
|
.instructions {
|
|
display: block;
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
|
margin-top: 5px;
|
|
margin-bottom: 10px;
|
|
font-size: 80%;
|
|
line-height: 1.4em;
|
|
}
|
|
}
|
|
clear: both;
|
|
margin-bottom: 10px;
|
|
}
|
|
.group-notification-menu .dropdown-menu {
|
|
top: 30px;
|
|
bottom: auto;
|
|
left: auto;
|
|
right: 10px;
|
|
}
|
|
}
|
|
|
|
.paginated-topics-list {
|
|
.user-content {
|
|
width: 100%;
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.user-right {
|
|
display: table-cell;
|
|
|
|
&,
|
|
> .user-stream {
|
|
> .alert:first-child {
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
|
|
.group-notification-menu {
|
|
float: right;
|
|
margin-bottom: 5px;
|
|
}
|
|
}
|