Run formatting for markdown and SCSS

This commit is contained in:
nachtjasmin 2023-11-18 17:26:00 +01:00
parent 85960f4aa5
commit 510330fe6e
No known key found for this signature in database
8 changed files with 66 additions and 55 deletions

View File

@ -4,9 +4,9 @@
Photo by [Joana Mujollari](https://www.flickr.com/photos/141654969@N04/26777339042/), CC0 / Public Domain. Photo by [Joana Mujollari](https://www.flickr.com/photos/141654969@N04/26777339042/), CC0 / Public Domain.
Mastodon is a **free, open-source social network server** based on ActivityPub. This is *not* the official version of Mastodon; this is a separate version (i.e. a fork) maintained by [Darius Kazemi](https://friend.camp/@darius). For more information on Mastodon, you can see the [official website](https://joinmastodon.org) and the [upstream repo](https://github.com/tootsuite/mastodon). Mastodon is a **free, open-source social network server** based on ActivityPub. This is _not_ the official version of Mastodon; this is a separate version (i.e. a fork) maintained by [Darius Kazemi](https://friend.camp/@darius). For more information on Mastodon, you can see the [official website](https://joinmastodon.org) and the [upstream repo](https://github.com/tootsuite/mastodon).
__Hometown__ is a light weight fork of Mastodon. By "light weight" I don't mean more efficient; I mean this fork is 99.999% identical to Mastodon with a few key tweaks. This project is based on the principle of: minimum code change for maximum user experience change. This makes it easy for the basically-one-person who runs the project to keep it up to date. By our best understanding, our major changes are not wanted by the Mastodon project, hence maintaining this fork instead of trying to commit the changes to Mastodon. **Hometown** is a light weight fork of Mastodon. By "light weight" I don't mean more efficient; I mean this fork is 99.999% identical to Mastodon with a few key tweaks. This project is based on the principle of: minimum code change for maximum user experience change. This makes it easy for the basically-one-person who runs the project to keep it up to date. By our best understanding, our major changes are not wanted by the Mastodon project, hence maintaining this fork instead of trying to commit the changes to Mastodon.
Please [check out our wiki](https://github.com/hometown-fork/hometown/wiki) for a list of Hometown-exclusive features. Some but not all of these are covered in this document. Please [check out our wiki](https://github.com/hometown-fork/hometown/wiki) for a list of Hometown-exclusive features. Some but not all of these are covered in this document.

View File

@ -1,3 +1,3 @@
@import 'fairy-floss/variables'; @import 'fairy-floss/variables';
@import 'application'; @import 'application';
@import 'fairy-floss/diff' @import 'fairy-floss/diff';

View File

@ -471,14 +471,14 @@ a.mention,
color: $purple4; color: $purple4;
} }
.simple_form input[type="text"]:active, .simple_form input[type='text']:active,
.simple_form input[type="text"]:focus, .simple_form input[type='text']:focus,
.simple_form input[type="number"]:active, .simple_form input[type='number']:active,
.simple_form input[type="number"]:focus, .simple_form input[type='number']:focus,
.simple_form input[type="email"]:active, .simple_form input[type='email']:active,
.simple_form input[type="email"]:focus, .simple_form input[type='email']:focus,
.simple_form input[type="password"]:active, .simple_form input[type='password']:active,
.simple_form input[type="password"]:focus, .simple_form input[type='password']:focus,
.simple_form textarea:active, .simple_form textarea:active,
.simple_form textarea:focus { .simple_form textarea:focus {
border-color: $mint; border-color: $mint;
@ -520,16 +520,18 @@ a.mention,
background: $purplescrollbar; background: $purplescrollbar;
} }
.simple_form input[type="text"], .simple_form input[type='text'],
.simple_form input[type="number"], .simple_form input[type='number'],
.simple_form input[type="email"], .simple_form input[type='email'],
.simple_form input[type="password"], .simple_form input[type='password'],
.simple_form textarea { .simple_form textarea {
background: darken($purple1, 6%); background: darken($purple1, 6%);
} }
.simple_form select { .simple_form select {
background: darken($purple1, 6%) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='%23c2ffdf'/></svg>") no-repeat right 8px center/auto 16px; background: darken($purple1, 6%)
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='%23c2ffdf'/></svg>")
no-repeat right 8px center/auto 16px;
} }
.table th, .table th,

View File

@ -15,18 +15,18 @@ $lemon: #fff683;
$coral: #ff857f; $coral: #ff857f;
// Commonly used web colors // Commonly used web colors
$black: #000000; // Black $black: #000000; // Black
$white: #ffffff; // White $white: #ffffff; // White
$success-green: #79bd9a !default; // Padua $success-green: #79bd9a !default; // Padua
$error-red: #df405a !default; // Cerise $error-red: #df405a !default; // Cerise
$warning-red: #ff5050 !default; // Sunset Orange $warning-red: #ff5050 !default; // Sunset Orange
$gold-star: #ca8f04 !default; // Dark Goldenrod $gold-star: #ca8f04 !default; // Dark Goldenrod
// Values from the classic Mastodon UI // Values from the classic Mastodon UI
$classic-base-color: $purple1; // Midnight Express $classic-base-color: $purple1; // Midnight Express
$classic-primary-color: $purple4; // Echo Blue $classic-primary-color: $purple4; // Echo Blue
$classic-secondary-color: #d9e1e8; // Pattens Blue $classic-secondary-color: #d9e1e8; // Pattens Blue
$classic-highlight-color: #ff857f; // Summer Sky $classic-highlight-color: #ff857f; // Summer Sky
// Variables for defaults in UI // Variables for defaults in UI
$base-shadow-color: $black !default; $base-shadow-color: $black !default;
@ -37,10 +37,13 @@ $valid-value-color: $success-green !default;
$error-value-color: $error-red !default; $error-value-color: $error-red !default;
// Tell UI to use selected colors // Tell UI to use selected colors
$ui-base-color: $classic-base-color !default; // Darkest $ui-base-color: $classic-base-color !default; // Darkest
$ui-base-lighter-color: lighten($ui-base-color, 26%) !default; // Lighter darkest $ui-base-lighter-color: lighten(
$ui-primary-color: $classic-primary-color !default; // Lighter $ui-base-color,
$ui-secondary-color: $classic-secondary-color !default; // Lightest 26%
) !default; // Lighter darkest
$ui-primary-color: $classic-primary-color !default; // Lighter
$ui-secondary-color: $classic-secondary-color !default; // Lightest
$ui-highlight-color: $classic-highlight-color !default; $ui-highlight-color: $classic-highlight-color !default;
// Variables for texts // Variables for texts

View File

@ -133,14 +133,14 @@ html {
} }
.compose-form__autosuggest-wrapper, .compose-form__autosuggest-wrapper,
.poll__text input[type="text"], .poll__text input[type='text'],
.compose-form .spoiler-input__input, .compose-form .spoiler-input__input,
.compose-form__poll-wrapper select, .compose-form__poll-wrapper select,
.search__input, .search__input,
.setting-text, .setting-text,
.box-widget input[type="text"], .box-widget input[type='text'],
.box-widget input[type="email"], .box-widget input[type='email'],
.box-widget input[type="password"], .box-widget input[type='password'],
.box-widget textarea, .box-widget textarea,
.statuses-grid .detailed-status .audio-player { .statuses-grid .detailed-status .audio-player {
border: 1px solid lighten(#eeeeee, 4%); border: 1px solid lighten(#eeeeee, 4%);
@ -194,7 +194,9 @@ html {
} }
.compose-form__poll-wrapper select { .compose-form__poll-wrapper select {
background: $simple-background-color url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='#{hex-color(lighten($ui-base-color, 8%))}'/></svg>") no-repeat right 8px center / auto 16px; background: $simple-background-color
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='#{hex-color(lighten($ui-base-color, 8%))}'/></svg>")
no-repeat right 8px center / auto 16px;
} }
.compose-form__poll-wrapper, .compose-form__poll-wrapper,
@ -590,7 +592,8 @@ body.admin {
background: darken($ui-secondary-color, 10%); background: darken($ui-secondary-color, 10%);
} }
.react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track { .react-toggle.react-toggle--checked:hover:not(.react-toggle--disabled)
.react-toggle-track {
background: lighten($ui-highlight-color, 10%); background: lighten($ui-highlight-color, 10%);
} }
@ -697,10 +700,10 @@ body.admin {
} }
.simple_form { .simple_form {
input[type="text"], input[type='text'],
input[type="number"], input[type='number'],
input[type="email"], input[type='email'],
input[type="password"], input[type='password'],
select, select,
textarea { textarea {
border-color: $blueberry; border-color: $blueberry;
@ -1096,12 +1099,15 @@ a.status-card.compact:hover {
border-bottom: 1px solid lighten($purple, 8%); border-bottom: 1px solid lighten($purple, 8%);
} }
@media screen and (max-width: 600px) { @media screen and (width <= 600px) {
.public-layout .public-account-header__bar { .public-layout .public-account-header__bar {
background: $blue; background: $blue;
} }
.public-layout .public-account-header__extra .public-account-bio .account__header__fields { .public-layout
.public-account-header__extra
.public-account-bio
.account__header__fields {
border-color: lighten($purple, 8%); border-color: lighten($purple, 8%);
background: $purple; background: $purple;
} }

View File

@ -197,7 +197,7 @@
margin-bottom: 10px; margin-bottom: 10px;
} }
@media screen and (max-width: 738px) { @media screen and (width <= 738px) {
grid-template-columns: minmax(0, 50%) minmax(0, 50%); grid-template-columns: minmax(0, 50%) minmax(0, 50%);
.landing-page__call-to-action { .landing-page__call-to-action {
@ -378,7 +378,7 @@
color: $primary-text-color; color: $primary-text-color;
} }
@media screen and (max-width: 550px) { @media screen and (width <= 550px) {
&.optional { &.optional {
display: none; display: none;
} }
@ -492,7 +492,7 @@
justify-content: flex-start; justify-content: flex-start;
&::before { &::before {
content: ""; content: '';
display: block; display: block;
background: lighten($ui-base-color, 4%); background: lighten($ui-base-color, 4%);
position: absolute; position: absolute;
@ -522,7 +522,7 @@
} }
} }
@media screen and (max-width: 600px) { @media screen and (width <= 600px) {
margin-top: 0; margin-top: 0;
background: lighten($ui-base-color, 4%); background: lighten($ui-base-color, 4%);
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
@ -543,7 +543,7 @@
border-radius: 4px; border-radius: 4px;
} }
@media screen and (max-width: 360px) { @media screen and (width <= 360px) {
display: none; display: none;
} }
} }
@ -587,7 +587,7 @@
} }
} }
@media screen and (max-width: 600px) { @media screen and (width <= 600px) {
margin-left: 15px; margin-left: 15px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -648,7 +648,7 @@
&::after { &::after {
display: block; display: block;
content: ""; content: '';
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
@ -845,11 +845,11 @@
margin-bottom: 10px; margin-bottom: 10px;
max-width: 33.333%; max-width: 33.333%;
@media screen and (max-width: 900px) { @media screen and (width <= 900px) {
max-width: 50%; max-width: 50%;
} }
@media screen and (max-width: 600px) { @media screen and (width <= 600px) {
max-width: 100%; max-width: 100%;
} }
} }

View File

@ -51,7 +51,7 @@
min-width: 0; min-width: 0;
} }
@media screen and (max-width: 690px) { @media screen and (width <= 690px) {
grid-template-columns: 1fr 2fr 1fr; grid-template-columns: 1fr 2fr 1fr;
.column-0, .column-0,
@ -77,7 +77,7 @@
} }
} }
@media screen and (max-width: 600px) { @media screen and (width <= 600px) {
.column-1 { .column-1 {
display: block; display: block;
} }

View File

@ -520,7 +520,7 @@ $fluid-breakpoint: $maximum-width + 20px;
.statuses-grid { .statuses-grid {
min-height: 600px; min-height: 600px;
@media screen and (max-width: 640px) { @media screen and (width <= 640px) {
width: 100% !important; // Masonry layout is unnecessary at this width width: 100% !important; // Masonry layout is unnecessary at this width
} }
@ -531,7 +531,7 @@ $fluid-breakpoint: $maximum-width + 20px;
width: math.div(940px - 20px, 3); width: math.div(940px - 20px, 3);
} }
@media screen and (max-width: 640px) { @media screen and (width <= 640px) {
width: 100%; width: 100%;
} }