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

359 lines
5.5 KiB
SCSS
Raw Normal View History

2013-09-05 15:37:07 -04:00
// styles that apply to the user page
@import "common/foundation/variables";
@import "common/foundation/mixins";
.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;
}
}
2013-09-05 15:37:07 -04:00
.static {
color: $black;
margin-top: 5px;
margin-left: 5px;
display: inline-block;
}
.instructions {
color: $dark_gray;
margin-left: 160px;
2013-09-05 15:37:07 -04:00
margin-top: 5px;
margin-bottom: 10px;
2013-09-05 15:37:07 -04:00
}
.avatar {
margin-left: 3px;
}
.instructions a[href] {
color: $darkish_gray;
}
.warning {
background-color: lighten($red, 10%);
padding: 5px 8px;
color: $white;
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: #666;
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: #999999;
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
}
2013-10-10 12:48:26 -04:00
.user-content {
padding: 10px 8px;
2013-09-05 15:37:07 -04:00
background-color: white;
2013-10-10 12:48:26 -04:00
border: 1px solid #ddd;
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 #aaa;
padding: 5px;
}
td {
padding: 5px;
border-bottom: 1px solid #ddd;
}
}
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
.about {
background-color: #444;
margin-bottom: 10px;
overflow: hidden;
color: #fff;
.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;
}
a[href] {
color: #fff;
}
img.avatar {
border: 3px solid #eee;
margin-bottom: 4px;
2013-10-16 16:22:16 -04:00
background-color: white;
2013-10-10 12:48:26 -04:00
}
.suspended {
color: #f77;
}
2013-10-10 12:48:26 -04:00
.primary {
margin-top: 20px;
2013-10-10 12:48:26 -04:00
float: left;
width: 75%;
2013-10-16 16:22:16 -04:00
h1, h2 {margin-top: 10px;}
2013-10-16 16:22:16 -04:00
.bio {
color: #ddd;
a[href] {
color: #aae;
}
}
2013-10-10 12:48:26 -04:00
}
.secondary {
float: right;
background-color: #222;
text-align: right;
padding: 0 10px;
width: 20%;
dd {
color: white;
margin: 0 0 7px 0;
overflow: hidden;
text-overflow: ellipsis;
2013-10-10 12:48:26 -04:00
}
dt {
color: #aaa;
margin: 0;
}
}
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
.controls {
background-color: #ddd;
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 white;
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 0px;
font-size: 13px;
word-wrap: break-word;
color: lighten($black, 30%);
}
.item.moderator-action {
background-color: #eef0ff;
}
.item.deleted {
opacity: 0.8;
background-color: #ffcece;
}
.item.hidden {
display: block;
opacity: 0.4;
}
.item {
padding: 10px 8px;
background-color: white;
2013-10-10 12:48:26 -04:00
border: 1px solid #ddd;
2013-09-05 15:37:07 -04:00
margin-bottom: 10px;
}
.type {
color: lighten($black, 40%);
}
span.name {
color: lighten($black, 40%);
}
.time {
display: block;
float: right;
color: silver;
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: #ffffcc;
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: #777;
}
.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;
}
}