diff options
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/styles/fonts/montserrat.scss | 10 | ||||
-rw-r--r-- | app/javascript/styles/fonts/roboto-mono.scss | 5 | ||||
-rw-r--r-- | app/javascript/styles/fonts/roboto.scss | 20 | ||||
-rw-r--r-- | app/javascript/styles/mastodon-light/diff.scss | 8 | ||||
-rw-r--r-- | app/javascript/styles/mastodon-light/variables.scss | 4 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/about.scss | 6 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/admin.scss | 5 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/basics.scss | 6 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/components.scss | 49 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/dashboard.scss | 1 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/emoji_picker.scss | 6 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/forms.scss | 30 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/polls.scss | 9 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/statuses.scss | 2 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/variables.scss | 2 |
15 files changed, 83 insertions, 80 deletions
diff --git a/app/javascript/styles/fonts/montserrat.scss b/app/javascript/styles/fonts/montserrat.scss index ea7e04536..170fe6542 100644 --- a/app/javascript/styles/fonts/montserrat.scss +++ b/app/javascript/styles/fonts/montserrat.scss @@ -1,6 +1,7 @@ @font-face { - font-family: 'mastodon-font-display'; - src: local('Montserrat'), + font-family: mastodon-font-display; + src: + local('Montserrat'), url('../fonts/montserrat/Montserrat-Regular.woff2') format('woff2'), url('../fonts/montserrat/Montserrat-Regular.woff') format('woff'), url('../fonts/montserrat/Montserrat-Regular.ttf') format('truetype'); @@ -10,8 +11,9 @@ } @font-face { - font-family: 'mastodon-font-display'; - src: local('Montserrat Medium'), + font-family: mastodon-font-display; + src: + local('Montserrat Medium'), url('../fonts/montserrat/Montserrat-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; diff --git a/app/javascript/styles/fonts/roboto-mono.scss b/app/javascript/styles/fonts/roboto-mono.scss index bd9839abf..3802212a9 100644 --- a/app/javascript/styles/fonts/roboto-mono.scss +++ b/app/javascript/styles/fonts/roboto-mono.scss @@ -1,6 +1,7 @@ @font-face { - font-family: 'mastodon-font-monospace'; - src: local('Roboto Mono'), + font-family: mastodon-font-monospace; + src: + local('Roboto Mono'), url('../fonts/roboto-mono/robotomono-regular-webfont.woff2') format('woff2'), url('../fonts/roboto-mono/robotomono-regular-webfont.woff') format('woff'), url('../fonts/roboto-mono/robotomono-regular-webfont.ttf') format('truetype'), diff --git a/app/javascript/styles/fonts/roboto.scss b/app/javascript/styles/fonts/roboto.scss index f3a6dcb6e..657152380 100644 --- a/app/javascript/styles/fonts/roboto.scss +++ b/app/javascript/styles/fonts/roboto.scss @@ -1,6 +1,7 @@ @font-face { - font-family: 'mastodon-font-sans-serif'; - src: local('Roboto Italic'), + font-family: mastodon-font-sans-serif; + src: + local('Roboto Italic'), url('../fonts/roboto/roboto-italic-webfont.woff2') format('woff2'), url('../fonts/roboto/roboto-italic-webfont.woff') format('woff'), url('../fonts/roboto/roboto-italic-webfont.ttf') format('truetype'), @@ -11,8 +12,9 @@ } @font-face { - font-family: 'mastodon-font-sans-serif'; - src: local('Roboto Bold'), + font-family: mastodon-font-sans-serif; + src: + local('Roboto Bold'), url('../fonts/roboto/roboto-bold-webfont.woff2') format('woff2'), url('../fonts/roboto/roboto-bold-webfont.woff') format('woff'), url('../fonts/roboto/roboto-bold-webfont.ttf') format('truetype'), @@ -23,8 +25,9 @@ } @font-face { - font-family: 'mastodon-font-sans-serif'; - src: local('Roboto Medium'), + font-family: mastodon-font-sans-serif; + src: + local('Roboto Medium'), url('../fonts/roboto/roboto-medium-webfont.woff2') format('woff2'), url('../fonts/roboto/roboto-medium-webfont.woff') format('woff'), url('../fonts/roboto/roboto-medium-webfont.ttf') format('truetype'), @@ -35,8 +38,9 @@ } @font-face { - font-family: 'mastodon-font-sans-serif'; - src: local('Roboto'), + font-family: mastodon-font-sans-serif; + src: + local('Roboto'), url('../fonts/roboto/roboto-regular-webfont.woff2') format('woff2'), url('../fonts/roboto/roboto-regular-webfont.woff') format('woff'), url('../fonts/roboto/roboto-regular-webfont.ttf') format('truetype'), diff --git a/app/javascript/styles/mastodon-light/diff.scss b/app/javascript/styles/mastodon-light/diff.scss index 61c2d0d66..0bc6247ef 100644 --- a/app/javascript/styles/mastodon-light/diff.scss +++ b/app/javascript/styles/mastodon-light/diff.scss @@ -542,10 +542,10 @@ html { } .simple_form { - input[type=text], - input[type=number], - input[type=email], - input[type=password], + input[type="text"], + input[type="number"], + input[type="email"], + input[type="password"], textarea { &:hover { border-color: lighten($ui-base-color, 12%); diff --git a/app/javascript/styles/mastodon-light/variables.scss b/app/javascript/styles/mastodon-light/variables.scss index bc039ff03..f6bc3ac96 100644 --- a/app/javascript/styles/mastodon-light/variables.scss +++ b/app/javascript/styles/mastodon-light/variables.scss @@ -28,10 +28,10 @@ $inverted-text-color: $black !default; $lighter-text-color: $classic-base-color !default; $light-text-color: #444b5d; -//Newly added colors +// Newly added colors $account-background-color: $white !default; -//Invert darkened and lightened colors +// Invert darkened and lightened colors @function darken($color, $amount) { @return hsl(hue($color), saturation($color), lightness($color) + $amount); } diff --git a/app/javascript/styles/mastodon/about.scss b/app/javascript/styles/mastodon/about.scss index 9f2a1a3af..ac2fdb2c7 100644 --- a/app/javascript/styles/mastodon/about.scss +++ b/app/javascript/styles/mastodon/about.scss @@ -41,7 +41,7 @@ $small-breakpoint: 960px; p { margin-top: 0; - margin-bottom: .85em; + margin-bottom: 0.85em; &:last-child { margin-bottom: 0; @@ -73,7 +73,7 @@ $small-breakpoint: 960px; h6 { font-family: $font-display, sans-serif; margin-top: 1.275em; - margin-bottom: .85em; + margin-bottom: 0.85em; font-weight: 500; color: $secondary-text-color; } @@ -436,7 +436,7 @@ $small-breakpoint: 960px; width: 100%; height: 0; border: 0; - border-bottom: 1px solid rgba($ui-base-lighter-color, .6); + border-bottom: 1px solid rgba($ui-base-lighter-color, 0.6); margin: 20px 0; &.spacer { diff --git a/app/javascript/styles/mastodon/admin.scss b/app/javascript/styles/mastodon/admin.scss index 68e6d2482..921c529d1 100644 --- a/app/javascript/styles/mastodon/admin.scss +++ b/app/javascript/styles/mastodon/admin.scss @@ -183,12 +183,9 @@ $content-width: 840px; &-heading { display: flex; - padding-bottom: 36px; border-bottom: 1px solid lighten($ui-base-color, 8%); - margin: -15px -15px 40px 0; - flex-wrap: wrap; align-items: center; justify-content: space-between; @@ -294,7 +291,7 @@ $content-width: 840px; width: 100%; height: 0; border: 0; - border-bottom: 1px solid rgba($ui-base-lighter-color, .6); + border-bottom: 1px solid rgba($ui-base-lighter-color, 0.6); margin: 20px 0; &.spacer { diff --git a/app/javascript/styles/mastodon/basics.scss b/app/javascript/styles/mastodon/basics.scss index 9e63b1d31..391f1fad9 100644 --- a/app/javascript/styles/mastodon/basics.scss +++ b/app/javascript/styles/mastodon/basics.scss @@ -16,7 +16,7 @@ body { text-rendering: optimizelegibility; font-feature-settings: "kern"; text-size-adjust: none; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + -webkit-tap-highlight-color: rgba(0, 0, 0, 0%); -webkit-tap-highlight-color: transparent; &.system-font { @@ -31,7 +31,7 @@ body { // Droid Sans => Older Androids (<4.0) // Helvetica Neue => Older macOS <10.11 // $font-sans-serif => web-font (Roboto) fallback and newer Androids (>=4.0) - font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", $font-sans-serif, sans-serif; + font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", $font-sans-serif, sans-serif; } &.app-body { @@ -202,7 +202,7 @@ button { } p { - margin-bottom: .85em; + margin-bottom: 0.85em; &:last-child { margin-bottom: 0; diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index b066d3abd..401cf02ac 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -341,7 +341,6 @@ &__sensitive-button { padding: 10px; padding-top: 0; - font-size: 14px; font-weight: 500; @@ -349,7 +348,7 @@ color: $highlight-text-color; } - input[type=checkbox] { + input[type="checkbox"] { display: none; } @@ -709,7 +708,7 @@ font-size: inherit; vertical-align: middle; object-fit: contain; - margin: -.2ex .15em .2ex; + margin: -0.2ex 0.15em 0.2ex; width: 16px; height: 16px; @@ -1313,9 +1312,9 @@ .account__avatar { @include avatar-radius; + display: block; position: relative; - width: 36px; height: 36px; background-size: 36px 36px; @@ -1328,6 +1327,7 @@ &-composite { @include avatar-radius; + border-radius: 50%; overflow: hidden; position: relative; @@ -1365,6 +1365,7 @@ a .account__avatar { img { @include avatar-radius; + width: 100%; height: 100%; } @@ -1381,6 +1382,7 @@ a .account__avatar { img { @include avatar-radius; + width: 100%; height: 100%; } @@ -2328,7 +2330,7 @@ a.account__display-name { .scrollable { overflow: visible; - @supports(display: grid) { + @supports (display: grid) { contain: content; } } @@ -2751,7 +2753,7 @@ a.account__display-name { overflow-y: auto; } - @supports(display: grid) { // hack to fix Chrome <57 + @supports (display: grid) { // hack to fix Chrome <57 contain: strict; } @@ -2772,7 +2774,7 @@ a.account__display-name { } .scrollable.fullscreen { - @supports(display: grid) { // hack to fix Chrome <57 + @supports (display: grid) { // hack to fix Chrome <57 contain: none; } } @@ -3980,6 +3982,7 @@ a.status-card.compact:hover { &__menu { @include search-popout; + padding: 0; background: $ui-secondary-color; } @@ -4061,7 +4064,7 @@ a.status-card.compact:hover { align-items: center; justify-content: center; - @supports(display: grid) { // hack to fix Chrome <57 + @supports (display: grid) { // hack to fix Chrome <57 contain: strict; } @@ -4878,7 +4881,7 @@ a.status-card.compact:hover { padding: 0; border: 0; font-size: 0; - transition: opacity .2s ease-in-out; + transition: opacity 0.2s ease-in-out; &.active { opacity: 1; @@ -4933,7 +4936,6 @@ a.status-card.compact:hover { height: 100%; box-sizing: border-box; padding: 25px; - display: none; flex-direction: column; align-items: center; justify-content: center; @@ -5274,7 +5276,6 @@ a.status-card.compact:hover { display: block; box-sizing: border-box; width: 100%; - margin: 0; color: $inverted-text-color; background: $simple-background-color; padding: 10px; @@ -5406,7 +5407,6 @@ a.status-card.compact:hover { font-family: inherit; font-size: 14px; resize: none; - border: 0; outline: 0; border-radius: 4px; border: 1px solid $ui-secondary-color; @@ -5857,6 +5857,7 @@ a.status-card.compact:hover { overflow: hidden; position: absolute; } + /* End Media Gallery */ .detailed, @@ -5869,7 +5870,6 @@ a.status-card.compact:hover { .video-player__volume__handle { bottom: 23px; } - } .audio-player { @@ -5991,7 +5991,7 @@ a.status-card.compact:hover { background: linear-gradient(0deg, rgba($base-shadow-color, 0.85) 0, rgba($base-shadow-color, 0.45) 60%, transparent); padding: 0 15px; opacity: 0; - transition: opacity .1s ease; + transition: opacity 0.1s ease; &.active { opacity: 1; @@ -6066,7 +6066,6 @@ a.status-card.compact:hover { .player-button { display: inline-block; outline: 0; - flex: 0 0 auto; background: transparent; padding: 5px; @@ -6237,7 +6236,7 @@ a.status-card.compact:hover { box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2); .no-reduce-motion & { - transition: opacity .1s ease; + transition: opacity 0.1s ease; } &.active { @@ -6405,14 +6404,13 @@ a.status-card.compact:hover { display: inline-block; padding: 6px 0; line-height: 18px; - cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; - input[type=radio], - input[type=checkbox] { + input[type="radio"], + input[type="checkbox"] { display: none; } @@ -6505,14 +6503,16 @@ noscript { .navigation-bar__actions { & > .icon-button.close { will-change: opacity transform; - transition: opacity $duration * 0.5 $delay, - transform $duration $delay; + transition: + opacity $duration * 0.5 $delay, + transform $duration $delay; } & > .compose__action-bar .icon-button { will-change: opacity transform; - transition: opacity $duration * 0.5 $delay + $duration * 0.5, - transform $duration $delay; + transition: + opacity $duration * 0.5 $delay + $duration * 0.5, + transform $duration $delay; } } } @@ -7286,7 +7286,7 @@ noscript { border-radius: 50%; width: 0.625rem; height: 0.625rem; - margin: -.1ex .15em .1ex; + margin: -0.1ex 0.15em 0.1ex; } &__content { @@ -7549,7 +7549,6 @@ noscript { position: absolute; top: 0; left: 0; - pointer-events: 0; width: 100%; height: 100%; border-left: 2px solid $highlight-text-color; diff --git a/app/javascript/styles/mastodon/dashboard.scss b/app/javascript/styles/mastodon/dashboard.scss index 0a881bc10..7d0e51fde 100644 --- a/app/javascript/styles/mastodon/dashboard.scss +++ b/app/javascript/styles/mastodon/dashboard.scss @@ -37,7 +37,6 @@ text-align: center; font-weight: 500; font-size: 24px; - line-height: 21px; color: $primary-text-color; font-family: $font-display, sans-serif; margin-bottom: 20px; diff --git a/app/javascript/styles/mastodon/emoji_picker.scss b/app/javascript/styles/mastodon/emoji_picker.scss index e73057465..24061d2ca 100644 --- a/app/javascript/styles/mastodon/emoji_picker.scss +++ b/app/javascript/styles/mastodon/emoji_picker.scss @@ -46,7 +46,7 @@ text-align: center; padding: 12px 4px; overflow: hidden; - transition: color .1s ease-out; + transition: color 0.1s ease-out; cursor: pointer; background: transparent; border: 0; @@ -242,8 +242,8 @@ padding: 5px 6px; padding-top: 70px; - .emoji-mart-no-results-label { - margin-top: .2em; + .emoji-mart-no-results-label { + margin-top: 0.2em; } .emoji-mart-emoji:hover::before { diff --git a/app/javascript/styles/mastodon/forms.scss b/app/javascript/styles/mastodon/forms.scss index 90d56b075..94f553b76 100644 --- a/app/javascript/styles/mastodon/forms.scss +++ b/app/javascript/styles/mastodon/forms.scss @@ -352,7 +352,7 @@ code { flex: 1 1 auto; } - input[type=checkbox] { + input[type="checkbox"] { position: absolute; left: 0; top: 5px; @@ -368,11 +368,11 @@ code { border-radius: 4px; } - input[type=text], - input[type=number], - input[type=email], - input[type=password], - input[type=url], + input[type="text"], + input[type="number"], + input[type="email"], + input[type="password"], + input[type="url"], textarea { box-sizing: border-box; font-size: 16px; @@ -410,10 +410,10 @@ code { } } - input[type=text], - input[type=number], - input[type=email], - input[type=password] { + input[type="text"], + input[type="number"], + input[type="email"], + input[type="password"] { &:focus:invalid:not(:placeholder-shown), &:required:invalid:not(:placeholder-shown) { border-color: lighten($error-red, 12%); @@ -425,10 +425,10 @@ code { color: lighten($error-red, 12%); } - input[type=text], - input[type=number], - input[type=email], - input[type=password], + input[type="text"], + input[type="number"], + input[type="email"], + input[type="password"], textarea, select { border-color: lighten($error-red, 12%); @@ -1000,7 +1000,7 @@ code { flex: 1 1 auto; } - input[type=text] { + input[type="text"] { background: transparent; border: 0; padding: 10px; diff --git a/app/javascript/styles/mastodon/polls.scss b/app/javascript/styles/mastodon/polls.scss index a719044ea..f553c5501 100644 --- a/app/javascript/styles/mastodon/polls.scss +++ b/app/javascript/styles/mastodon/polls.scss @@ -64,8 +64,8 @@ max-width: calc(100% - 45px - 25px); } - input[type=radio], - input[type=checkbox] { + input[type="radio"], + input[type="checkbox"] { display: none; } @@ -73,7 +73,7 @@ flex: 1 1 auto; } - input[type=text] { + input[type="text"] { display: block; box-sizing: border-box; width: 100%; @@ -109,7 +109,6 @@ box-sizing: border-box; width: 18px; height: 18px; - flex: 0 0 auto; margin-right: 10px; top: -1px; border-radius: 50%; @@ -198,7 +197,7 @@ &:active, &:focus { - background-color: rgba($dark-text-color, .1); + background-color: rgba($dark-text-color, 0.1); } } diff --git a/app/javascript/styles/mastodon/statuses.scss b/app/javascript/styles/mastodon/statuses.scss index 078714325..a926aff96 100644 --- a/app/javascript/styles/mastodon/statuses.scss +++ b/app/javascript/styles/mastodon/statuses.scss @@ -139,7 +139,7 @@ a.button.logo-button { .embed, .public-layout { - .status__content[data-spoiler=folded] { + .status__content[data-spoiler="folded"] { .e-content { display: none; } diff --git a/app/javascript/styles/mastodon/variables.scss b/app/javascript/styles/mastodon/variables.scss index f463419c8..47d7e6f87 100644 --- a/app/javascript/styles/mastodon/variables.scss +++ b/app/javascript/styles/mastodon/variables.scss @@ -38,6 +38,7 @@ $highlight-text-color: $ui-highlight-color !default; $action-button-color: $ui-base-lighter-color !default; $passive-text-color: $gold-star !default; $active-passive-text-color: $success-green !default; + // For texts on inverted backgrounds $inverted-text-color: $ui-base-color !default; $lighter-text-color: $ui-base-lighter-color !default; @@ -48,6 +49,7 @@ $cjk-langs: ja, ko, zh-CN, zh-HK, zh-TW; // Variables for components $media-modal-media-max-width: 100%; + // put margins on top and bottom of image to avoid the screen covered by image. $media-modal-media-max-height: 80%; |