Merge remote-tracking branch 'upstream/stable-4.7', removing Mastodon-Modern folder.
This commit is contained in:
commit
8eabb7ea31
959 files changed
+29430
-9565
No files matched your search
@@ -2,9 +2,11 @@
|
||||
@use 'mastodon/mixins';
|
||||
@use 'fonts/roboto';
|
||||
@use 'fonts/roboto-mono';
|
||||
@use 'fonts/inter';
|
||||
@use 'fonts/syne';
|
||||
|
||||
@use 'mastodon/reset';
|
||||
@use 'mastodon/theme';
|
||||
@use 'mastodon/tokens';
|
||||
@use 'mastodon/basics';
|
||||
@use 'mastodon/branding';
|
||||
@use 'mastodon/containers';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@use '../fonts/inter';
|
||||
@use '../fonts/inter-mailer';
|
||||
|
||||
body {
|
||||
accent-color: #6364ff;
|
||||
@@ -516,7 +516,7 @@ table + p {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
&:not(last-child) {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
@@ -731,10 +731,12 @@ table + p {
|
||||
}
|
||||
|
||||
.email-banner-td {
|
||||
padding: 24px 24px 14px;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.email-banner-text-td {
|
||||
text-align: center;
|
||||
|
||||
p {
|
||||
margin: 0 0 12px;
|
||||
color: #fff;
|
||||
@@ -743,12 +745,9 @@ table + p {
|
||||
line-height: 16.8px;
|
||||
}
|
||||
|
||||
.email-desktop-flex {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.email-btn-table {
|
||||
background-color: #fff;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.email-btn-td {
|
||||
@@ -760,11 +759,6 @@ table + p {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
div + div {
|
||||
margin-inline-start: auto;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
// Checklist item
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-variable-font-slnt-wght.woff2')
|
||||
format('woff2-variations');
|
||||
font-weight: 100 900;
|
||||
font-style: normal;
|
||||
mso-generic-font-family: swiss;
|
||||
}
|
||||
@@ -1,8 +1,35 @@
|
||||
// Regular
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-variable-font-slnt-wght.woff2')
|
||||
format('woff2-variations');
|
||||
font-weight: 100 900;
|
||||
src: url('../../fonts/inter/inter-regular.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
mso-generic-font-family: swiss;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// Italic
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-italic.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// SemiBold (native 600, mapped to 700 so that `font-weight: bold` uses it)
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-semibold.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// SemiBold Italic (native 600, mapped to 700 so that `font-weight: bold` uses it)
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-semibold-italic.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
@font-face {
|
||||
font-family: Syne;
|
||||
src: url('../../fonts/syne/syne-bold.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@@ -1,3 +1,113 @@
|
||||
/**
|
||||
* Type styles
|
||||
*/
|
||||
|
||||
@mixin type-heading-lg {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--fs-3xl);
|
||||
font-weight: bold;
|
||||
line-height: var(--lh-tighter);
|
||||
letter-spacing: var(--ls-tighter);
|
||||
}
|
||||
|
||||
@mixin type-heading-md {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--fs-2xl);
|
||||
font-weight: bold;
|
||||
line-height: var(--lh-tighter);
|
||||
letter-spacing: var(--ls-tight);
|
||||
}
|
||||
|
||||
@mixin type-heading-sm {
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--fs-xl);
|
||||
font-weight: bold;
|
||||
line-height: var(--lh-tight);
|
||||
letter-spacing: var(--ls-tight);
|
||||
}
|
||||
|
||||
@mixin type-body-lg {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-lg);
|
||||
font-weight: normal;
|
||||
line-height: var(--lh-normal);
|
||||
letter-spacing: var(--ls-normal);
|
||||
}
|
||||
|
||||
@mixin type-body-strong {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-md);
|
||||
font-weight: bold;
|
||||
line-height: var(--lh-normal);
|
||||
letter-spacing: var(--ls-normal);
|
||||
}
|
||||
|
||||
@mixin type-body {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-md);
|
||||
font-weight: normal;
|
||||
line-height: var(--lh-normal);
|
||||
letter-spacing: var(--ls-normal);
|
||||
}
|
||||
|
||||
@mixin type-body-compact {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: normal;
|
||||
line-height: var(--lh-tight);
|
||||
letter-spacing: var(--ls-normal);
|
||||
}
|
||||
|
||||
@mixin type-label-lg {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: bold;
|
||||
line-height: var(--lh-tight);
|
||||
letter-spacing: var(--ls-normal);
|
||||
}
|
||||
|
||||
@mixin type-label-md {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: normal;
|
||||
line-height: var(--lh-tighter);
|
||||
letter-spacing: var(--ls-loose);
|
||||
}
|
||||
|
||||
@mixin type-label-sm {
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-2xs);
|
||||
font-weight: normal;
|
||||
line-height: var(--lh-tighter);
|
||||
letter-spacing: var(--ls-loose);
|
||||
}
|
||||
|
||||
@mixin type-micro {
|
||||
font-family: var(--font-monospace);
|
||||
font-size: var(--fs-3xs);
|
||||
font-weight: normal;
|
||||
line-height: var(--lh-tighter);
|
||||
letter-spacing: var(--ls-looser);
|
||||
}
|
||||
|
||||
/**
|
||||
* Elevation styles
|
||||
*/
|
||||
|
||||
@mixin elevation-1 {
|
||||
border: 1px solid var(--color-border-strong);
|
||||
box-shadow: 0 1px 0 var(--color-border-strong);
|
||||
}
|
||||
|
||||
@mixin elevation-2 {
|
||||
border: 1px solid var(--color-border-strong);
|
||||
box-shadow: 1px 2px 0 var(--color-border-strong);
|
||||
}
|
||||
|
||||
/**
|
||||
* Search input styles
|
||||
*/
|
||||
|
||||
@mixin search-input {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
|
||||
@@ -9,17 +9,7 @@ $cjk-langs: ja, ko, zh-CN, zh-HK, zh-TW;
|
||||
// Language codes that is written vertically
|
||||
$vertical-lr-langs: mn-Mong;
|
||||
|
||||
// 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%;
|
||||
|
||||
$no-gap-breakpoint: 1175px;
|
||||
$mobile-menu-breakpoint: 760px;
|
||||
$mobile-breakpoint: 630px;
|
||||
$no-columns-breakpoint: 600px;
|
||||
|
||||
$font-sans-serif: 'mastodon-font-sans-serif' !default;
|
||||
$font-display: 'mastodon-font-display' !default;
|
||||
$font-monospace: 'mastodon-font-monospace' !default;
|
||||
@@ -8,6 +8,14 @@ html {
|
||||
scrollbar-color: var(--color-text-secondary) var(--color-bg-secondary);
|
||||
}
|
||||
|
||||
--font-body: mastodon-font-sans-serif, sans-serif;
|
||||
--font-heading: Syne, sans-serif;
|
||||
--font-monospace: mastodon-font-monospace, monospace;
|
||||
|
||||
&[data-redesign='true'] {
|
||||
--font-body: Inter, sans-serif;
|
||||
}
|
||||
|
||||
--outline-focus-default: 2px solid var(--color-border-brand);
|
||||
--avatar-border-radius: 8px;
|
||||
--max-media-height-small: 460px;
|
||||
@@ -45,7 +53,7 @@ html.has-modal {
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: $font-sans-serif, sans-serif;
|
||||
font-family: var(--font-body);
|
||||
background: var(--color-bg-primary);
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
@@ -73,7 +81,6 @@ body {
|
||||
// Fira Sans => Firefox OS
|
||||
// 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,
|
||||
@@ -85,7 +92,6 @@ body {
|
||||
'Fira Sans',
|
||||
'Droid Sans',
|
||||
'Helvetica Neue',
|
||||
$font-sans-serif,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
@@ -179,6 +185,7 @@ body {
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
font-weight: 400;
|
||||
margin-bottom: var(--space-md);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -372,7 +372,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
body > [data-popper-placement] {
|
||||
body > [data-popover-placement] {
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
@@ -984,7 +984,7 @@ body > [data-popper-placement] {
|
||||
|
||||
.character-counter {
|
||||
cursor: default;
|
||||
font-family: $font-sans-serif, sans-serif;
|
||||
font-family: var(--font-body);
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
@@ -2688,6 +2688,9 @@ a.account__display-name {
|
||||
}
|
||||
|
||||
.zoomable-image {
|
||||
--media-max-width: 100%;
|
||||
--media-max-height: 80%;
|
||||
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -2699,8 +2702,8 @@ a.account__display-name {
|
||||
user-select: none;
|
||||
|
||||
img {
|
||||
max-width: $media-modal-media-max-width;
|
||||
max-height: $media-modal-media-max-height;
|
||||
max-width: var(--media-max-width);
|
||||
max-height: var(--media-max-height);
|
||||
width: auto;
|
||||
height: auto;
|
||||
outline: 1px solid var(--color-border-media);
|
||||
@@ -2729,8 +2732,8 @@ a.account__display-name {
|
||||
}
|
||||
|
||||
&__preview {
|
||||
max-width: $media-modal-media-max-width;
|
||||
max-height: $media-modal-media-max-height;
|
||||
max-width: var(--media-max-width);
|
||||
max-height: var(--media-max-height);
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
outline: 1px solid var(--color-border-media);
|
||||
@@ -5772,10 +5775,6 @@ a.status-card {
|
||||
}
|
||||
|
||||
.visibility-dropdown {
|
||||
&__overlay[data-popper-placement] {
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
opacity: 0.6;
|
||||
cursor: default;
|
||||
@@ -8740,6 +8739,7 @@ noscript {
|
||||
bottom: 20px;
|
||||
inset-inline-end: 20px;
|
||||
width: 300px;
|
||||
z-index: 100;
|
||||
background-color: var(--color-bg-primary);
|
||||
box-shadow: var(--dropdown-shadow);
|
||||
|
||||
@@ -10724,7 +10724,7 @@ noscript {
|
||||
}
|
||||
}
|
||||
|
||||
.hover-card-controller[data-popper-reference-hidden='true'] {
|
||||
.hover-card-controller[data-popover-reference-hidden='true'] {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@use 'variables' as *;
|
||||
|
||||
code {
|
||||
font-family: $font-monospace, monospace;
|
||||
font-family: var(--font-monospace);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
@@ -686,6 +686,34 @@ code {
|
||||
background: var(--color-bg-error-base-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&.secondary {
|
||||
color: var(--color-text-brand);
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-color: var(--color-border-brand);
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
border-color: var(--color-border-brand);
|
||||
color: var(--color-text-brand);
|
||||
background-color: transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
border-color: var(--color-text-disabled);
|
||||
color: var(--color-text-disabled);
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
border-color: var(--color-text-disabled);
|
||||
color: var(--color-text-disabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
@@ -895,7 +923,7 @@ code {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
padding: 10px;
|
||||
font-family: $font-monospace, monospace;
|
||||
font-family: var(--font-monospace);
|
||||
background: var(--color-bg-secondary);
|
||||
color: var(--color-text-primary);
|
||||
font-size: 14px;
|
||||
@@ -1146,7 +1174,7 @@ code {
|
||||
.form_admin_settings_custom_css,
|
||||
.form_admin_settings_closed_registrations_message {
|
||||
textarea {
|
||||
font-family: $font-monospace, monospace;
|
||||
font-family: var(--font-monospace);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1171,7 +1199,7 @@ code {
|
||||
border: 0;
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
font-family: $font-monospace, monospace;
|
||||
font-family: var(--font-monospace);
|
||||
}
|
||||
|
||||
button {
|
||||
|
||||
@@ -15,10 +15,14 @@
|
||||
text-align: start;
|
||||
background: var(--color-bg-primary);
|
||||
|
||||
&.critical {
|
||||
.critical {
|
||||
font-weight: 700;
|
||||
color: var(--color-text-warning);
|
||||
}
|
||||
|
||||
.unsupported {
|
||||
color: var(--color-text-error);
|
||||
}
|
||||
}
|
||||
|
||||
.align-end {
|
||||
@@ -164,7 +168,7 @@
|
||||
}
|
||||
|
||||
samp {
|
||||
font-family: $font-monospace, monospace;
|
||||
font-family: var(--font-monospace);
|
||||
}
|
||||
|
||||
button.table-action-link {
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
@mixin space {
|
||||
--space-3xs: 2px;
|
||||
--space-2xs: 4px;
|
||||
--space-xs: 8px;
|
||||
--space-sm: 12px;
|
||||
--space-md: 16px;
|
||||
--space-lg: 20px;
|
||||
--space-xl: 24px;
|
||||
--space-2xl: 28px;
|
||||
--space-3xl: 32px;
|
||||
--space-4xl: 36px;
|
||||
--space-5xl: 40px;
|
||||
}
|
||||
|
||||
@mixin radius {
|
||||
--radius-xs: 8px;
|
||||
--radius-sm: 12px;
|
||||
--radius-md: 16px;
|
||||
--radius-lg: 20px;
|
||||
--radius-xl: 28px;
|
||||
--radius-round: calc(1px * infinity);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
@mixin font-size {
|
||||
--fs-3xs: 0.6875rem; // 11px
|
||||
--fs-2xs: 0.75rem; // 12px
|
||||
--fs-xs: 0.8125rem; // 13px
|
||||
--fs-sm: 0.875rem; // 14px
|
||||
--fs-md: 0.9375rem; // 15px
|
||||
--fs-lg: 1rem; // 16px
|
||||
--fs-xl: 1.25rem; // 20px
|
||||
--fs-2xl: 1.375rem; // 22px
|
||||
--fs-3xl: 1.625rem; // 26px
|
||||
}
|
||||
|
||||
@mixin line-height {
|
||||
--lh-tighter: 1.3;
|
||||
--lh-tight: 1.4;
|
||||
--lh-normal: 1.6;
|
||||
}
|
||||
|
||||
@mixin letter-spacing {
|
||||
--ls-tighter: -0.02em;
|
||||
--ls-tight: -0.01em;
|
||||
--ls-normal: 0;
|
||||
--ls-loose: 0.01em;
|
||||
--ls-looser: 0.02em;
|
||||
}
|
||||
+11
-4
@@ -1,10 +1,17 @@
|
||||
@use 'base';
|
||||
@use 'dark';
|
||||
@use 'light';
|
||||
@use 'utils';
|
||||
@use 'theme/base';
|
||||
@use 'theme/dark';
|
||||
@use 'theme/light';
|
||||
@use 'theme/utils';
|
||||
@use 'shape';
|
||||
@use 'type';
|
||||
|
||||
html {
|
||||
@include base.palette;
|
||||
@include shape.space;
|
||||
@include shape.radius;
|
||||
@include type.font-size;
|
||||
@include type.line-height;
|
||||
@include type.letter-spacing;
|
||||
}
|
||||
|
||||
[data-color-scheme='dark'],
|
||||
File renamed without changes.
+4
-2
@@ -40,11 +40,12 @@
|
||||
--overlay-strength-secondary: 4%;
|
||||
--color-bg-secondary: var(--color-grey-900);
|
||||
--color-bg-tertiary: var(--color-grey-800); // legacy
|
||||
--color-bg-blend: #{utils.css-alpha(var(--color-black), 30%)};
|
||||
--color-bg-highlight: #{utils.css-alpha(var(--color-text-primary), 5%)};
|
||||
|
||||
// Utility
|
||||
--color-bg-inverted: var(--color-grey-50);
|
||||
--color-bg-overlay-base: #{utils.css-alpha(var(--color-grey-950), 60%)};
|
||||
--color-bg-overlay-highlight: #{utils.css-alpha(var(--color-white), 5%)};
|
||||
--color-bg-overlay-highlight: var(--color-bg-highlight); // legacy
|
||||
--color-bg-overlay: var(--color-black); // legacy
|
||||
--color-bg-media-base: var(--color-black); // legacy
|
||||
--color-bg-media: #{utils.css-alpha(var(--color-bg-media-base), 65%)}; // legacy
|
||||
@@ -75,6 +76,7 @@
|
||||
/* BORDER TOKENS */
|
||||
|
||||
--color-border-primary: var(--color-grey-800);
|
||||
--color-border-strong: var(--color-grey-100);
|
||||
--color-border-brand: var(--color-text-brand);
|
||||
--color-border-brand-soft: var(--color-indigo-800);
|
||||
--color-border-error: var(--color-red-300);
|
||||
+4
-2
@@ -36,11 +36,12 @@
|
||||
--overlay-strength-secondary: 4%;
|
||||
--color-bg-secondary: var(--color-grey-50);
|
||||
--color-bg-tertiary: var(--color-grey-100); // legacy
|
||||
--color-bg-blend: #{utils.css-alpha(var(--color-text-primary), 4%)};
|
||||
--color-bg-highlight: #{utils.css-alpha(var(--color-text-primary), 4%)};
|
||||
|
||||
// Utility
|
||||
--color-bg-inverted: var(--color-grey-950);
|
||||
--color-bg-overlay-base: #{utils.css-alpha(var(--color-grey-950), 60%)};
|
||||
--color-bg-overlay-highlight: #{utils.css-alpha(var(--color-grey-950), 5%)};
|
||||
--color-bg-overlay-highlight: var(--color-bg-highlight); // legacy
|
||||
--color-bg-overlay: var(--color-bg-primary); // legacy
|
||||
--color-bg-media-base: var(--color-black); // legacy
|
||||
--color-bg-media: #{utils.css-alpha(var(--color-bg-media-base), 65%)}; // legacy
|
||||
@@ -71,6 +72,7 @@
|
||||
/* BORDER TOKENS */
|
||||
|
||||
--color-border-primary: var(--color-grey-200);
|
||||
--color-border-strong: var(--color-grey-950);
|
||||
--color-border-brand: var(--color-text-brand);
|
||||
--color-border-brand-soft: var(--color-indigo-200);
|
||||
--color-border-error: var(--color-red-700);
|
||||
File renamed without changes.
Reference in new issue
Block a user