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

590 lines
10 KiB
SCSS
Raw Normal View History

2013-09-05 15:37:07 -04:00
// styles that apply to the user page
.groups {
.group-link {
color: $tertiary;
}
}
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
}
}
2013-09-05 15:37:07 -04:00
.user-preferences {
input.category-group {
width: 500px;
}
.autocomplete .badge-category {
margin: 2px;
font-weight: normal;
}
.autocomplete .badge-category.selected {
font-weight: bold;
}
2013-09-05 15:37:07 -04:00
textarea {
width: 530px;
height: 100px;
}
2013-10-10 12:48:26 -04:00
input[type=text] {
@include small-width {
width: 450px;
}
}
#pagedown-editor {
width: 450px;
textarea {
width: 440px;
}
}
.bio-composer #wmd-quote-post {
display: none;
}
2013-09-05 15:37:07 -04:00
.static {
color: $primary;
2013-09-05 15:37:07 -04:00
display: inline-block;
}
.instructions {
color: scale-color($primary, $lightness: 50%);
margin-left: 160px;
2013-09-05 15:37:07 -04:00
margin-top: 5px;
margin-bottom: 10px;
2014-03-22 02:09:48 -04:00
font-size: 80%;
line-height: 1.4em;
2013-09-05 15:37:07 -04:00
}
.avatar {
margin-left: 3px;
}
.instructions a[href] {
color: $tertiary;
2013-09-05 15:37:07 -04:00
}
.warning {
background-color: scale-color($danger, $lightness: 30%);
2013-09-05 15:37:07 -04:00
padding: 5px 8px;
color: $secondary;
2013-09-05 15:37:07 -04:00
width: 520px;
}
.other .controls {
select {
width: 280px;
}
}
}
.form-horizontal .control-group.other {
margin-bottom: 0;
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
2013-10-10 12:48:26 -04:00
.user-navigation {
width: 21.62%;
margin-right: 1.8018%;
2013-09-05 15:37:07 -04:00
float: left;
2014-10-27 23:35:16 -04:00
margin-top: 20px;
2013-10-10 12:48:26 -04:00
h3 {
color: $primary;
margin: 20px 0 10px 0;
2013-10-10 12:48:26 -04:00
}
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
.user-main {
margin-bottom: 50px;
2013-09-05 15:37:07 -04:00
2014-02-07 13:46:39 -05:00
table.group-members {
2014-10-28 15:48:03 -04:00
width: 75%;
float: right;
2014-07-03 23:40:49 -04:00
p {
max-width: 600px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2014-02-07 13:46:39 -05:00
th.seen {
text-align: right;
2014-02-06 17:16:59 -05:00
}
2014-02-07 13:46:39 -05:00
td.avatar {
width: 60px;
}
td {
img {
margin-right: 10px;
}
span.last-seen-at {
float: right;
color: $primary;
2014-02-07 13:46:39 -05:00
}
2014-02-06 17:16:59 -05:00
}
}
.user-right {
width: 75%;
float: right;
margin-top: 20px;
}
2013-10-10 12:48:26 -04:00
.user-content {
padding: 10px 8px;
background-color: $secondary;
border: 1px solid scale-color-diff();
2013-10-10 12:48:26 -04:00
margin-bottom: 10px;
2014-10-27 23:35:16 -04:00
box-sizing: border-box;
.btn.right {
float: right
}
h2 {
margin-bottom: 10px;
}
table {
width: 100%;
margin-top: 10px;
th {
text-align: left;
border-bottom: 1px solid scale-color-diff();
padding: 5px;
}
td {
padding: 5px;
border-bottom: 1px solid scale-color-diff();
}
}
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
.about {
2014-10-27 23:35:16 -04:00
background-size: 1110px 250px;
background-position: center center;
2014-10-27 23:35:16 -04:00
width: 100%;
2013-10-10 12:48:26 -04:00
margin-bottom: 10px;
overflow: hidden;
2014-05-07 13:49:59 -04:00
color: $secondary;
2013-10-10 12:48:26 -04:00
2014-10-28 16:04:18 -04:00
&.group {
width: 75%;
float: right;
margin-top: 20px;
.details {padding: 15px;}
}
2014-10-28 15:48:03 -04:00
2014-10-27 23:35:16 -04:00
.secondary {
background: dark-light-diff($primary, $secondary, 90%, -65%);
font-size: 13px;
.btn { padding: 3px 12px; }
2013-10-10 12:48:26 -04:00
2014-10-27 23:35:16 -04:00
dl dd {
display: inline;
margin: 0 10px 0 0;
2014-10-27 23:35:16 -04:00
padding: 0;
}
dl dt {
display: inline-block;
margin: 0 5px 0 0;
padding: 0;
2014-10-27 23:35:16 -04:00
}
dl {
margin: 0;
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 {
overflow: hidden;
text-overflow: ellipsis;
color: $primary;
}
2014-11-05 14:05:16 -05:00
dd.groups {
span:after {
content: ','
}
span:last-of-type:after {
content:''
}
}
2014-10-27 23:35:16 -04:00
dt {
color: dark-light-diff($secondary, $primary, 50%, -40%);
margin: 0;
}
}
.details {
padding: 15px 15px 4px 15px;
2014-11-13 02:33:41 -05:00
margin-top: -200px;
background: rgba($primary, .85);
2014-10-27 23:35:16 -04:00
transition: margin .15s linear;
2013-10-10 12:48:26 -04:00
h1 {
font-size: 30px;
font-weight: normal;
}
h2 {
2014-10-27 23:35:16 -04:00
font-size: 17px;
2013-10-10 12:48:26 -04:00
font-weight: normal;
2014-10-27 23:35:16 -04:00
margin-top: 10px;
2014-07-03 23:40:49 -04:00
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2013-10-10 12:48:26 -04:00
}
2014-10-27 23:35:16 -04:00
h3 {
font-weight: normal;
font-size: 14px;
margin: 5px 0;
i:not(:first-of-type) {
margin-left: 10px;
}
2013-10-10 12:48:26 -04:00
}
2014-10-27 23:35:16 -04:00
.groups {
margin-left: 10px;
display: inline;
}
2013-10-10 12:48:26 -04:00
img.avatar {
2014-10-27 23:35:16 -04:00
margin: 0 20px 10px 0;
float: left;
transition: all .1s linear;
2013-10-10 12:48:26 -04:00
}
.suspended {
color: $danger;
}
2013-10-10 12:48:26 -04:00
.primary {
2014-10-27 23:35:16 -04:00
width: 100%;
position: relative;
2013-10-10 12:48:26 -04:00
float: left;
color: $secondary;
2013-10-16 16:22:16 -04:00
2014-10-27 23:35:16 -04:00
h1 {font-weight: bold;}
.primary-textual {
padding: 3px;
2014-10-27 23:35:16 -04:00
a[href] {
color: $secondary;
2014-10-27 23:35:16 -04:00
}
}
2013-10-16 16:22:16 -04:00
.bio {
color: $secondary;
max-height: 300px;
overflow: auto;
2014-10-27 23:35:16 -04:00
max-width: 750px;
2013-10-16 16:22:16 -04:00
a.mention {
background-color: dark-light-diff($secondary, $primary, 20%, -50%);
}
2013-10-16 16:22:16 -04:00
a[href] {
2014-08-06 09:31:13 -04:00
color: dark-light-diff($secondary, $primary, 75%, 0%);
text-decoration: underline;
2013-10-16 16:22:16 -04:00
}
img {
max-width: 100%;
}
2013-10-16 16:22:16 -04:00
}
2013-10-10 12:48:26 -04:00
}
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;
width: 180px;
2014-10-27 23:35:16 -04:00
ul {list-style-type: none;}
a {
padding: 5px 10px;
width: 140px;
margin-bottom: 10px;
}
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
2013-10-28 11:29:23 -04:00
.about.collapsed-info {
.controls {
margin-top: 0;
width: auto;
2014-10-27 23:35:16 -04:00
ul {
li {display: inline;}
a {
padding: 5px 10px;
margin-bottom: 10px;
width: auto;
}
}
2013-10-28 11:29:23 -04:00
}
.staff-counters {
display: none;
}
2014-10-27 23:35:16 -04:00
.secondary { display: none; }
.profile-image {
height: 0;
}
2013-10-28 11:29:23 -04:00
.details {
2014-10-27 23:35:16 -04:00
padding: 12px 15px 2px 15px;
margin-top: 0;
background: rgba($primary, 1);
2013-10-28 11:29:23 -04:00
.bio { display: none; }
.primary {
text-align: left;
margin-top: 0;
2014-10-27 23:35:16 -04:00
width: 100%;
2013-10-28 11:29:23 -04:00
.avatar {
float: left;
margin-right: 10px;
width: 45px;
height: 45px;
}
h1 {
font-size: 20px;
}
h2 {
2014-10-27 23:35:16 -04:00
font-size: 15px;
2013-10-28 11:29:23 -04:00
margin-top: 4px;
}
2014-10-27 23:35:16 -04:00
h3 {
display: none;
}
2013-10-28 11:29:23 -04:00
}
}
}
2013-09-05 15:37:07 -04:00
.user-stream {
.excerpt {
margin: 5px 0;
2013-09-05 15:37:07 -04:00
font-size: 13px;
word-wrap: break-word;
color: $primary;
2013-09-05 15:37:07 -04:00
}
.item.moderator-action {
background-color: dark-light-diff($highlight, $secondary, 50%, -10%);
2013-09-05 15:37:07 -04:00
}
.item.deleted {
opacity: 0.8;
2014-08-06 09:31:13 -04:00
background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -10%);
2013-09-05 15:37:07 -04:00
}
.item.hidden {
display: block;
opacity: 0.4;
}
.item {
padding: 20px 8px 15px 8px;
background-color: $secondary;
border-bottom: 1px solid scale-color-diff();
2013-09-05 15:37:07 -04:00
}
.type {
color: $primary;
2013-09-05 15:37:07 -04:00
}
span.name {
color: $primary;
2013-09-05 15:37:07 -04:00
}
.time, .delete-info {
2013-09-05 15:37:07 -04:00
display: block;
float: right;
2014-11-14 02:35:44 -05:00
color: lighten($primary, 40%);
2013-09-05 15:37:07 -04:00
margin-right: 8px;
font-size: 11px;
}
.delete-info i {
font-size: 14px;
}
2013-09-05 15:37:07 -04:00
.avatar-link {
float: left;
2014-05-29 02:21:21 -04:00
margin-right: 4px;
2013-09-05 15:37:07 -04:00
}
.title {
display: block;
font-size: 14px;
2014-07-03 23:40:49 -04:00
max-width: 80%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.name {
display: block;
font-size: 14px;
max-width: 400px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2013-09-05 15:37:07 -04:00
}
2013-12-11 21:41:34 -05:00
.edit-reason {
background-color: scale-color($highlight, $lightness: 25%);
2013-12-11 21:41:34 -05:00
padding: 3px 5px 5px 5px;
}
.remove-bookmark {
float: right;
margin-top: -4px;
}
.notification {
&.unread {
background-color: dark-light-diff($tertiary, $secondary, 90%, -60%);
}
li { display: inline-block; }
p {
display: inline-block;
margin-left: 10px;
span {
color: $primary;
}
}
.time {
display: inline-block;
margin-left: 10px;
float: none;
}
// common/base/header.scss
.fa, .icon {
color: scale-color($primary, $lightness: 50%);
font-size: 24px;
}
}
2013-09-05 15:37:07 -04:00
}
.staff-counters {
text-align: left;
2014-10-27 23:35:16 -04:00
background: $primary;
> div {
2014-10-27 23:35:16 -04:00
margin: 0 10px 0 0;
display: inline-block;
padding: 5px 0;
&:first-of-type {
padding-left: 10px;
}
span {
padding: 1px 5px;
border-radius: 10px;
}
}
2014-10-27 23:35:16 -04:00
a {
color: $secondary;
}
.active {
font-weight: bold;
}
}
.pill {
2014-06-30 17:54:15 -04:00
border-radius: 15px;
display: inline-block;
height: 30px;
2014-06-30 17:54:15 -04:00
width: 30px;
text-align: center;
vertical-align: middle;
2014-06-30 17:54:15 -04: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 {
label {
width: 140px;
float: left;
text-align: right;
font-weight: bold;
}
input[type=text] {
width: 530px;
}
.controls {
label {
width: auto;
text-align: left;
font-weight: normal;
float: auto;
}
p {
color: scale-color($primary, $lightness: 50%);
margin-top: 5px;
margin-bottom: 10px;
font-size: 80%;
line-height: 1.4em;
}
}
clear: both;
margin-bottom: 10px;
}
2013-09-05 15:37:07 -04:00
}
2014-10-27 23:35:16 -04:00
.paginated-topics-list {
.topic-list > tbody > tr:nth-child(odd) {
background-color: darken($secondary, 3%);
}
2014-10-27 23:35:16 -04:00
.topic-list > tbody > tr:nth-child(even) {
background-color: $secondary;
}
2014-10-27 23:35:16 -04:00
.user-content {
width: 100%;
margin-top: 0;
}
2014-10-27 23:35:16 -04:00
}