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

625 lines
11 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;
}
}
.delete-account {
overflow: hidden;
}
.checkbox-label {
overflow: auto;
display: block;
width: 100%;
padding: 5px 8px;
}
2014-10-27 23:35:16 -04:00
textarea {width: 100%;}
2013-09-05 15:37:07 -04:00
}
2014-10-27 23:35:16 -04:00
.profile-image {
2016-02-22 05:18:34 -05:00
height: 25px;
2014-10-27 23:35:16 -04:00
width: 100%;
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
2014-10-27 23:35:16 -04:00
.groups {
.group-link {
color: $tertiary;
}
}
.hasBackground .details {margin-top: 200px;
}
.user-preferences {
input.category-group {
}
textarea {
height: 100px;
}
input[type=text] {
@include small-width {
}
}
.static {
color: $primary;
display: inline-block;
}
.instructions {
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
2014-10-27 23:35:16 -04:00
margin-top: 5px;
margin-bottom: 10px;
font-size: 80%;
line-height: 1.4em;
}
.avatar {
margin-left: 3px;
}
.instructions a[href] {
color: $tertiary;
}
.warning {
background-color: scale-color($danger, $lightness: 30%);
padding: 5px 8px;
color: $secondary;
}
2014-10-27 23:35:16 -04:00
}
.form-horizontal .control-group.other {
margin-bottom: 0;
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
.user-navigation {
width: 100%;
margin-top: 20px;
h3 {
color: $primary;
2014-10-31 15:21:55 -04:00
margin: 10px;
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 {
2014-10-27 23:35:16 -04:00
table.group-members {
width: 100%;
p {
max-width: 600px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
th {
padding: 0.5em;
2014-10-27 23:35:16 -04:00
text-align: right;
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
2014-10-27 23:35:16 -04:00
}
td {
padding: 0.5em;
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
2014-10-27 23:35:16 -04:00
img {
margin-right: 10px;
}
span.text {
2014-10-27 23:35:16 -04:00
float: right;
color: $primary;
}
}
.user-info {
width: 245px;
}
2014-10-27 23:35:16 -04:00
}
.user-content {
background-color: $secondary;
box-sizing: border-box;
2016-03-26 04:30:20 -04:00
margin-top: 10px;
2014-10-27 23:35:16 -04:00
.btn.right {
float: right
}
h2 {
margin-bottom: 10px;
}
table {
width: 100%;
margin-top: 10px;
th {
text-align: left;
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
2014-10-27 23:35:16 -04:00
padding: 5px;
}
td {
padding: 5px;
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
2014-10-27 23:35:16 -04:00
}
}
}
2013-10-10 12:48:26 -04:00
.about {
2016-02-22 05:18:34 -05:00
background: dark-light-diff($primary, $secondary, 0%, -75%) 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-10-27 23:35:16 -04:00
color: $secondary;
.secondary {
background: dark-light-diff($primary, $secondary, 90%, -65%);
font-size: 0.929em;
2014-10-27 23:35:16 -04:00
.btn { padding: 3px 12px; }
dl dd {
margin: 0 15px 0 5px;
padding: 0;
}
dl dt {
display: inline-block;
}
dl {
padding: 10px 15px;
margin: 0;
}
dd {
overflow: hidden;
text-overflow: ellipsis;
color: $primary;
}
dt {
color: dark-light-diff($secondary, $primary, 50%, -40%);
margin: 0;
}
}
2013-09-05 15:37:07 -04:00
2013-10-10 12:48:26 -04:00
.details {
padding: 15px 10px 4px 10px;
background: rgba($secondary, .85);
2013-10-10 12:48:26 -04:00
blockquote {
background-color: dark-light-diff($secondary, $primary, 30%, -70%);
border-left-color: dark-light-diff($secondary, $primary, 50%, -50%);
}
2013-10-10 12:48:26 -04:00
h1 {
font-size: 2.143em;
2013-10-10 12:48:26 -04:00
font-weight: normal;
2014-10-27 23:35:16 -04:00
margin: 10px 0 0 0;
2013-10-10 12:48:26 -04:00
}
h2 {
font-size: 1.214em;
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: 1em;
2014-10-27 23:35:16 -04:00
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
float: left;
}
.suspended {
color: $danger;
2013-10-10 12:48:26 -04:00
}
.primary {
2014-10-27 23:35:16 -04:00
width: 100%;
position: relative;
float: left;
color: $primary;
2014-10-27 23:35:16 -04:00
h1 {font-weight: bold;}
.primary-textual {
2014-10-27 23:35:16 -04:00
float: left;
2016-02-22 05:03:50 -05:00
padding-left: 15px;
2014-10-27 23:35:16 -04:00
a[href] {
color: $primary;
}
}
2014-10-27 23:35:16 -04:00
.bio {
color: $primary;
2014-10-27 23:35:16 -04:00
max-height: 300px;
overflow: auto;
max-width: 700px;
2013-10-10 12:48:26 -04:00
2014-10-27 23:35:16 -04:00
a[href] {
text-decoration: underline;
}
2014-10-27 23:35:16 -04:00
img {
max-width: 100%;
}
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 {
2016-02-22 05:03:50 -05:00
float: left;
padding-left: 15px;
2014-11-02 00:44:56 -04:00
ul {
list-style-type: none;
margin: 0;
}
2014-10-27 23:35:16 -04:00
a {
padding: 5px 10px;
2016-02-22 05:03:50 -05:00
width: 120px;
margin-bottom: 10px;
}
}
}
.about.collapsed-info {
.controls {
margin-top: 0;
2014-10-27 23:35:16 -04:00
}
.staff-counters {
display: none;
}
2014-10-27 23:35:16 -04:00
.secondary { display: none; }
2015-08-20 17:05:04 -04:00
.profile-image {
height: 0;
}
2013-09-05 15:37:07 -04:00
.details {
2014-10-27 23:35:16 -04:00
padding: 12px 15px 2px 15px;
margin-top: 0;
background: rgba($secondary, .85);
.bio { display: none; }
.primary {
text-align: left;
2014-10-27 23:35:16 -04:00
margin-top: 0;
width: 100%;
.avatar {
float: left;
margin-right: 10px;
width: 45px;
height: 45px;
}
h1 {
font-size: 1.429em;
}
h2 {
font-size: 1.071em;
margin-top: 4px;
}
2014-10-27 23:35:16 -04:00
h3 {
display: none;
}
}
2013-10-10 12:48:26 -04:00
}
}
2013-09-05 15:37:07 -04:00
2014-10-27 23:35:16 -04:00
2013-09-05 15:37:07 -04:00
.user-stream {
.excerpt {
margin: 5px 0;
font-size: 0.929em;
2013-09-05 15:37:07 -04:00
word-wrap: break-word;
2014-10-27 23:35:16 -04:00
color: $primary;
2013-09-05 15:37:07 -04:00
}
.item.moderator-action {
2014-10-27 23:35:16 -04:00
background-color: dark-light-diff($highlight, $secondary, 50%, -10%);
2013-09-05 15:37:07 -04:00
}
.item.deleted {
opacity: 0.8;
2014-10-27 23:35:16 -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 {
2014-10-27 23:35:16 -04:00
padding: 20px 0 15px 0;
background-color: $secondary;
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
2013-09-05 15:37:07 -04:00
}
.type {
2014-10-27 23:35:16 -04:00
color: $primary;
2013-09-05 15:37:07 -04:00
}
span.name {
2014-10-27 23:35:16 -04:00
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-10-31 15:26:46 -04:00
color: lighten($primary, 40%);
2013-09-05 15:37:07 -04:00
font-size: 11px;
}
.delete-info i {
font-size: 1em;
}
2013-09-05 15:37:07 -04:00
.avatar-link {
float: left;
2014-10-27 23:35:16 -04:00
margin-right: 4px;
2013-09-05 15:37:07 -04:00
}
.title {
2014-10-27 23:35:16 -04:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2015-07-10 17:35:47 -04:00
display: block;
2014-10-27 23:35:16 -04:00
}
.name {
font-size: 1em;
2014-10-27 23:35:16 -04:00
max-width: 400px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
2013-09-05 15:37:07 -04:00
}
2013-12-11 21:41:34 -05:00
.edit-reason {
2014-10-27 23:35:16 -04:00
background-color: scale-color($highlight, $lightness: 25%);
2013-12-11 21:41:34 -05:00
padding: 3px 5px 5px 5px;
}
.remove-bookmark {
2014-10-27 23:35:16 -04:00
float: right;
margin-top: -4px;
}
.notification {
2014-10-27 23:35:16 -04:00
&.unread {
background-color: dark-light-choose(scale-color($tertiary, $lightness: 85%), srgb-scale($tertiary, $secondary, 15%));
2014-10-27 23:35:16 -04:00
}
li { display: inline-block; }
p {
display: inline-block;
2014-10-27 23:35:16 -04:00
margin-left: 10px;
span {
color: $primary;
}
}
.time {
display: inline-block;
2014-10-27 23:35:16 -04:00
margin-left: 10px;
float: none;
}
// common/base/header.scss
.fa, .icon {
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
font-size: 1.714em;
}
}
.group-member-info {
.name {
display: inline-block;
margin-top: 5px;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
vertical-align: inherit;
}
.title {
display: inline-block;
margin-top: 5px;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
}
}
.topic-statuses {
float: left;
}
2013-09-05 15:37:07 -04:00
}
.staff-counters {
2014-10-27 23:35:16 -04:00
text-align: left;
background: $primary;
padding: 7px 0;
display: inline;
> div {
margin: 0 10px 0 0;
display: inline-block;
2014-10-27 23:35:16 -04:00
padding: 5px 0;
&:first-of-type {
padding-left: 10px;
}
span {
padding: 1px 5px;
border-radius: 10px;
}
}
a {
color: $secondary;
}
2014-10-27 23:35:16 -04:00
.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;
}
2014-10-27 23:35:16 -04:00
.warnings-received {
background-color: #EC441B;
}
.deleted-posts {
background-color: #EC441B;
}
.suspensions {
background-color: #c22020;
}
2014-10-27 23:35:16 -04:00
.user-field.text {
padding-top: 18px;
}
2014-10-27 23:35:16 -04:00
.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: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
2014-10-27 23:35:16 -04:00
margin-top: 5px;
margin-bottom: 10px;
font-size: 80%;
line-height: 1.4em;
}
}
clear: both;
margin-bottom: 10px;
}
2014-10-27 23:35:16 -04:00
}
.paginated-topics-list {
margin-top: 20px;
.user-content {
width: 100%;
margin-top: 0;
}
2013-09-05 15:37:07 -04:00
}
.user-archive {
display: inline-block;
}
2015-01-09 00:54:58 -05:00
.notification-buttons {
display: inline-block;
}
2016-03-26 04:30:20 -04:00
// mobile fixups for badges
.badge-card.medium {
width: 300px;
}
2016-03-28 02:39:56 -04:00
.show-badge-details {
margin-bottom: 1em;
}
.user-badges {
margin-bottom: 2em;
}
2016-03-26 04:30:20 -04:00
.show-badge-details .badge-grant-info {
display: none;
}
2016-03-28 02:39:56 -04:00
.user-info.medium {
width: 300px;
}
2016-03-30 02:36:54 -04:00
.user-info.medium .user-detail {
2016-03-28 02:39:56 -04:00
width: 240px;
}
2016-03-30 02:36:54 -04:00
.user-info.medium .user-image {
width: auto;
2016-03-28 02:39:56 -04:00
}