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

271 lines
3.9 KiB
SCSS
Raw Normal View History

// Mobile styles for "/user" section
.user-right {
&,
> .user-stream {
> .alert:first-child {
margin-top: 20px;
}
}
}
2013-09-06 03:37:07 +08:00
2013-10-11 00:48:26 +08:00
.user-main {
margin-top: 10px;
2014-10-28 11:35:16 +08:00
table.group-members {
width: 100%;
p {
max-width: 600px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
th {
2014-10-28 11:35:16 +08:00
text-align: right;
}
td {
padding: 0.5em;
border-bottom: 1px solid $primary-low;
2014-10-28 11:35:16 +08:00
img {
margin-right: 10px;
}
span.text {
2014-10-28 11:35:16 +08:00
float: right;
color: $primary;
}
}
.user-info {
width: 245px;
}
2014-10-28 11:35:16 +08:00
}
.user-content {
background-color: $secondary;
box-sizing: border-box;
2016-03-26 16:30:20 +08:00
margin-top: 10px;
2014-10-28 11:35:16 +08:00
.btn.right {
float: right;
2014-10-28 11:35:16 +08:00
}
table {
width: 100%;
margin-top: 10px;
}
}
2013-10-11 00:48:26 +08:00
.about {
2016-02-22 18:18:34 +08:00
background: dark-light-diff($primary, $secondary, 0%, -75%) center;
2013-10-11 00:48:26 +08:00
margin-bottom: 10px;
2014-10-28 11:35:16 +08:00
color: $secondary;
&.no-background {
.profile-image {
display: none;
}
}
.secondary {
2014-10-28 11:35:16 +08:00
dl {
padding: 5px 0;
2014-10-28 11:35:16 +08:00
}
}
2013-09-06 03:37:07 +08:00
2013-10-11 00:48:26 +08:00
.details {
padding: 15px 5px 5px 5px;
2013-10-11 00:48:26 +08:00
h1 {
margin: 0;
2018-01-13 06:27:38 +08:00
line-height: $line-height-small;
}
h2 {
2018-01-13 06:27:38 +08:00
line-height: $line-height-medium;
2013-10-11 00:48:26 +08:00
}
.primary {
display: flex;
flex-wrap: wrap;
color: $primary;
.avatar {
margin: 0 5px 10px 5px;
}
.primary-textual {
flex: 1 1 40%;
padding-left: 5px;
word-break: break-word;
2014-10-28 11:35:16 +08:00
a[href] {
color: $primary;
}
}
2014-10-28 11:35:16 +08:00
.bio {
color: $primary;
2014-10-28 11:35:16 +08:00
max-width: 700px;
2013-10-11 00:48:26 +08:00
}
}
.user-profile-avatar .avatar-flair {
right: 2px;
}
2013-09-06 03:37:07 +08:00
}
2013-10-11 00:48:26 +08:00
.controls {
order: 3;
flex: 1 1 25%;
margin-left: auto;
2014-11-02 12:44:56 +08:00
ul {
margin: 0;
display: flex;
flex: 1 1 auto;
flex-wrap: wrap;
}
li {
display: flex;
flex: 1 1 auto;
margin: 0 5px;
}
span {
flex: 0 1 100%;
margin: 0 5px;
}
.user-profile-controls-outlet {
margin: 0;
li {
margin: 0;
}
2014-11-02 12:44:56 +08:00
}
2014-10-28 11:35:16 +08:00
a {
flex: 1 1 auto;
min-width: 120px;
}
}
2014-10-28 11:35:16 +08:00
&.collapsed-info {
.details {
.primary {
.primary-textual {
margin: 0 10px 5px 0;
}
.avatar {
margin: 0 5px 10px 5px;
}
}
}
.user-profile-avatar .avatar-flair {
bottom: 12px;
}
2013-10-11 00:48:26 +08:00
}
}
2013-09-06 03:37:07 +08:00
2014-10-28 11:35:16 +08:00
.user-field {
label {
width: auto;
text-align: left;
2014-10-28 11:35:16 +08:00
font-weight: bold;
}
}
2014-10-28 11:35:16 +08:00
}
.profile-image {
height: 25px;
width: 100%;
}
.has-background .details {
margin-top: 200px;
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
2014-10-28 11:35:16 +08:00
.paginated-topics-list {
margin-top: 20px;
2013-09-06 03:37:07 +08:00
}
.stats-section {
li {
margin: 0 15px 10px 0;
padding: 0;
&.linked-stat {
a {
padding: 0;
}
}
}
}
2016-03-26 16:30:20 +08:00
// mobile fixups for badges
.badge-card.medium {
width: 100%;
2016-03-26 16:30:20 +08:00
}
2016-03-28 14:39:56 +08:00
.user-badges {
margin-bottom: 2em;
}
.show-badge-details {
margin-bottom: 1em;
2016-03-28 14:39:56 +08:00
.badge-grant-info {
display: none;
}
2016-03-28 14:39:56 +08:00
}
.user-preferences {
.instructions {
margin-top: 5px;
}
.category-controls {
padding-top: 8px;
}
.controls-dropdown {
margin-top: 10px;
margin-bottom: 15px;
2016-03-28 14:39:56 +08:00
select {
width: 280px;
}
}
.save-button {
width: 100%;
overflow: auto;
max-width: 200px;
button {
display: block;
}
}
.delete-account {
overflow: hidden;
}
.checkbox-label {
display: flex;
overflow: auto;
width: 100%;
padding: 5px 0;
input {
margin-right: 5px;
2018-05-14 23:11:16 +08:00
flex: 0 0 auto;
}
}
.desktop-notifications button {
float: none;
}
.apps .controls button {
float: right;
}
2016-03-28 14:39:56 +08:00
}