mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:36:18 +08:00
319 lines
5.1 KiB
SCSS
319 lines
5.1 KiB
SCSS
// Mobile styles for "/user" section
|
|
|
|
.user-content-wrapper {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: auto auto auto;
|
|
grid-row-gap: s(5);
|
|
grid-column-gap: s(4);
|
|
.user-primary-navigation {
|
|
grid-column-start: 1;
|
|
grid-row-start: 1;
|
|
}
|
|
.user-secondary-navigation {
|
|
grid-column-start: 2;
|
|
grid-row-start: 1;
|
|
}
|
|
.user-secondary-navigation + .user-content {
|
|
grid-column-start: 1;
|
|
grid-column-end: span 2;
|
|
}
|
|
.user-additional-controls {
|
|
grid-column-start: 1;
|
|
grid-row-start: 2;
|
|
}
|
|
.user-content,
|
|
.spinner {
|
|
grid-row-start: 3;
|
|
grid-column-start: span 2;
|
|
}
|
|
}
|
|
|
|
.user-main {
|
|
margin-top: s(3);
|
|
|
|
.user-content {
|
|
box-sizing: border-box;
|
|
background-color: $secondary;
|
|
table {
|
|
width: 100%;
|
|
margin-top: s(3);
|
|
}
|
|
}
|
|
|
|
.about {
|
|
margin-bottom: 0;
|
|
color: $secondary;
|
|
|
|
.secondary {
|
|
margin-bottom: s(3);
|
|
dl {
|
|
padding: s(2) 0;
|
|
}
|
|
}
|
|
|
|
.details {
|
|
background: $secondary;
|
|
|
|
h1 {
|
|
line-height: $line-height-small;
|
|
}
|
|
|
|
h2 {
|
|
line-height: $line-height-medium;
|
|
}
|
|
|
|
.user-profile-avatar {
|
|
.avatar-flair {
|
|
right: 2px;
|
|
}
|
|
display: block;
|
|
float: none;
|
|
margin: s(2 auto);
|
|
img.avatar {
|
|
float: none;
|
|
}
|
|
}
|
|
|
|
.user-profile-names {
|
|
text-align: center;
|
|
}
|
|
|
|
.location-and-website {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
font-size: $font-0;
|
|
.d-icon {
|
|
width: 0.8em;
|
|
height: 0.8em;
|
|
margin-right: 0.25em;
|
|
}
|
|
a {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.user-profile-location {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.user-profile-location,
|
|
.user-profile-website {
|
|
justify-content: center;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
.primary {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
color: $primary;
|
|
|
|
.avatar {
|
|
margin: 0 0 s(3);
|
|
}
|
|
|
|
.primary-textual {
|
|
flex: 1 1 100%;
|
|
word-break: break-word;
|
|
margin: 0;
|
|
}
|
|
|
|
.bio {
|
|
color: $primary;
|
|
margin: 0 auto s(2);
|
|
max-width: 700px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
&.has-background {
|
|
background-size: contain;
|
|
background-position: top center;
|
|
background-repeat: no-repeat;
|
|
|
|
.user-profile-avatar {
|
|
margin-top: s(-24);
|
|
}
|
|
.details {
|
|
margin-top: 200px;
|
|
}
|
|
}
|
|
|
|
.controls {
|
|
order: 3;
|
|
flex: 1 1 25%;
|
|
margin-left: auto;
|
|
|
|
ul {
|
|
margin: 0;
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-wrap: wrap;
|
|
margin-left: -1em;
|
|
li,
|
|
> span {
|
|
display: flex;
|
|
flex: 1 1 45%;
|
|
margin-left: 1em;
|
|
button,
|
|
a {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-profile-controls-outlet {
|
|
margin: 0 0 0 1em;
|
|
li {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
a {
|
|
flex: 1 1 auto;
|
|
min-width: 120px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-field {
|
|
label {
|
|
width: auto;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-main .collapsed-info.about.has-background {
|
|
background-image: none !important; // todo: make changes to behavior to remove this
|
|
.details {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.user-main .collapsed-info.about .details {
|
|
display: flex;
|
|
.user-profile-avatar {
|
|
margin: 0;
|
|
flex: 0 0 auto;
|
|
align-self: flex-start;
|
|
}
|
|
.primary .primary-textual {
|
|
flex: 1 0 80%;
|
|
margin: 0;
|
|
}
|
|
.user-profile-names {
|
|
text-align: left;
|
|
}
|
|
.controls {
|
|
margin: s(2) 0 s(3);
|
|
border-bottom: 1px solid $primary-low;
|
|
}
|
|
}
|
|
|
|
.form-horizontal .control-group.category {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.paginated-topics-list {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.stats-section {
|
|
li {
|
|
margin: 0 15px 10px 0;
|
|
padding: 0;
|
|
&.linked-stat {
|
|
a {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.badge-card.medium {
|
|
width: 100%;
|
|
}
|
|
|
|
.user-badges {
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.user-preferences {
|
|
.instructions {
|
|
margin-top: s(1);
|
|
}
|
|
|
|
.controls-dropdown {
|
|
margin-bottom: s(4);
|
|
}
|
|
|
|
.delete-account {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
overflow: auto;
|
|
width: 100%;
|
|
padding: 5px 0;
|
|
input {
|
|
margin-right: 5px;
|
|
flex: 0 0 auto;
|
|
}
|
|
}
|
|
|
|
.apps .controls button {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
.staff-counters {
|
|
margin-bottom: s(4);
|
|
}
|
|
|
|
.user-right {
|
|
&,
|
|
> .user-stream {
|
|
> .alert:first-child {
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.user-invites-page {
|
|
.admin-controls {
|
|
flex-wrap: wrap;
|
|
.pull-right {
|
|
flex: 1 1 100%;
|
|
font-size: $font-down-1;
|
|
padding: 0;
|
|
}
|
|
}
|
|
table {
|
|
tr:first-of-type {
|
|
display: none;
|
|
}
|
|
tr {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1em;
|
|
}
|
|
td:first-of-type {
|
|
margin-right: 1em;
|
|
}
|
|
td:nth-of-type(n + 3) {
|
|
display: block;
|
|
width: 50%;
|
|
padding: 0.25em 0 1em 0;
|
|
}
|
|
}
|
|
.user-invite-none {
|
|
margin-top: 1em;
|
|
}
|
|
}
|