discourse/app/assets/stylesheets/desktop/user.scss

257 lines
3.7 KiB
SCSS
Raw Normal View History

// 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;
}
}
2017-08-23 15:16:18 -05:00
.nav-stacked {
background-color: transparent;
margin: 0;
2017-08-23 15:16:18 -05:00
li {
border-bottom: none;
2021-12-02 13:18:11 -06:00
&:hover,
&.active {
background: var(--primary-very-low);
}
&.archive {
padding-left: 1.4em;
2017-08-23 15:16:18 -05:00
}
}
2017-08-23 15:16:18 -05:00
a {
color: var(--primary-medium);
&.active {
color: var(--primary);
2017-08-23 15:16:18 -05:00
font-weight: bold;
background-color: transparent;
&:after {
display: none;
2017-08-23 15:16:18 -05:00
}
}
}
}
.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;
padding-top: 15px;
.single-select-header,
button {
margin-bottom: 1em;
margin-right: 0.75em;
}
.user-invite-buttons {
margin-left: auto;
}
2013-09-05 14:37:07 -05:00
}
.user-content {
padding: 0;
margin-top: 2em;
2020-04-24 18:32:02 -05:00
padding-bottom: 12px;
margin-bottom: 12px;
background: var(--d-content-background, var(--secondary));
box-sizing: border-box;
2013-09-05 14:37:07 -05:00
.btn.right {
float: right;
}
}
.pref-avatar {
.avatar {
max-width: 90px;
max-height: 90px;
}
}
.invite-controls .btn {
margin-right: 0px;
}
table.user-invite-list {
width: 100%;
margin-top: 15px;
2019-03-05 13:50:27 -06:00
tr {
td {
2019-03-05 14:12:10 -06:00
padding: 0.667em;
&.invite-actions {
white-space: nowrap;
width: 100px;
}
.label {
display: none;
}
2019-03-05 13:50:27 -06:00
}
}
}
.user-invite-none {
padding: 15px 0;
}
2015-07-11 07:09:12 -05:00
.user-main {
margin-bottom: 50px;
2013-10-10 11:48:26 -05:00
.about {
2014-10-28 15:04:18 -05:00
&.group {
2014-11-14 13:28:46 -06:00
.details {
padding: 15px 0;
2014-11-14 13:28:46 -06:00
margin: 0;
color: var(--secondary);
2014-11-14 13:28:46 -06:00
}
2014-10-28 15:04:18 -05:00
}
2014-10-28 14:48:03 -05:00
2014-10-27 22:35:16 -05:00
.details {
2013-10-10 11:48:26 -05:00
img.avatar {
2014-10-27 22:35:16 -05:00
margin: 0 20px 10px 0;
2013-10-10 11:48:26 -05:00
}
.primary-textual {
padding: 0 0 0.5em;
2013-10-10 11:48:26 -05:00
}
2019-03-29 11:52:26 -05:00
.bio {
max-width: 750px;
2019-03-29 11:52:26 -05:00
}
2013-09-05 14:37:07 -05:00
}
&.has-background {
2019-03-29 11:52:26 -05:00
.user-profile-image {
height: 300px;
}
.details {
2019-03-29 11:52:26 -05:00
box-sizing: border-box;
width: 100%;
padding: 15px 0 0 0;
bottom: 0;
}
}
2013-09-05 14:37:07 -05:00
2013-10-10 11:48:26 -05:00
.controls {
max-width: 13.5em;
li {
margin-bottom: 0.5em;
}
li > .select-kit-header, // select-kit
2018-12-18 19:36:42 -06:00
.btn {
min-width: 9.5em;
width: 100%;
2015-08-31 13:34:34 -05:00
}
2013-10-10 11:48:26 -05:00
}
2013-09-05 14:37:07 -05:00
&.collapsed-info {
2019-03-29 11:52:26 -05:00
.user-profile-image {
display: none;
}
.controls {
width: auto;
max-width: unset;
2019-03-29 11:52:26 -05:00
> ul {
display: inline-flex;
2019-03-29 11:52:26 -05:00
> li {
display: inline-flex;
margin-left: 0.75em;
}
a {
width: auto;
}
}
2014-10-27 22:35:16 -05:00
}
.details {
2019-03-29 11:52:26 -05:00
position: relative;
padding: 0;
margin-top: 0;
border-bottom: 1px solid var(--primary-low);
2013-10-28 10:29:23 -05:00
}
}
}
.user-field {
input[type="text"] {
width: 530px;
}
.controls {
.instructions {
display: block;
}
}
}
.public-user-fields {
overflow: hidden;
}
2014-10-27 22:35:16 -05:00
}
.user-messages-page {
.topic-list th {
padding-top: 4px;
}
.show-mores {
position: absolute;
}
}
.user-messages {
margin-right: 0.2em;
}
.user-crawler {
.username {
margin-left: 5px;
display: inline-block;
}
}