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

552 lines
9.4 KiB
SCSS
Raw Normal View History

// Desktop styles for "/user" section
.groups {
.group-link {
color: $tertiary;
}
}
2014-10-28 11:35:16 +08:00
.profile-image {
2014-11-13 15:33:41 +08:00
height: 420px;
2014-10-28 11:35:16 +08:00
width: 100%;
background-size: cover;
transition: height .15s linear;
}
.no-background {
.profile-image {
2014-11-13 18:11:22 +08:00
height: 200px;
2014-10-28 11:35:16 +08:00
}
}
2013-09-06 03:37:07 +08:00
.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;
}
2013-09-06 03:37:07 +08:00
textarea {
width: 530px;
height: 100px;
}
2013-10-11 00:48:26 +08:00
input[type=text] {
@include small-width {
width: 450px;
}
}
2013-09-06 03:37:07 +08:00
.static {
color: $primary;
2013-09-06 03:37:07 +08:00
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;
2014-03-22 14:09:48 +08:00
font-size: 80%;
line-height: 1.4em;
2013-09-06 03:37:07 +08:00
}
.form-horizontal .instructions {
margin-left: 160px;
}
2013-09-06 03:37:07 +08:00
.avatar {
margin-left: 3px;
}
.instructions a[href] {
color: $tertiary;
2013-09-06 03:37:07 +08:00
}
.warning {
background-color: scale-color($danger, $lightness: 30%);
2013-09-06 03:37:07 +08:00
padding: 5px 8px;
color: $secondary;
2013-09-06 03:37:07 +08:00
width: 520px;
}
.pref-mailing-list-mode .controls {
select {
width: 400px;
}
}
.notifications, .category-notifications, .tag-notifications, .user-custom-preferences-outlet {
.controls select {
2013-09-06 03:37:07 +08:00
width: 280px;
}
}
.category-notifications .category-controls, .tag-notifications .tag-controls {
margin-top: 24px;
}
2013-09-06 03:37:07 +08:00
}
.user-main .user-preferences .user-field.text {
padding-top: 0;
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
2016-01-11 19:40:59 +08:00
.user-table {
width: 100%;
display: table;
table-layout: fixed;
.wrapper {
display: table-row;
}
2016-01-11 19:40:59 +08:00
}
.user-navigation {
2016-01-11 19:40:59 +08:00
display: table-cell;
vertical-align: top;
width: 170px;
2013-10-11 00:48:26 +08:00
2017-08-24 04:16:18 +08:00
.nav-stacked {
background-color: transparent;
li {
border-bottom: none;
2013-10-11 00:48:26 +08:00
2017-08-24 04:16:18 +08:00
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;
}
}
}
2013-09-06 03:37:07 +08:00
}
.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;
2013-09-06 03:37:07 +08:00
.btn.right {
float: right
}
h2 {
2013-10-11 00:48:26 +08:00
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;
}
2015-07-11 20:09:12 +08:00
.user-invite-search {
clear: both;
margin: 15px 0px -15px 0px;
}
2015-07-11 20:09:12 +08:00
.user-invite-none {
clear: both;
padding: 15px;
}
2015-07-11 20:09:12 +08:00
.user-main {
margin-bottom: 50px;
2013-10-11 00:48:26 +08:00
.about {
background-position: center center;
background-size: cover;
2014-10-28 11:35:16 +08:00
width: 100%;
2013-10-11 00:48:26 +08:00
overflow: hidden;
2014-10-29 04:04:18 +08:00
&.group {
2014-11-15 03:28:46 +08:00
.details {
2016-06-28 08:33:11 +08:00
padding: 15px 0px;
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
.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;
}
2013-10-11 00:48:26 +08:00
2014-10-28 11:35:16 +08:00
dl dd {
display: inline;
margin: 0 10px 0 0;
2014-10-28 11:35:16 +08:00
padding: 0;
}
dl dt {
display: inline-block;
margin: 0 5px 0 0;
padding: 0;
2014-10-28 11:35:16 +08:00
}
dl {
margin: 0;
padding: 8px 10px;
2014-10-28 11:35:16 +08:00
}
2013-10-11 00:48:26 +08:00
2014-10-28 11:35:16 +08:00
dd {
overflow: hidden;
text-overflow: ellipsis;
color: $primary;
}
2014-11-06 03:05:16 +08:00
dd.groups {
span:after {
content: ','
}
span:last-of-type:after {
content:''
}
}
2014-10-28 11:35:16 +08:00
dt {
2017-06-12 10:20:14 +08:00
color: $secondary-medium;
2014-10-28 11:35:16 +08:00
margin: 0;
}
}
.details {
padding: 0 0 4px 0;
background: rgba($secondary, .85);
2014-11-13 15:33:41 +08:00
margin-top: -200px;
2014-10-28 11:35:16 +08:00
transition: margin .15s linear;
2013-10-11 00:48:26 +08:00
blockquote {
2017-08-24 04:16:18 +08:00
background-color: $secondary-low;
border-left-color: $secondary-low;
}
2013-10-11 00:48:26 +08:00
h1 {
font-size: 2.143em;
2013-10-11 00:48:26 +08:00
font-weight: normal;
i {font-size: .8em;}
2013-10-11 00:48:26 +08:00
}
h2 {
font-size: 1.214em;
2013-10-11 00:48:26 +08:00
font-weight: normal;
2014-10-28 11:35:16 +08:00
margin-top: 10px;
2014-07-04 11:40:49 +08:00
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2013-10-11 00:48:26 +08:00
}
2014-10-28 11:35:16 +08:00
h3 {
font-weight: normal;
font-size: 1em;
2014-10-28 11:35:16 +08:00
margin: 5px 0;
i:not(:first-of-type) {
margin-left: 10px;
}
2013-10-11 00:48:26 +08:00
}
2014-10-28 11:35:16 +08:00
.groups {
margin-left: 10px;
display: inline;
}
2014-10-28 11:35:16 +08:00
2013-10-11 00:48:26 +08:00
img.avatar {
2014-10-28 11:35:16 +08:00
margin: 0 20px 10px 0;
float: left;
transition: all .1s linear;
2013-10-11 00:48:26 +08:00
}
.suspended {
color: $danger;
}
2013-10-11 00:48:26 +08:00
.primary {
2014-10-28 11:35:16 +08:00
width: 100%;
position: relative;
2013-10-11 00:48:26 +08:00
float: left;
2013-10-17 04:22:16 +08:00
2014-10-28 11:35:16 +08:00
h1 {font-weight: bold;}
.primary-textual {
padding: 3px;
2014-10-28 11:35:16 +08:00
a[href] {
text-decoration: underline;
2014-10-28 11:35:16 +08:00
}
}
2013-10-17 04:22:16 +08:00
.bio {
max-height: 300px;
overflow: auto;
2014-10-28 11:35:16 +08:00
max-width: 750px;
2013-10-17 04:22:16 +08:00
a[href] {
text-decoration: underline;
2013-10-17 04:22:16 +08:00
}
a.mention {
text-decoration: none;
}
img {
max-width: 100%;
}
2013-10-17 04:22:16 +08:00
}
2013-10-11 00:48:26 +08:00
}
2013-09-06 03:37:07 +08:00
}
&.has-background {
.details {
padding: 15px 15px 4px 15px;
}
}
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;
width: 180px;
ul {
list-style-type: none;
}
2014-10-28 11:35:16 +08:00
a {
padding: 5px 10px;
width: 140px;
margin-bottom: 10px;
2015-09-01 02:34:34 +08:00
}
2013-09-06 03:37:07 +08:00
2013-10-11 00:48:26 +08:00
.right {
float: right;
margin-left: 5px;
2013-10-11 00:48:26 +08:00
}
}
2013-09-06 03:37:07 +08:00
&.collapsed-info {
.controls {
margin-top: 0;
width: auto;
ul {
li {display: inline;}
a {
padding: 5px 10px;
margin-bottom: 10px;
width: auto;
}
}
2014-10-28 11:35:16 +08:00
}
.staff-counters {
display: none;
}
2014-10-28 11:35:16 +08:00
.secondary {
display: none;
}
2014-10-28 11:35:16 +08:00
.profile-image {
height: 0;
}
2013-10-28 23:29:23 +08:00
.details {
padding: 0 0 2px 0;
2013-10-28 23:29:23 +08:00
margin-top: 0;
background: rgba($secondary, .85);
border-bottom: 1px solid $primary-low;
.bio {
display: none;
2013-10-28 23:29:23 +08:00
}
.primary {
text-align: left;
margin-top: 0;
width: 100%;
2013-10-28 23:29:23 +08:00
.avatar {
float: left;
margin-right: 10px;
width: 45px;
height: 45px;
}
2014-10-28 11:35:16 +08:00
h1 {
font-size: 1.429em;
}
h2 {
font-size: 1.071em;
margin-top: 4px;
}
h3 {
display: none;
}
2014-10-28 11:35:16 +08:00
}
2013-10-28 23:29:23 +08:00
}
&.has-background {
.details { padding: 12px 15px 2px 15px;}
}
}
}
.staff-counters {
text-align: left;
2014-10-28 11:35:16 +08:00
background: $primary;
color: $secondary;
margin-bottom: 20px;
a {
color: $secondary;
}
> div {
2014-10-28 11:35:16 +08:00
margin: 0 10px 0 0;
display: inline-block;
padding: 5px 0;
&:first-of-type {
padding-left: 10px;
}
2014-10-28 11:35:16 +08:00
span {
padding: 1px 5px;
border-radius: 10px;
}
2014-10-28 11:35:16 +08:00
}
.active {
font-weight: bold;
}
}
.pill {
2014-07-01 05:54:15 +08:00
border-radius: 15px;
display: inline-block;
height: 30px;
2014-07-01 05:54:15 +08:00
width: 30px;
text-align: center;
vertical-align: middle;
2014-07-01 05:54:15 +08:00
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;
}
2013-09-06 03:37:07 +08:00
}
2014-10-28 11:35:16 +08:00
.paginated-topics-list {
.user-content {
width: 100%;
margin-top: 0;
}
2014-10-28 11:35:16 +08:00
}
.user-right {
display: table-cell;
&,
> .user-stream {
> .alert:first-child {
margin-top: 10px;
}
}
.group-notification-menu {
float: right;
margin-bottom: 5px;
}
}