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

238 lines
3.3 KiB
SCSS

// Mobile styles for "/user" section
.user-right {
&,
> .user-stream {
> .alert:first-child {
margin-top: 20px;
}
}
}
.user-main {
table.group-members {
width: 100%;
p {
max-width: 600px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
th {
padding: 0.5em;
text-align: right;
border-bottom: 1px solid $primary-low;
}
td {
padding: 0.5em;
border-bottom: 1px solid $primary-low;
img {
margin-right: 10px;
}
span.text {
float: right;
color: $primary;
}
}
.user-info {
width: 245px;
}
}
.user-content {
background-color: $secondary;
box-sizing: border-box;
margin-top: 10px;
.btn.right {
float: right
}
h2 {
margin-bottom: 10px;
}
table {
width: 100%;
margin-top: 10px;
th {
text-align: left;
border-bottom: 1px solid $primary-low;
padding: 5px;
}
td {
padding: 5px;
border-bottom: 1px solid $primary-low;
}
}
}
.about {
background: dark-light-diff($primary, $secondary, 0%, -75%) center;
margin-bottom: 10px;
color: $secondary;
.secondary {
background: $primary-low;
dl {
padding: 10px 15px;
}
dd {
margin: 0 15px 0 5px;
}
}
.details {
padding: 15px 0 4px 0;
h1 {
margin: 10px 0 0 0;
}
.primary {
color: $primary;
.primary-textual {
float: left;
padding-left: 15px;
a[href] {
color: $primary;
}
}
.bio {
color: $primary;
max-width: 700px;
}
}
}
.controls {
float: left;
padding-left: 15px;
ul {
margin: 0;
}
a {
width: 120px;
}
}
&.collapsed-info {
.details {
padding: 12px 15px 2px 15px;
}
}
}
.staff-counters {
padding: 7px 0;
display: inline;
}
.user-field {
label {
width: auto;
text-align: left;
font-weight: bold;
}
}
}
.profile-image {
height: 25px;
width: 100%;
}
.has-background .details {
margin-top: 200px;
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
.paginated-topics-list {
margin-top: 20px;
}
// mobile fixups for badges
.badge-card.medium {
width: 300px;
}
.user-badges {
margin-bottom: 2em;
}
.show-badge-details {
margin-bottom: 1em;
.badge-grant-info {
display: none;
}
}
.user-preferences {
.control-group {
padding: 8px 36px 8px 8px;
}
.static {
margin-top: 5px;
margin-left: 5px;
}
.instructions {
margin-top: 5px;
}
.category-controls {
padding-top: 8px;
}
.controls-dropdown {
margin-top: 10px;
margin-bottom: 15px;
padding-left: 5px;
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;
}
.desktop-notifications button {
float: none;
}
.apps .controls button {
float: right;
}
}