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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

436 lines
7.1 KiB
SCSS
Raw Normal View History

// Mobile styles for "/user" section
2013-09-05 15:37:07 -04:00
.user-content-wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto auto;
grid-gap: 16px;
.user-primary-navigation {
grid-column-start: 1;
grid-row-start: 1;
2019-03-25 16:41:03 -04:00
grid-column-end: 2;
min-width: 120px;
}
.user-secondary-navigation {
grid-column-start: 2;
grid-row-start: 1;
min-width: 120px;
}
2019-03-25 16:41:03 -04:00
.user-additional-controls + .user-content,
.user-secondary-navigation + .user-content {
grid-column-start: 1;
}
.user-additional-controls {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 2;
}
.user-content,
.spinner {
grid-row-start: 3;
2019-03-25 16:41:03 -04:00
grid-column-start: 1;
}
// specific to messages
.user-messages {
grid-row-start: 2;
grid-column-start: 1;
grid-column-end: 3;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
+ .user-additional-controls {
grid-row-start: 2;
grid-column-start: 1;
}
}
.inboxes-controls {
display: flex;
}
.new-private-message {
grid-row-start: 1;
grid-column-start: 2;
}
.group-notifications-button {
margin-left: 8px;
.select-kit-header {
.selected-name .name {
display: none;
}
}
}
}
.user-messages-page {
.paginated-topics-list {
margin-top: 0;
}
.show-mores {
margin-top: 0.5em;
}
}
2013-10-10 12:48:26 -04:00
.user-main {
padding-bottom: 60px; // slightly taller than .footer-nav
2014-10-27 23:35:16 -04:00
.user-content {
box-sizing: border-box;
background-color: var(--secondary);
2014-10-27 23:35:16 -04:00
table {
width: 100%;
2020-04-24 19:32:02 -04:00
margin-top: 12px;
2014-10-27 23:35:16 -04:00
}
}
2013-10-10 12:48:26 -04:00
.about {
margin-bottom: 0;
color: var(--secondary);
2014-10-27 23:35:16 -04:00
.secondary {
2014-10-27 23:35:16 -04:00
dl {
2020-04-24 19:32:02 -04:00
padding: 8px 0;
2014-10-27 23:35:16 -04:00
}
}
2013-09-05 15:37:07 -04:00
2013-10-10 12:48:26 -04:00
.details {
2020-04-24 19:32:02 -04:00
margin-bottom: 12px;
2013-10-10 12:48:26 -04:00
h1 {
2018-01-12 17:27:38 -05:00
line-height: $line-height-small;
}
h2 {
2018-01-12 17:27:38 -05:00
line-height: $line-height-medium;
2013-10-10 12:48:26 -04:00
}
.user-profile-avatar {
.avatar-flair {
right: 2px;
}
display: block;
float: none;
2020-04-24 19:32:02 -04:00
margin: 8px auto;
img.avatar {
float: none;
}
}
.user-profile-names {
text-align: center;
}
.featured-topic {
text-align: center;
font-size: $font-0;
}
.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;
2013-10-10 12:48:26 -04:00
}
}
.primary {
display: flex;
flex-wrap: wrap;
color: var(--primary);
.avatar {
2020-04-24 19:32:02 -04:00
margin: 0 0 12px;
}
.primary-textual {
flex: 1 1 100%;
word-break: break-word;
margin: 0;
max-width: 100%;
}
.bio {
color: var(--primary);
2020-04-24 19:32:02 -04:00
margin: 0 auto 8px;
max-width: 700px;
text-align: center;
ol {
margin-left: 25px;
}
ul,
ol {
display: inline-block;
padding-left: 0;
text-align: left;
}
}
.public-user-fields .public-user-field {
text-align: center;
}
}
&.has-background {
2019-03-29 12:52:26 -04:00
.user-profile-image {
height: 200px;
}
.user-profile-avatar {
2020-04-24 19:32:02 -04:00
margin-top: -60px;
}
2013-09-05 15:37:07 -04:00
}
2013-10-10 12:48:26 -04:00
.controls {
order: 3;
flex: 1 1 25%;
margin-left: auto;
.btn {
margin-bottom: 16px;
}
2014-11-02 00:44:56 -04:00
ul {
margin: 0;
display: flex;
flex: 1 1 auto;
flex-wrap: wrap;
li,
> span {
display: flex;
flex: 1 1 45%;
margin-left: 1em;
button,
a {
width: 100%;
}
2019-03-29 12:52:26 -04:00
.select-kit.dropdown-select-box.user-notifications-dropdown {
width: 100%;
li {
flex: 1 1 100%;
margin-left: 0;
}
}
}
}
> ul {
margin-left: -1em; // negates left button margin, for alignment
}
.user-profile-controls-outlet {
2019-03-20 16:04:47 -04:00
margin: 0 0 0 1em;
li {
margin: 0;
}
2014-11-02 00:44:56 -04:00
}
2014-10-27 23:35:16 -04:00
a {
flex: 1 1 auto;
min-width: 120px;
}
}
2013-10-10 12:48:26 -04:00
}
2013-09-05 15:37:07 -04:00
2014-10-27 23:35:16 -04:00
.user-field {
label {
width: auto;
text-align: left;
2014-10-27 23:35:16 -04:00
font-weight: bold;
}
}
2014-10-27 23:35:16 -04:00
}
.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;
margin-bottom: 16px;
.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;
}
}
2014-10-27 23:35:16 -04:00
.paginated-topics-list {
margin-top: 20px;
2013-09-05 15:37:07 -04:00
}
.stats-section {
li {
margin: 0 15px 10px 0;
padding: 0;
&.linked-stat {
a {
padding: 0;
}
}
}
}
2016-03-26 04:30:20 -04:00
.badge-card.medium {
width: 100%;
2016-03-26 04:30:20 -04:00
}
.user-preferences {
padding-bottom: 2em;
.instructions {
2020-04-24 19:32:02 -04:00
margin-top: 4px;
}
.controls-dropdown {
2020-04-24 19:32:02 -04:00
margin-bottom: 16px;
}
.delete-account {
overflow: hidden;
}
.checkbox-label {
display: flex;
overflow: auto;
width: 100%;
padding: 5px 0;
input {
margin-right: 5px;
2018-05-14 11:11:16 -04:00
flex: 0 0 auto;
}
}
.apps .controls button {
float: right;
}
2016-03-28 02:39:56 -04:00
}
.user-right {
&,
> .user-stream {
> .alert:first-child {
margin-top: 20px;
}
}
}
.user-invites-page {
.user-invite-search input {
width: 100%;
}
.user-additional-controls {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
.user-invite-search {
width: 100%;
}
.user-invite-buttons {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
.btn {
margin-bottom: 0.5em;
}
.btn:not(:last-of-type) {
margin-right: 0.5em;
}
}
}
table.user-invite-list {
thead {
display: none;
}
tr {
display: grid;
grid-template-columns: repeat(4, 1fr);
padding: 0.25em;
}
.label {
display: block;
color: var(--primary-medium);
font-size: $font-down-1;
margin: 0.5em 0 0.15em 0;
}
td.invite-type {
grid-column-start: 1;
grid-column-end: -2;
order: 1;
vertical-align: middle;
}
td.invite-actions {
order: 2;
align-self: center;
text-align: right;
button {
margin: 0.25em;
}
}
td.invite-updated-at {
grid-column-start: 1;
grid-column-end: 3;
order: 3;
}
td.invite-expires-at {
grid-column-start: 3;
grid-column-end: -1;
order: 4;
}
td.invite-actions {
display: flex;
}
}
.user-invite-none {
margin-top: 1em;
}
}