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

324 lines
4.8 KiB
SCSS
Raw Normal View History

// Desktop styles for "/user" section
.user-right {
display: table-cell;
&,
> .user-stream {
> .alert:first-child {
margin-top: 10px;
}
}
}
2014-10-27 23:35:16 -04:00
.profile-image {
2014-11-13 02:33:41 -05:00
height: 420px;
2014-10-27 23:35:16 -04:00
width: 100%;
background-size: cover;
transition: height .15s linear;
}
.no-background {
.profile-image {
2014-11-13 05:11:22 -05:00
height: 200px;
2014-10-27 23:35:16 -04:00
}
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
2016-01-11 06:40:59 -05:00
.user-table {
width: 100%;
display: table;
table-layout: fixed;
.wrapper {
display: table-row;
}
2016-01-11 06:40:59 -05:00
}
.user-navigation {
2016-01-11 06:40:59 -05:00
display: table-cell;
vertical-align: top;
width: 170px;
2013-10-10 12:48:26 -04:00
2017-08-23 16:16:18 -04:00
.nav-stacked {
background-color: transparent;
2017-08-23 16:16:18 -04:00
li {
border-bottom: none;
2013-10-10 12:48:26 -04:00
&.archive {
padding-left: 15px;
2017-08-23 16:16:18 -04:00
}
}
2017-08-23 16:16:18 -04:00
a {
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-high);
&.active {
2017-08-23 16:16:18 -04:00
color: $primary;
font-weight: bold;
background-color: transparent;
&:after {
display: none;
2017-08-23 16:16:18 -04:00
}
}
}
}
2013-09-05 15:37:07 -04:00
}
.user-content {
padding: 10px 8px;
background-color: $secondary;
margin-bottom: 10px;
box-sizing: border-box;
2013-09-05 15:37:07 -04:00
.btn.right {
float: right
}
h2 {
2013-10-10 12:48:26 -04: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;
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
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 08:09:12 -04:00
.user-invite-search {
clear: both;
margin: 15px 0px -15px 0px;
}
2015-07-11 08:09:12 -04:00
.user-invite-none {
clear: both;
padding: 15px;
}
2015-07-11 08:09:12 -04:00
.user-main {
margin-bottom: 50px;
2013-10-10 12:48:26 -04:00
.about {
background-position: center center;
background-size: cover;
2013-10-10 12:48:26 -04:00
2014-10-28 16:04:18 -04:00
&.group {
2014-11-14 14:28:46 -05:00
.details {
2016-06-27 20:33:11 -04:00
padding: 15px 0px;
2014-11-14 14:28:46 -05:00
margin: 0;
color: dark-light-choose(lighten($primary, 10%), $secondary);
2014-11-14 14:28:46 -05:00
}
2014-10-28 16:04:18 -04:00
}
2014-10-28 15:48:03 -04:00
2017-10-10 16:07:46 -04:00
.secondary {
background: $secondary;
border-top: 1px solid $primary-low;
border-bottom: 1px solid $primary-low;
2014-10-27 23:35:16 -04:00
dl {
padding: 8px 10px;
2014-10-27 23:35:16 -04:00
}
2013-10-10 12:48:26 -04:00
2014-10-27 23:35:16 -04:00
dd {
display: inline;
margin: 0 10px 0 0;
2014-11-05 14:05:16 -05:00
}
2014-10-27 23:35:16 -04:00
dt {
margin: 0 5px 0 0;
padding: 0;
2014-10-27 23:35:16 -04:00
}
}
.details {
padding: 0 0 4px 0;
2014-11-13 02:33:41 -05:00
margin-top: -200px;
2014-10-27 23:35:16 -04:00
transition: margin .15s linear;
2013-10-10 12:48:26 -04:00
img.avatar {
2014-10-27 23:35:16 -04:00
margin: 0 20px 10px 0;
transition: all .1s linear;
2013-10-10 12:48:26 -04:00
}
.primary {
.primary-textual {
padding: 3px;
2014-10-27 23:35:16 -04:00
a[href] {
text-decoration: underline;
2014-10-27 23:35:16 -04:00
}
}
2013-10-16 16:22:16 -04:00
.bio {
2014-10-27 23:35:16 -04:00
max-width: 750px;
2013-10-16 16:22:16 -04:00
a.mention {
text-decoration: none;
}
2013-10-16 16:22:16 -04:00
}
2013-10-10 12:48:26 -04:00
}
2013-09-05 15:37:07 -04:00
}
&.has-background {
.details {
padding: 15px 15px 4px 15px;
}
}
2013-09-05 15:37:07 -04:00
2013-10-10 12:48:26 -04:00
.controls {
2014-10-27 23:35:16 -04:00
padding: 0 0 12px 0;
float: right;
text-align: right;
width: 180px;
2014-10-27 23:35:16 -04:00
a {
width: 140px;
2015-08-31 14:34:34 -04:00
}
2013-09-05 15:37:07 -04:00
2013-10-10 12:48:26 -04:00
.right {
float: right;
margin-left: 5px;
2013-10-10 12:48:26 -04:00
}
}
2013-09-05 15:37:07 -04:00
&.collapsed-info {
.controls {
width: auto;
ul {
li {
display: inline;
}
a {
padding: 5px 10px;
margin-bottom: 10px;
width: auto;
}
}
2014-10-27 23:35:16 -04:00
}
.details {
padding: 0 0 2px 0;
border-bottom: 1px solid $primary-low;
2013-10-28 11:29:23 -04:00
}
&.has-background {
.details {
padding: 12px 15px 2px 15px;
}
}
}
}
.staff-counters {
margin-bottom: 20px;
}
.user-field {
input[type=text] {
width: 530px;
}
.controls {
.instructions {
display: block;
}
}
}
.viewing-self & .about.collapsed-info {
.secondary, .staff-counters {
display: inherit;
}
}
2014-10-27 23:35:16 -04:00
}
.user-preferences {
display: table-cell;
vertical-align: top;
padding-top: 10px;
padding-left: 30px;
h3 {
color: $primary;
margin: 20px 0 10px 0;
}
textarea {
width: 530px;
}
input {
&.category-selector,
&.user-selector,
&.tag-chooser {
width: 530px;
}
&[type=text] {
@include small-width {
width: 450px;
}
}
}
.instructions {
display: inline-block;
margin-top: 0;
}
.form-horizontal .instructions {
margin-left: 160px;
}
.pref-mailing-list-mode .controls {
select {
width: 400px;
}
}
.notifications,
.category-notifications,
.tag-notifications,
.user-custom-preferences-outlet {
.controls select {
width: 280px;
}
}
.user-main & .user-field.text {
padding-top: 0;
}
}