mirror of
https://github.com/discourse/discourse.git
synced 2025-03-10 06:35:39 +08:00

The all inboxes was introduced in 016efeadf6f242e04daf5ef8e18c2ca708a1392d but we decided to roll it back for performance reasons. The main performance challenge here is that PG has to basically loop through all the PMs that a user is allowed to view before being able to order by `Topic#bumped_at`. The all inboxes was not planned as part of the new/unread filter so we've decided not to tackle the performance issue for the upcoming release. Follow-up to 016efeadf6f242e04daf5ef8e18c2ca708a1392d
306 lines
4.5 KiB
SCSS
306 lines
4.5 KiB
SCSS
// Desktop styles for "/user" section
|
|
.user-content-wrapper {
|
|
&,
|
|
> .user-stream {
|
|
> .alert:first-child {
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-profile-hidden {
|
|
font-size: 1.5em;
|
|
text-align: center;
|
|
}
|
|
|
|
.user-secondary-navigation {
|
|
min-width: 150px;
|
|
|
|
.combo-box {
|
|
width: 100%;
|
|
&:not(:last-of-type) {
|
|
margin-bottom: 0.875em;
|
|
}
|
|
}
|
|
|
|
.nav-stacked {
|
|
background-color: transparent;
|
|
margin: 0;
|
|
|
|
li {
|
|
border-bottom: none;
|
|
|
|
&.archive {
|
|
padding-left: 1.4em;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: var(--primary-medium);
|
|
|
|
&.active {
|
|
color: var(--primary);
|
|
font-weight: bold;
|
|
background-color: transparent;
|
|
|
|
&:after {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.select-kit + .messages-nav {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.inboxes-controls {
|
|
margin-bottom: 0.75em;
|
|
}
|
|
|
|
&.user-messages {
|
|
--left-padding: 0.8em;
|
|
|
|
.nav-stacked {
|
|
a {
|
|
padding-left: calc(
|
|
var(--left-padding) - 1px
|
|
); // 1px accounts for border on select-kit elements above
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.user-additional-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.single-select-header,
|
|
button {
|
|
margin-bottom: 1em;
|
|
margin-right: 0.75em;
|
|
}
|
|
}
|
|
|
|
.user-content {
|
|
padding-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
background-color: var(--secondary);
|
|
box-sizing: border-box;
|
|
|
|
.btn.right {
|
|
float: right;
|
|
}
|
|
|
|
h2 {
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
.pref-avatar {
|
|
.avatar {
|
|
max-width: 90px;
|
|
max-height: 90px;
|
|
}
|
|
}
|
|
|
|
.pref-second-factor {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.invite-controls .btn {
|
|
margin-right: 0px;
|
|
}
|
|
|
|
table.user-invite-list {
|
|
width: 100%;
|
|
margin-top: 15px;
|
|
|
|
tr {
|
|
td {
|
|
padding: 0.667em;
|
|
|
|
&.invite-actions {
|
|
white-space: nowrap;
|
|
width: 100px;
|
|
}
|
|
|
|
.label {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-invite-none {
|
|
padding: 15px 0;
|
|
}
|
|
|
|
.user-main {
|
|
margin-bottom: 50px;
|
|
|
|
.about {
|
|
&.group {
|
|
.details {
|
|
padding: 15px 0;
|
|
margin: 0;
|
|
color: var(--secondary);
|
|
}
|
|
}
|
|
|
|
.details {
|
|
img.avatar {
|
|
margin: 0 20px 10px 0;
|
|
}
|
|
|
|
.primary {
|
|
.primary-textual {
|
|
padding: 0 4px 4px;
|
|
a[href] {
|
|
text-decoration: underline;
|
|
}
|
|
h1 {
|
|
max-width: 100%;
|
|
@include ellipsis;
|
|
}
|
|
.location-and-website {
|
|
display: flex;
|
|
max-width: 100%;
|
|
@include ellipsis;
|
|
.user-profile-location {
|
|
margin-right: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.bio {
|
|
max-width: 750px;
|
|
|
|
a.mention {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.secondary {
|
|
margin-top: 16px;
|
|
}
|
|
}
|
|
|
|
&.has-background {
|
|
.user-profile-image {
|
|
height: 300px;
|
|
}
|
|
.details {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
padding: 15px 0 0 0;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
|
|
.controls {
|
|
padding: 0 0 12px 0;
|
|
float: right;
|
|
max-width: 13.5em;
|
|
|
|
li {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
li > .select-kit-header, // select-kit
|
|
.btn {
|
|
min-width: 9.5em;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&.collapsed-info {
|
|
.user-profile-image {
|
|
display: none;
|
|
}
|
|
.controls {
|
|
width: auto;
|
|
max-width: unset;
|
|
|
|
> ul {
|
|
display: inline-flex;
|
|
> li {
|
|
display: inline-flex;
|
|
margin-left: 0.75em;
|
|
}
|
|
|
|
a {
|
|
width: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.details {
|
|
position: relative;
|
|
padding: 0;
|
|
margin-top: 0;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-field {
|
|
input[type="text"] {
|
|
width: 530px;
|
|
}
|
|
|
|
.controls {
|
|
.instructions {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.public-user-fields {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.user-messages-page {
|
|
.topic-list th {
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.show-mores {
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
.user-messages {
|
|
margin-right: 0.2em;
|
|
}
|
|
|
|
.user-preferences {
|
|
padding-top: 10px;
|
|
padding-left: 30px;
|
|
|
|
.form-vertical {
|
|
width: 500px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
h3 {
|
|
color: var(--primary);
|
|
margin: 20px 0 10px 0;
|
|
}
|
|
|
|
.category-selector,
|
|
.tag-chooser,
|
|
textarea,
|
|
input.user-selector,
|
|
.user-chooser {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.user-crawler {
|
|
.username {
|
|
margin-left: 5px;
|
|
display: inline-block;
|
|
}
|
|
}
|