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

410 lines
6.9 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: $link_color;
}
}
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;
}
#profile-background-preview {
height: 270px;
background-position: center center;
background-size: cover;
background-color: $secondary_background_color;
}
#profile-background-controls {
padding: 10px;
}
2013-10-10 12:48:26 -04:00
2013-09-05 15:37:07 -04:00
.static {
color: $primary_text_color;
2013-09-05 15:37:07 -04:00
margin-top: 5px;
margin-left: 5px;
display: inline-block;
}
.instructions {
2014-03-22 03:37:18 -04:00
color: $secondary_text_color;
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: $link_color;
2013-09-05 15:37:07 -04:00
}
.warning {
background-color: $warning_background_color;
2013-09-05 15:37:07 -04:00
padding: 5px 8px;
color: $primary_background_color;
2013-09-05 15:37:07 -04:00
width: 520px;
}
.other .controls {
margin-top: 10px;
select {
width: 280px;
}
}
}
2013-10-10 12:48:26 -04:00
.user-navigation {
2013-09-05 15:37:07 -04:00
width: 240px;
margin-right: 20px;
float: left;
2013-10-10 12:48:26 -04:00
h3 {
color: $primary_text_color;
margin: 20px 0 10px 0;
2013-10-10 12:48:26 -04:00
}
.map {
2013-09-05 15:37:07 -04:00
height: 50px;
}
.avatar {
float: left;
width: 45px;
}
nav.buttons {
width: 180px;
padding: 0;
.btn {
width: 100%;
margin-bottom: 5px;
@include box-sizing(border-box);
2013-09-05 15:37:07 -04:00
}
}
h2 {
a {
font-size: 14px;
color: $link_color;
2013-09-05 15:37:07 -04:00
cursor: pointer;
}
}
}
2013-10-10 12:48:26 -04:00
.user-main {
width: 850px;
2013-09-05 15:37:07 -04:00
float: left;
2013-10-10 12:48:26 -04:00
margin-bottom: 50px;
2013-09-05 15:37:07 -04:00
2013-10-10 12:48:26 -04:00
@include medium-width {
width: 735px;
2013-10-10 12:48:26 -04:00
}
2013-09-05 15:37:07 -04:00
2013-10-10 12:48:26 -04:00
@include small-width {
width: 680px;
2013-09-05 15:37:07 -04:00
}
2014-02-07 13:46:39 -05:00
table.group-members {
width: 100%;
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: $secondary_text_color;
2014-02-07 13:46:39 -05:00
}
2014-02-06 17:16:59 -05:00
}
}
2013-10-10 12:48:26 -04:00
.user-content {
padding: 10px 8px;
background-color: $primary_background_color;
border: 1px solid $primary_border_color;
2013-10-10 12:48:26 -04:00
margin-bottom: 10px;
.btn.right {
float: right
}
h2 {
margin-bottom: 10px;
}
table {
width: 100%;
margin-top: 10px;
th {
text-align: left;
border-bottom: 1px solid $primary_border_color;
padding: 5px;
}
td {
padding: 5px;
border-bottom: 1px solid $primary_border_color;
}
}
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
.about {
background-color: $secondary_background_color;
background-size: cover;
background-position: center center;
2013-10-10 12:48:26 -04:00
margin-bottom: 10px;
overflow: hidden;
color: $secondary_text_color;
2013-10-10 12:48:26 -04:00
.details {
text-align: center;
padding: 12px;
2013-10-10 12:48:26 -04:00
h1 {
font-size: 30px;
font-weight: normal;
}
h2 {
font-size: 20px;
margin-bottom: 6px;
font-weight: normal;
margin-top: 5px;
2013-10-10 12:48:26 -04:00
}
a[href] {
color: $secondary_link_color;
2013-10-10 12:48:26 -04:00
}
img.avatar {
border: 3px solid $tertiary_border_color;
margin-bottom: 10px;
background-color: $secondary_background_color;
2013-10-10 12:48:26 -04:00
}
.suspended {
color: $warning_text_color;
}
2013-10-10 12:48:26 -04:00
.primary {
margin-top: 20px;
2013-10-10 12:48:26 -04:00
float: left;
2014-03-07 03:01:36 -05:00
width: 65%;
color: $tertiary_text_color;
text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
2013-10-16 16:22:16 -04:00
h1, h2 {font-weight: bold;}
2013-10-16 16:22:16 -04:00
.bio {
color: $tertiary_text_color;
text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
2013-10-16 16:22:16 -04:00
a[href] {
color: $tertiary_text_color;
text-decoration: underline;
text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
2013-10-16 16:22:16 -04:00
}
}
2013-10-10 12:48:26 -04:00
}
.secondary {
float: right;
background-color: rgba($tertiary_background_color, .9);
2013-10-10 12:48:26 -04:00
text-align: right;
padding: 0 20px;
2014-03-07 09:36:28 -05:00
max-width: 165px;
2013-10-10 12:48:26 -04:00
dd {
color: rgba($tertiary_text_color, .7);
2013-10-10 12:48:26 -04:00
margin: 0 0 7px 0;
overflow: hidden;
text-overflow: ellipsis;
2013-10-10 12:48:26 -04:00
}
dt {
color: rgba($tertiary_text_color, .7);
2013-10-10 12:48:26 -04:00
margin: 0;
}
}
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
.controls {
background-color: $tertiary_background_color;
padding: 12px;
height: 30px;
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;
}
.details {
.secondary { display: none; }
.bio { display: none; }
.primary {
width: 100%;
text-align: left;
margin-top: 0;
.avatar {
float: left;
margin-right: 10px;
border: 2px solid $tertiary_border_color;
2013-10-28 11:29:23 -04:00
width: 45px;
height: 45px;
}
h1 {
font-size: 20px;
line-height: 22px;
}
h2 {
font-size: 17px;
line-height: 20px;
margin-top: 4px;
}
}
}
}
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_text_color;
2013-09-05 15:37:07 -04:00
}
.item.moderator-action {
background-color: $moderator_background_color;
2013-09-05 15:37:07 -04:00
}
.item.deleted {
opacity: 0.8;
background-color: $warning_background_color;
2013-09-05 15:37:07 -04:00
}
.item.hidden {
display: block;
opacity: 0.4;
}
.item {
padding: 20px 8px 15px 8px;
background-color: $primary_background_color;
2014-03-12 23:17:18 -04:00
border-bottom: 1px solid $primary_border_color;
2013-09-05 15:37:07 -04:00
}
.type {
color: $primary_text_color;
2013-09-05 15:37:07 -04:00
}
span.name {
color: $secondary_text_color;
2013-09-05 15:37:07 -04:00
}
.time {
display: block;
float: right;
color: $secondary_text_color;
2013-09-05 15:37:07 -04:00
margin-right: 8px;
font-size: 11px;
}
.avatar-link {
float: left;
margin-right: 10px;
}
.title {
display: block;
margin-bottom: 4px;
font-size: 14px;
}
2013-12-11 21:41:34 -05:00
.edit-reason {
background-color: $moderator_background_color;
2013-12-11 21:41:34 -05:00
padding: 3px 5px 5px 5px;
}
2013-09-05 15:37:07 -04:00
}
}
// styling of bottom section
.user-stream .child-actions {
margin-top: 8px;
.avatar-link {
float: none;
}
2013-12-09 16:27:49 -05:00
.fa {
2013-09-05 15:37:07 -04:00
width: 15px;
display: inline-block;
color: $secondary_text_color;
2013-09-05 15:37:07 -04:00
}
.avatar-wrapper {
border: none;
}
.avatar-link {
margin-right: 3px;
}
}
.avatar-selector {
label {
display: inline-block;
margin-right: 10px;
}
#avatar-input {
width: 0;
height: 0;
overflow: hidden;
}
.avatar {
margin: 5px 10px 5px 0;
}
}