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

351 lines
6.2 KiB
SCSS
Raw Normal View History

2013-09-05 15:37:07 -04:00
// styles that apply to the user page
.user-preferences {
.control-group {
// border-bottom: 1px solid #e5e5e5;
padding: 8px 36px 8px 8px;
}
.control-label {
font-weight: bold;
}
2013-09-05 15:37:07 -04:00
textarea {
width: 530px;
height: 100px;
}
.static {
color: $primary;
2013-09-05 15:37:07 -04:00
margin-top: 5px;
margin-left: 5px;
display: inline-block;
}
.instructions {
color: $primary;
2013-09-05 15:37:07 -04:00
margin-top: 5px;
}
.category-controls {
padding-top: 8px;
}
2013-09-05 15:37:07 -04:00
.avatar {
margin-left: 3px;
}
.instructions a[href] {
color: $primary;
2013-09-05 15:37:07 -04:00
}
.warning {
@include border-radius-all(6px);
background-color: $danger;
2013-09-05 15:37:07 -04:00
padding: 5px 8px;
color: $primary;
2013-09-05 15:37:07 -04:00
width: 520px;
}
.other .controls-dropdown {
2013-09-05 15:37:07 -04:00
margin-top: 10px;
padding-left: 5px;
2013-09-05 15:37:07 -04:00
select {
width: 280px;
}
}
.save-button {
width: 100%;
overflow: auto;
max-width: 200px;
button {
display: block;
}
}
.checkbox-label {
overflow: auto;
display: block;
width: 100%;
padding: 5px 8px;
}
.bio-composer #wmd-quote-post {
display: none;
}
2013-09-05 15:37:07 -04:00
}
#about-me {
padding: 4px;
margin: -4px;
display: block;
width: 220px;
min-height: 200px;
background-color: scale-color-diff();
color: $primary;
2013-09-05 15:37:07 -04:00
word-wrap: break-word;
}
2013-10-10 12:48:26 -04:00
.user-navigation {
h3 {
color: scale-color($primary, $lightness: 50%);
padding-left: 5px;
}
.nav-stacked {
border-left: 0;
border-right: 0;
2013-10-10 12:48:26 -04:00
}
2013-10-16 16:22:16 -04:00
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
.user-main {
clear: both;
margin-bottom: 50px;
2013-09-05 15:37:07 -04:00
2013-10-10 12:48:26 -04:00
.about {
background-color: scale-color-diff();
background-position: center center;
background-size: cover;
2013-10-10 12:48:26 -04:00
margin-bottom: 10px;
overflow: hidden;
color: $primary;
2013-09-05 15:37:07 -04:00
2013-10-10 12:48:26 -04:00
.details {
text-align: center;
padding: 10px;
h1 {
font-size: 30px;
font-weight: normal;
}
h2 {
font-size: 20px;
margin-bottom: 6px;
font-weight: normal;
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
}
a[href] {
color: $primary;
2013-10-10 12:48:26 -04:00
}
img.avatar {
border: 3px solid scale-color-diff();
2013-10-10 12:48:26 -04:00
margin-bottom: 4px;
}
.primary {
color: $secondary;
text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
max-height: 800px;
overflow: auto;
a[href] {
color: $secondary;
text-decoration: underline;
text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
}
img {
max-width: 100%;
}
.primary-textual {
width: 90%;
margin: 0 auto;
padding: 4px;
2014-09-10 18:06:20 -04:00
h1, h2 {
margin: 7px;
}
}
}
2013-10-10 12:48:26 -04:00
.secondary {
background-color: $primary;
2013-10-10 12:48:26 -04:00
text-align: left;
padding: 1px 10px;
2013-10-10 12:48:26 -04:00
dd {
color: $secondary;
2013-10-10 12:48:26 -04:00
margin: 0 0 7px 0;
a {
color: inherit;
}
2013-10-10 12:48:26 -04:00
}
dt {
color: scale-color($primary, $lightness: 75%);
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: scale-color($primary, $lightness: 75%);
margin-top: 0;
padding: 10px 10px 0 10px;
.btn {
margin-bottom: 10px;
float: none;
}
}
}
.about.collapsed-info {
.controls {
margin-top: 0;
}
2013-09-05 15:37:07 -04:00
.details {
.secondary { display: none; }
.bio { display: none; }
.primary {
width: 100%;
text-align: left;
margin-top: 4px;
.avatar {
float: left;
margin-right: 10px;
border: 2px solid $tertiary;
width: 45px;
height: 45px;
}
h1 {
margin:0;
font-size: 20px;
line-height: 22px;
}
h2 {
font-size: 17px;
line-height: 16px;
margin-top: 4px;
}
}
2013-10-10 12:48:26 -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: scale-color($primary, $lightness: 50%);
2013-09-05 15:37:07 -04:00
}
.item.moderator-action {
background-color: scale-color($highlight, $lightness: 50%);
2013-09-05 15:37:07 -04:00
}
.item.deleted {
opacity: 0.8;
background-color: scale-color($danger, $lightness: 50%);
2013-09-05 15:37:07 -04:00
}
.item.hidden {
display: block;
opacity: 0.4;
}
.item {
padding: 10px 8px;
background-color: $secondary;
border-bottom: 1px solid scale-color-diff();
2013-09-05 15:37:07 -04:00
}
.type {
color: scale-color($primary, $lightness: 50%);
2013-09-05 15:37:07 -04:00
}
span.name {
color: scale-color($primary, $lightness: 50%);
2013-09-05 15:37:07 -04:00
}
.time, .delete-info {
2013-09-05 15:37:07 -04:00
display: block;
float: right;
color: $primary;
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;
margin-right: 10px;
}
.title {
display: block;
margin-bottom: 4px;
font-size: 14px;
}
2013-12-11 21:41:34 -05:00
.edit-reason {
background-color: scale-color($highlight, $lightness: 50%);
2013-12-11 21:41:34 -05:00
padding: 3px 5px 5px 5px;
}
.remove-bookmark {
float: right !important;
margin-top: -8px;
}
.notification {
padding: 0 8px;
li { display: inline-block; }
p {
display: inline-block;
margin: 7px;
span {
color: $primary;
}
}
.time {
display: inline-block;
margin: 0;
float: none;
}
// common/base/header.scss
.fa, .icon {
color: scale-color($primary, $lightness: 50%);
}
}
2013-09-05 15:37:07 -04:00
}
.staff-counters {
text-align: center;
div {
padding: 2px 8px;
margin-bottom: 10px;
display: inline-block;
}
a.active {
font-weight: bold;
}
}
.pill {
border-radius: 15px;
display: inline-block;
height: 30px;
width: 30px;
text-align: center;
vertical-align: middle;
line-height: 30px;
}
.helpful-flags {
background-color: green;
}
.flagged-posts {
background-color: #E49735;
}
.deleted-posts {
background-color: #EC441B;
}
.suspensions {
background-color: #c22020;
}
div#pagedown-editor {
width: 100%;
}
textarea#wmd-input {
width: 100%;
}
2013-09-05 15:37:07 -04:00
}