Merge branch 'master' into glitch-soc/master

Conflicts:
	app/models/account.rb
	app/views/accounts/_header.html.haml
This commit is contained in:
Thibaut Girka
2018-05-09 17:43:30 +02:00
145 changed files with 3052 additions and 803 deletions

View File

@ -565,36 +565,41 @@
}
.account__header__fields {
border-collapse: collapse;
padding: 0;
margin: 15px -15px -15px;
border: 0 none;
border-top: 1px solid lighten($ui-base-color, 4%);
border-bottom: 1px solid lighten($ui-base-color, 4%);
font-size: 14px;
line-height: 20px;
th,
td {
padding: 15px;
padding-left: 15px;
border: 0 none;
dl {
display: flex;
border-bottom: 1px solid lighten($ui-base-color, 4%);
vertical-align: middle;
}
th {
padding-left: 15px;
font-weight: 500;
dt,
dd {
box-sizing: border-box;
padding: 14px;
text-align: center;
width: 94px;
max-height: 48px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
dt {
font-weight: 500;
width: 120px;
flex: 0 0 auto;
color: $secondary-text-color;
background: rgba(darken($ui-base-color, 8%), 0.5);
}
td {
dd {
flex: 1 1 auto;
color: $darker-text-color;
text-align: center;
width: 100%;
padding-left: 0;
}
a {
@ -608,12 +613,7 @@
}
}
tr {
&:last-child {
th,
td {
border-bottom: 0;
}
}
dl:last-child {
border-bottom: 0;
}
}

View File

@ -336,7 +336,8 @@
}
}
.simple_form.new_report_note {
.simple_form.new_report_note,
.simple_form.new_account_moderation_note {
max-width: 100%;
}

View File

@ -4033,7 +4033,7 @@ a.status-card {
.report-modal__statuses {
flex: 1 1 auto;
min-height: 20vh;
max-height: 40vh;
max-height: 80vh;
overflow-y: auto;
overflow-x: hidden;
@ -5159,38 +5159,45 @@ noscript {
}
}
.account__header .roles {
margin-top: 20px;
margin-bottom: 20px;
padding: 0 15px;
}
.account__header .account__header__fields {
font-size: 14px;
line-height: 20px;
overflow: hidden;
border-collapse: collapse;
margin: 20px -10px -20px;
border-bottom: 0;
tr {
dl {
border-top: 1px solid lighten($ui-base-color, 8%);
text-align: center;
display: flex;
}
th,
td {
dt,
dd {
box-sizing: border-box;
padding: 14px 20px;
vertical-align: middle;
max-height: 40px;
text-align: center;
max-height: 48px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
th {
dt {
color: $darker-text-color;
background: darken($ui-base-color, 4%);
max-width: 120px;
width: 120px;
flex: 0 0 auto;
font-weight: 500;
}
td {
flex: auto;
dd {
flex: 1 1 auto;
color: $primary-text-color;
background: $ui-base-color;
}

View File

@ -60,6 +60,7 @@
}
}
.card-standalone__body,
.media-gallery-standalone__body {
overflow: hidden;
}

View File

@ -87,6 +87,10 @@ code {
align-items: flex-start;
}
&.file .label_input {
flex-wrap: nowrap;
}
&.select .label_input {
align-items: initial;
}