Merge remote-tracking branch 'origin/master' into gs-master

Conflicts:
 	.travis.yml
 	Gemfile.lock
 	README.md
 	app/controllers/settings/follower_domains_controller.rb
 	app/controllers/statuses_controller.rb
 	app/javascript/mastodon/locales/ja.json
 	app/lib/feed_manager.rb
 	app/models/media_attachment.rb
 	app/models/mute.rb
 	app/models/status.rb
 	app/services/mute_service.rb
 	app/views/home/index.html.haml
 	app/views/stream_entries/_simple_status.html.haml
 	config/locales/ca.yml
 	config/locales/en.yml
 	config/locales/es.yml
 	config/locales/fr.yml
 	config/locales/nl.yml
 	config/locales/pl.yml
 	config/locales/pt-BR.yml
 	config/themes.yml
This commit is contained in:
David Yip
2018-05-03 17:23:44 -05:00
437 changed files with 5999 additions and 1848 deletions

View File

@@ -31,7 +31,7 @@
&:active,
&:focus,
&:hover {
background-color: lighten($ui-highlight-color, 4%);
background-color: lighten($ui-highlight-color, 10%);
transition: all 200ms ease-out;
}
@@ -83,7 +83,7 @@
}
&.button-secondary {
color: $ui-primary-color;
color: $darker-text-color;
background: transparent;
padding: 3px 15px;
border: 1px solid $ui-primary-color;
@@ -92,7 +92,7 @@
&:focus,
&:hover {
border-color: lighten($ui-primary-color, 4%);
color: lighten($ui-primary-color, 4%);
color: lighten($darker-text-color, 4%);
}
}
@@ -149,18 +149,18 @@
&:hover,
&:active,
&:focus {
color: transparentize($lighter-text-color, 0.07);
color: darken($lighter-text-color, 7%);
}
&.disabled {
color: opacify($lighter-text-color, 0.07);
color: lighten($lighter-text-color, 7%);
}
&.active {
color: $highlight-text-color;
&.disabled {
color: opacify($lighter-text-color, 0.13);
color: lighten($highlight-text-color, 13%);
}
}
}
@@ -193,12 +193,12 @@
&:hover,
&:active,
&:focus {
color: opacify($lighter-text-color, 0.07);
color: darken($lighter-text-color, 7%);
transition: color 200ms ease-out;
}
&.disabled {
color: transparentize($lighter-text-color, 0.2);
color: lighten($lighter-text-color, 20%);
cursor: default;
}
@@ -349,7 +349,7 @@
box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
background: $ui-secondary-color;
border-radius: 0 0 4px 4px;
color: $lighter-text-color;
color: $inverted-text-color;
font-size: 14px;
padding: 6px;
@@ -457,7 +457,7 @@
input {
background: transparent;
color: $primary-text-color;
color: $secondary-text-color;
border: 0;
padding: 0;
margin: 0;
@@ -471,8 +471,8 @@
}
&::placeholder {
opacity: 0.54;
color: $darker-text-color;
opacity: 0.75;
color: $secondary-text-color;
}
}
@@ -556,7 +556,6 @@
}
.emojione {
display: inline-block;
font-size: inherit;
vertical-align: middle;
object-fit: contain;
@@ -588,7 +587,7 @@
}
.reply-indicator__display-name {
color: $lighter-text-color;
color: $inverted-text-color;
display: block;
max-width: 100%;
line-height: 24px;
@@ -643,14 +642,14 @@
}
a {
color: $ui-secondary-color;
color: $secondary-text-color;
text-decoration: none;
&:hover {
text-decoration: underline;
.fa {
color: lighten($action-button-color, 7%);
color: lighten($dark-text-color, 7%);
}
}
@@ -665,7 +664,7 @@
}
.fa {
color: $action-button-color;
color: $dark-text-color;
}
}
@@ -702,7 +701,7 @@
border-radius: 2px;
background: transparent;
border: 0;
color: $lighter-text-color;
color: $inverted-text-color;
font-weight: 700;
font-size: 11px;
padding: 0 6px;
@@ -769,7 +768,7 @@
&.light {
.status__relative-time {
color: $lighter-text-color;
color: $light-text-color;
}
.status__display-name {
@@ -782,7 +781,7 @@
}
span {
color: $lighter-text-color;
color: $light-text-color;
}
}
@@ -816,13 +815,13 @@
}
.status__relative-time {
color: $darker-text-color;
color: $dark-text-color;
float: right;
font-size: 14px;
}
.status__display-name {
color: $darker-text-color;
color: $dark-text-color;
}
.status__info .status__display-name {
@@ -873,14 +872,14 @@
.status__prepend {
margin-left: 68px;
color: $darker-text-color;
color: $dark-text-color;
padding: 8px 0;
padding-bottom: 2px;
font-size: 14px;
position: relative;
.status__display-name strong {
color: $darker-text-color;
color: $dark-text-color;
}
> span {
@@ -942,7 +941,7 @@
.detailed-status__meta {
margin-top: 15px;
color: $darker-text-color;
color: $dark-text-color;
font-size: 14px;
line-height: 18px;
}
@@ -1006,6 +1005,15 @@
padding: 10px;
border-bottom: 1px solid lighten($ui-base-color, 8%);
&.compact {
padding: 0;
border-bottom: 0;
.account__avatar-wrapper {
margin-left: 0;
}
}
.account__display-name {
flex: 1 1 auto;
display: block;
@@ -1029,7 +1037,6 @@
.account__avatar {
@include avatar-radius();
position: relative;
cursor: pointer;
&-inline {
display: inline-block;
@@ -1038,6 +1045,10 @@
}
}
a .account__avatar {
cursor: pointer;
}
.account__avatar-overlay {
@include avatar-size(48px);
@@ -1079,7 +1090,7 @@
}
.account__header__username {
color: $darker-text-color;
color: $secondary-text-color;
}
}
@@ -1089,7 +1100,7 @@
}
.account__header__content {
color: $darker-text-color;
color: $secondary-text-color;
}
.account__header__display-name {
@@ -1117,7 +1128,7 @@
.account__disclaimer {
padding: 10px;
border-top: 1px solid lighten($ui-base-color, 8%);
color: $darker-text-color;
color: $dark-text-color;
strong {
font-weight: 500;
@@ -1286,7 +1297,7 @@
.status__display-name,
.reply-indicator__display-name,
.detailed-status__display-name,
.account__display-name {
a.account__display-name {
&:hover strong {
text-decoration: underline;
}
@@ -1304,7 +1315,7 @@
}
.detailed-status__display-name {
color: $darker-text-color;
color: $secondary-text-color;
display: block;
line-height: 24px;
margin-bottom: 15px;
@@ -1339,11 +1350,11 @@
.muted {
.status__content p,
.status__content a {
color: $darker-text-color;
color: $dark-text-color;
}
.status__display-name strong {
color: $darker-text-color;
color: $dark-text-color;
}
.status__avatar {
@@ -1351,11 +1362,11 @@
}
a.status__content__spoiler-link {
background: $darker-text-color;
color: lighten($ui-base-color, 4%);
background: $ui-base-lighter-color;
color: $inverted-text-color;
&:hover {
background: transparentize($darker-text-color, 0.07);
background: lighten($ui-base-lighter-color, 7%);
text-decoration: none;
}
}
@@ -1366,7 +1377,7 @@
padding: 8px 0;
padding-bottom: 0;
cursor: default;
color: $ui-primary-color;
color: $darker-text-color;
font-size: 15px;
position: relative;
@@ -1477,7 +1488,7 @@
color: $darker-text-color;
strong {
color: $primary-text-color;
color: $secondary-text-color;
}
a {
@@ -1591,7 +1602,7 @@
&:hover,
&:active {
background: $ui-highlight-color;
color: $primary-text-color;
color: $secondary-text-color;
outline: 0;
}
}
@@ -1644,7 +1655,7 @@
&:hover {
background: $ui-highlight-color;
color: $primary-text-color;
color: $secondary-text-color;
}
}
}
@@ -1656,7 +1667,7 @@
.static-content {
padding: 10px;
padding-top: 20px;
color: $darker-text-color;
color: $dark-text-color;
h1 {
font-size: 16px;
@@ -1743,7 +1754,7 @@
display: block;
flex: 1 1 auto;
padding: 15px 5px 13px;
color: $ui-primary-color;
color: $darker-text-color;
text-decoration: none;
text-align: center;
font-size: 16px;
@@ -2155,7 +2166,7 @@
.column-subheading {
background: $ui-base-color;
color: $darker-text-color;
color: $dark-text-color;
padding: 8px 20px;
font-size: 12px;
font-weight: 500;
@@ -2178,11 +2189,11 @@
flex: 1 0 auto;
p {
color: $darker-text-color;
color: $secondary-text-color;
}
a {
color: opacify($darker-text-color, 0.07);
color: $dark-text-color;
}
}
@@ -2263,7 +2274,7 @@
font-size: 14px;
border: 1px solid lighten($ui-base-color, 8%);
border-radius: 4px;
color: $darker-text-color;
color: $dark-text-color;
margin-top: 14px;
text-decoration: none;
overflow: hidden;
@@ -2343,7 +2354,7 @@ a.status-card {
display: block;
font-weight: 500;
margin-bottom: 5px;
color: $ui-primary-color;
color: $darker-text-color;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -2357,7 +2368,7 @@ a.status-card {
}
.status-card__description {
color: $ui-primary-color;
color: $darker-text-color;
}
.status-card__host {
@@ -2401,7 +2412,7 @@ a.status-card {
.load-more {
display: block;
color: $darker-text-color;
color: $dark-text-color;
background-color: transparent;
border: 0;
font-size: inherit;
@@ -2425,7 +2436,7 @@ a.status-card {
text-align: center;
font-size: 16px;
font-weight: 500;
color: opacify($darker-text-color, 0.07);
color: $dark-text-color;
background: $ui-base-color;
cursor: default;
display: flex;
@@ -2465,7 +2476,7 @@ a.status-card {
strong {
display: block;
margin-bottom: 10px;
color: $darker-text-color;
color: $dark-text-color;
}
span {
@@ -2553,13 +2564,13 @@ a.status-card {
.column-header__button {
background: lighten($ui-base-color, 4%);
border: 0;
color: $ui-primary-color;
color: $darker-text-color;
cursor: pointer;
font-size: 16px;
padding: 0 15px;
&:hover {
color: lighten($ui-primary-color, 7%);
color: lighten($darker-text-color, 7%);
}
&.active {
@@ -2640,7 +2651,7 @@ a.status-card {
}
.loading-indicator {
color: $darker-text-color;
color: $dark-text-color;
font-size: 12px;
font-weight: 400;
text-transform: uppercase;
@@ -2737,7 +2748,7 @@ a.status-card {
&:active,
&:focus {
padding: 0;
color: transparentize($darker-text-color, 0.07);
color: lighten($darker-text-color, 8%);
}
}
@@ -2861,7 +2872,7 @@ a.status-card {
.empty-column-indicator,
.error-column {
color: $darker-text-color;
color: $dark-text-color;
background: $ui-base-color;
text-align: center;
padding: 20px;
@@ -3063,7 +3074,7 @@ a.status-card {
display: flex;
align-items: center;
justify-content: center;
color: $primary-text-color;
color: $secondary-text-color;
font-size: 18px;
font-weight: 500;
border: 2px dashed $ui-base-lighter-color;
@@ -3161,7 +3172,7 @@ a.status-card {
}
.privacy-dropdown__option {
color: $lighter-text-color;
color: $inverted-text-color;
padding: 10px;
cursor: pointer;
display: flex;
@@ -3283,7 +3294,7 @@ a.status-card {
font-size: 18px;
width: 18px;
height: 18px;
color: $ui-secondary-color;
color: $secondary-text-color;
cursor: default;
pointer-events: none;
@@ -3319,7 +3330,7 @@ a.status-card {
}
.search-results__header {
color: $darker-text-color;
color: $dark-text-color;
background: lighten($ui-base-color, 2%);
border-bottom: 1px solid darken($ui-base-color, 4%);
padding: 15px 10px;
@@ -3367,13 +3378,13 @@ a.status-card {
.search-results__hashtag {
display: block;
padding: 10px;
color: darken($primary-text-color, 4%);
color: $secondary-text-color;
text-decoration: none;
&:hover,
&:active,
&:focus {
color: $primary-text-color;
color: lighten($secondary-text-color, 4%);
text-decoration: underline;
}
}
@@ -3638,7 +3649,7 @@ a.status-card {
&:hover,
&:focus,
&:active {
color: transparentize($lighter-text-color, 0.04);
color: darken($lighter-text-color, 4%);
background-color: darken($ui-secondary-color, 16%);
}
@@ -3732,7 +3743,7 @@ a.status-card {
strong {
font-weight: 500;
background: $ui-base-color;
color: $primary-text-color;
color: $secondary-text-color;
border-radius: 4px;
font-size: 14px;
padding: 3px 6px;
@@ -3792,7 +3803,7 @@ a.status-card {
&__case {
background: $ui-base-color;
color: $primary-text-color;
color: $secondary-text-color;
font-weight: 500;
padding: 10px;
border-radius: 4px;
@@ -3809,7 +3820,7 @@ a.status-card {
.figure {
background: darken($ui-base-color, 8%);
color: $darker-text-color;
color: $secondary-text-color;
margin-bottom: 20px;
border-radius: 4px;
padding: 10px;
@@ -3921,7 +3932,7 @@ a.status-card {
}
.status__content__spoiler-link {
color: lighten($ui-secondary-color, 8%);
color: lighten($secondary-text-color, 8%);
}
}
@@ -4026,6 +4037,10 @@ a.status-card {
overflow-y: auto;
overflow-x: hidden;
.status__content a {
color: $highlight-text-color;
}
@media screen and (max-width: 480px) {
max-height: 10vh;
}
@@ -4151,7 +4166,7 @@ a.status-card {
&:hover,
&:focus,
&:active {
color: transparentize($lighter-text-color, 0.04);
color: darken($lighter-text-color, 4%);
}
}
}
@@ -4232,7 +4247,7 @@ a.status-card {
&__icon {
flex: 0 0 auto;
color: $darker-text-color;
color: $dark-text-color;
padding: 8px 18px;
cursor: default;
border-right: 1px solid lighten($ui-base-color, 8%);
@@ -4262,7 +4277,7 @@ a.status-card {
a {
text-decoration: none;
color: $darker-text-color;
color: $dark-text-color;
font-weight: 500;
&:hover {
@@ -4281,7 +4296,7 @@ a.status-card {
}
.fa {
color: $darker-text-color;
color: $dark-text-color;
}
}
}
@@ -4317,7 +4332,7 @@ a.status-card {
cursor: zoom-in;
display: block;
text-decoration: none;
color: $ui-secondary-color;
color: $secondary-text-color;
line-height: 0;
&,
@@ -4431,6 +4446,8 @@ a.status-card {
video {
max-width: 100% !important;
max-height: 100% !important;
width: 100% !important;
height: 100% !important;
}
}
@@ -4488,7 +4505,7 @@ a.status-card {
&:hover,
&:active,
&:focus {
color: transparentize($darker-text-color, 0.07);
color: lighten($darker-text-color, 7%);
}
}
@@ -4693,7 +4710,7 @@ a.status-card {
&:active,
&:focus {
outline: 0;
color: transparentize($darker-text-color, 0.07);
color: $secondary-text-color;
&::before {
content: "";
@@ -4733,7 +4750,7 @@ a.status-card {
position: relative;
&.active {
color: transparentize($darker-text-color, 0.07);
color: $secondary-text-color;
&::before,
&::after {
@@ -4768,12 +4785,12 @@ a.status-card {
padding: 10px 14px;
padding-bottom: 14px;
margin-top: 10px;
color: $lighter-text-color;
color: $light-text-color;
box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
h4 {
text-transform: uppercase;
color: $lighter-text-color;
color: $light-text-color;
font-size: 13px;
font-weight: 500;
margin-bottom: 10px;
@@ -4805,7 +4822,7 @@ noscript {
div {
font-size: 14px;
margin: 30px auto;
color: $primary-text-color;
color: $secondary-text-color;
max-width: 400px;
a {
@@ -4958,7 +4975,7 @@ noscript {
&__message {
position: relative;
margin-left: 58px;
color: $darker-text-color;
color: $dark-text-color;
padding: 8px 0;
padding-top: 0;
padding-bottom: 4px;