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

Failed to ignore revisions in .git-blame-ignore-revs.

259 lines
3.8 KiB
SCSS
Raw Normal View History

// Desktop styles for "/user" section
.user-content-wrapper {
&,
> .user-stream {
> .alert:first-child {
margin-top: 10px;
}
}
.show-mores {
position: absolute;
}
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
.user-profile-hidden {
font-size: 1.5em;
text-align: center;
}
.user-secondary-navigation {
min-width: 150px;
2017-08-24 04:16:18 +08:00
.nav-stacked {
background-color: transparent;
2017-08-24 04:16:18 +08:00
li {
border-bottom: none;
2013-10-11 00:48:26 +08:00
&.archive {
padding-left: 1.4em;
2017-08-24 04:16:18 +08:00
}
}
2017-08-24 04:16:18 +08:00
a {
color: $primary-medium;
&.active {
2017-08-24 04:16:18 +08:00
color: $primary;
font-weight: bold;
background-color: transparent;
&:after {
display: none;
2017-08-24 04:16:18 +08:00
}
}
}
}
2013-09-06 03:37:07 +08:00
}
.user-content {
padding-bottom: s(3);
margin-bottom: s(3);
background-color: $secondary;
box-sizing: border-box;
2013-09-06 03:37:07 +08:00
&.user-badges-list {
display: flex;
flex-wrap: wrap;
}
.btn.right {
float: right;
}
h2 {
2013-10-11 00:48:26 +08:00
margin-bottom: 10px;
}
}
.pref-avatar {
.avatar {
max-width: 90px;
max-height: 90px;
}
}
2018-03-23 11:05:11 +08:00
.pref-second-factor {
margin-top: 10px;
}
.user-invite-list {
width: 100%;
margin-top: 15px;
2019-03-06 03:50:27 +08:00
tr {
td {
2019-03-06 04:12:10 +08:00
padding: 0.667em;
2019-03-06 03:50:27 +08:00
}
}
}
.user-invite-search {
clear: both;
margin: 15px 0px -15px 0px;
}
2015-07-11 20:09:12 +08:00
.user-invite-none {
padding: 15px 0;
}
2015-07-11 20:09:12 +08:00
.user-main {
margin-bottom: 50px;
2013-10-11 00:48:26 +08:00
.about {
2014-10-29 04:04:18 +08:00
&.group {
2014-11-15 03:28:46 +08:00
.details {
padding: 15px 0;
2014-11-15 03:28:46 +08:00
margin: 0;
color: dark-light-choose(lighten($primary, 10%), $secondary);
2014-11-15 03:28:46 +08:00
}
2014-10-29 04:04:18 +08:00
}
2014-10-29 03:48:03 +08:00
2014-10-28 11:35:16 +08:00
.details {
2013-10-11 00:48:26 +08:00
img.avatar {
2014-10-28 11:35:16 +08:00
margin: 0 20px 10px 0;
2013-10-11 00:48:26 +08:00
}
.primary {
.primary-textual {
padding: s(0 1 1);
2014-10-28 11:35:16 +08:00
a[href] {
text-decoration: underline;
2014-10-28 11:35:16 +08:00
}
h1 {
max-width: 100%;
@include ellipsis;
}
.location-and-website {
display: flex;
max-width: 100%;
@include ellipsis;
.user-profile-location {
margin-right: 1em;
}
}
}
2013-10-17 04:22:16 +08:00
.bio {
2014-10-28 11:35:16 +08:00
max-width: 750px;
2013-10-17 04:22:16 +08:00
a.mention {
text-decoration: none;
}
2013-10-17 04:22:16 +08:00
}
2013-10-11 00:48:26 +08:00
}
2019-03-30 00:52:26 +08:00
.secondary {
margin-top: s(4);
}
2013-09-06 03:37:07 +08:00
}
&.has-background {
2019-03-30 00:52:26 +08:00
.user-profile-image {
height: 300px;
}
.details {
2019-03-30 00:52:26 +08:00
box-sizing: border-box;
width: 100%;
padding: 15px 0 0 0;
bottom: 0;
}
}
2013-09-06 03:37:07 +08:00
2013-10-11 00:48:26 +08:00
.controls {
2014-10-28 11:35:16 +08:00
padding: 0 0 12px 0;
float: right;
text-align: right;
2018-12-19 09:36:42 +08:00
.btn {
min-width: 140px;
2015-09-01 02:34:34 +08:00
}
2013-10-11 00:48:26 +08:00
}
2013-09-06 03:37:07 +08:00
&.collapsed-info {
2019-03-30 00:52:26 +08:00
.user-profile-image {
display: none;
}
.controls {
width: auto;
2019-03-30 00:52:26 +08:00
> ul {
display: inline-flex;
2019-03-30 00:52:26 +08:00
> li {
display: inline;
margin-left: s(3);
.d-button-label {
line-height: 1;
}
}
a {
margin-bottom: 10px;
width: auto;
}
}
2014-10-28 11:35:16 +08:00
}
.details {
2019-03-30 00:52:26 +08:00
position: relative;
padding: 0;
margin-top: 0;
border-bottom: 1px solid $primary-low;
2013-10-28 23:29:23 +08:00
}
}
}
.user-field {
input[type="text"] {
width: 530px;
}
.controls {
.instructions {
display: block;
}
}
}
.public-user-fields {
overflow: hidden;
}
2014-10-28 11:35:16 +08:00
}
.user-preferences {
padding-top: 10px;
padding-left: 30px;
.form-vertical {
width: 500px;
max-width: 100%;
}
h3 {
color: $primary;
margin: 20px 0 10px 0;
}
.category-selector,
.tag-chooser,
textarea,
2020-02-11 22:54:56 +08:00
input.user-selector,
.user-chooser {
width: 100%;
}
.instructions {
display: inline-block;
margin-top: s(1);
}
}
.user-crawler {
.username {
margin-left: 5px;
display: inline-block;
}
}