Add Mastodon Modern theme by Freeplay
Added with permission/under CC BY-SA 4.0. Original repo: https://codeberg.org/Freeplay/Mastodon-Modern
This commit is contained in:
parent
d9ea6abec0
commit
5185f738e2
23 changed files with 334 additions and 0 deletions
|
@ -89,3 +89,7 @@ app/javascript/flavours/glitch/styles/reset.scss
|
|||
|
||||
# Ignore win95 theme
|
||||
app/javascript/styles/win95.scss
|
||||
|
||||
# Ignore mastomodern theme
|
||||
app/javascript/styles/modern/style.scss
|
||||
app/javascript/flavours/glitch/styles/modern/style.scss
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
// Mastodon Modern theme by Freeplay! Check the original repo for more info: https://codeberg.org/Freeplay/Mastodon-Modern
|
||||
// Everything in the "modern" directory is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
@import 'contrast/variables';
|
||||
@import 'index';
|
||||
@import 'modern/style';
|
||||
@import 'modern/glitch-fixes';
|
||||
@import 'contrast/diff';
|
7
app/javascript/flavours/glitch/styles/modern-dark.scss
Normal file
7
app/javascript/flavours/glitch/styles/modern-dark.scss
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Mastodon Modern theme by Freeplay! Check the original repo for more info: https://codeberg.org/Freeplay/Mastodon-Modern
|
||||
// Everything in the "modern" directory is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
@import 'variables';
|
||||
@import 'index';
|
||||
@import 'modern/style';
|
||||
@import 'modern/glitch-fixes';
|
8
app/javascript/flavours/glitch/styles/modern-light.scss
Normal file
8
app/javascript/flavours/glitch/styles/modern-light.scss
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Mastodon Modern theme by Freeplay! Check the original repo for more info: https://codeberg.org/Freeplay/Mastodon-Modern
|
||||
// Everything in the "modern" directory is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
@import 'mastodon-light/variables';
|
||||
@import 'index';
|
||||
@import 'modern/style';
|
||||
@import 'modern/glitch-fixes';
|
||||
@import 'mastodon-light/diff';
|
253
app/javascript/flavours/glitch/styles/modern/glitch-fixes.scss
Normal file
253
app/javascript/flavours/glitch/styles/modern/glitch-fixes.scss
Normal file
|
@ -0,0 +1,253 @@
|
|||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.compose-form__autosuggest-wrapper
|
||||
> :last-child {
|
||||
padding-bottom: 2em !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .compose-form__buttons {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.compose-form__buttons
|
||||
> div:last-child {
|
||||
margin-inline-start: auto;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .character-counter__wrapper {
|
||||
position: absolute;
|
||||
inset-inline-end: 0;
|
||||
bottom: 100%;
|
||||
margin: 4px;
|
||||
border-radius: 6px;
|
||||
padding: 0.1em 0.5em;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .character-counter__wrapper span {
|
||||
font-size: 0.9em;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .collapsed .status__content {
|
||||
height: auto !important;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.collapsed
|
||||
.status__content
|
||||
.status__content__text {
|
||||
mask: linear-gradient(to bottom, #000 50px, transparent) !important;
|
||||
max-height: 100px;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.collapsed
|
||||
.status__content
|
||||
p:not(:last-of-type) {
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .collapsed .status__content br {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .collapsed .status__content::after {
|
||||
content: unset;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.collapsed.muted
|
||||
.status__content__text
|
||||
~ * {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .status > .status__content {
|
||||
margin-block: -90px -100px !important;
|
||||
padding-block: 100px !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.status
|
||||
> .status__content
|
||||
.status__content__text {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.status
|
||||
> .status__content
|
||||
> :last-child:not(.status__content__text) {
|
||||
margin-bottom: 5px !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .status .full-width {
|
||||
margin-inline: 0 !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .status .status__action-bar {
|
||||
position: static;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .status__info .notification__message {
|
||||
padding-top: 0 !important;
|
||||
padding-inline-start: 0 !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .status__display-name {
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .display-name__account {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.media-gallery__item
|
||||
> .media-gallery__preview {
|
||||
display: unset;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .status__action-bar-spacer {
|
||||
min-width: 5px;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .status__relative-time {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .reactions-bar button {
|
||||
border-radius: 6px !important;
|
||||
padding-block: 2px;
|
||||
}
|
||||
@media (pointer: coarse) {
|
||||
body.app-body.flavour-glitch > #mastodon .reactions-bar button {
|
||||
padding: 8px 10px !important;
|
||||
}
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .reactions-bar:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.collapsed
|
||||
> .status__info
|
||||
.notification__message {
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.notification
|
||||
> .notification__message {
|
||||
padding-inline: 15px !important;
|
||||
padding-top: 18px !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .notification .account {
|
||||
padding-inline-start: 0 !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .notification__favourite-icon-wrapper {
|
||||
position: static;
|
||||
margin-inline-end: 10px;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.notification__favourite-icon-wrapper
|
||||
i {
|
||||
width: 1.28571429em !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .status__prepend,
|
||||
body.app-body.flavour-glitch > #mastodon .status__info .notification__message {
|
||||
padding-bottom: 15px !important;
|
||||
padding-top: 0 !important;
|
||||
margin-top: -5px !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.status__prepend
|
||||
.status__prepend-icon-wrapper,
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.status__info
|
||||
.notification__message
|
||||
.status__prepend-icon-wrapper {
|
||||
all: unset;
|
||||
margin-inline-end: 10px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.status__prepend
|
||||
.status__prepend-icon-wrapper
|
||||
i,
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.status__info
|
||||
.notification__message
|
||||
.status__prepend-icon-wrapper
|
||||
i {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.detailed-status__wrapper
|
||||
.focusable:not(.status)::before {
|
||||
content: unset !important;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .setting-text {
|
||||
border-radius: 0 !important;
|
||||
margin: 4px;
|
||||
width: calc(100% - 8px);
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .column-settings__pillbar {
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .pillbar-button {
|
||||
border-radius: 0 !important;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch > #mastodon .account-card .media-modal__close {
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
body.app-body.flavour-glitch
|
||||
> #mastodon
|
||||
.account-card
|
||||
.media-modal__close::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -60px -30px;
|
||||
background: linear-gradient(to right, #000, transparent);
|
||||
transform: rotate(45deg);
|
||||
z-index: -1;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.layout-multiple-columns.flavour-glitch .drawer__inner {
|
||||
margin-top: -10px;
|
||||
padding-top: 30px !important;
|
||||
}
|
1
app/javascript/flavours/glitch/styles/modern/style.scss
Normal file
1
app/javascript/flavours/glitch/styles/modern/style.scss
Normal file
File diff suppressed because one or more lines are too long
1
app/javascript/skins/glitch/modern-contrast/common.scss
Normal file
1
app/javascript/skins/glitch/modern-contrast/common.scss
Normal file
|
@ -0,0 +1 @@
|
|||
@import 'flavours/glitch/styles/modern-contrast';
|
4
app/javascript/skins/glitch/modern-contrast/names.yml
Normal file
4
app/javascript/skins/glitch/modern-contrast/names.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
skins:
|
||||
glitch:
|
||||
modern-contrast: Mastodon Modern (high contrast)
|
1
app/javascript/skins/glitch/modern-dark/common.scss
Normal file
1
app/javascript/skins/glitch/modern-dark/common.scss
Normal file
|
@ -0,0 +1 @@
|
|||
@import 'flavours/glitch/styles/modern-dark';
|
4
app/javascript/skins/glitch/modern-dark/names.yml
Normal file
4
app/javascript/skins/glitch/modern-dark/names.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
skins:
|
||||
glitch:
|
||||
modern-dark: Mastodon Modern (dark)
|
1
app/javascript/skins/glitch/modern-light/common.scss
Normal file
1
app/javascript/skins/glitch/modern-light/common.scss
Normal file
|
@ -0,0 +1 @@
|
|||
@import 'flavours/glitch/styles/modern-light';
|
4
app/javascript/skins/glitch/modern-light/names.yml
Normal file
4
app/javascript/skins/glitch/modern-light/names.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
skins:
|
||||
glitch:
|
||||
modern-light: Mastodon Modern (light)
|
1
app/javascript/skins/vanilla/modern-contrast/common.scss
Normal file
1
app/javascript/skins/vanilla/modern-contrast/common.scss
Normal file
|
@ -0,0 +1 @@
|
|||
@import 'styles/modern-contrast';
|
4
app/javascript/skins/vanilla/modern-contrast/names.yml
Normal file
4
app/javascript/skins/vanilla/modern-contrast/names.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
skins:
|
||||
vanilla:
|
||||
modern-contrast: Mastodon Modern (high contrast)
|
1
app/javascript/skins/vanilla/modern-dark/common.scss
Normal file
1
app/javascript/skins/vanilla/modern-dark/common.scss
Normal file
|
@ -0,0 +1 @@
|
|||
@import 'styles/modern-dark';
|
4
app/javascript/skins/vanilla/modern-dark/names.yml
Normal file
4
app/javascript/skins/vanilla/modern-dark/names.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
skins:
|
||||
vanilla:
|
||||
modern-dark: Mastodon Modern (dark)
|
1
app/javascript/skins/vanilla/modern-light/common.scss
Normal file
1
app/javascript/skins/vanilla/modern-light/common.scss
Normal file
|
@ -0,0 +1 @@
|
|||
@import 'styles/modern-light';
|
4
app/javascript/skins/vanilla/modern-light/names.yml
Normal file
4
app/javascript/skins/vanilla/modern-light/names.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
skins:
|
||||
vanilla:
|
||||
modern-light: Mastodon Modern (light)
|
7
app/javascript/styles/modern-contrast.scss
Normal file
7
app/javascript/styles/modern-contrast.scss
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Mastodon Modern theme by Freeplay! Check the original repo for more info: https://codeberg.org/Freeplay/Mastodon-Modern
|
||||
// Everything in the "modern" directory is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
@import 'contrast/variables';
|
||||
@import 'application';
|
||||
@import 'modern/style';
|
||||
@import 'contrast/diff';
|
6
app/javascript/styles/modern-dark.scss
Normal file
6
app/javascript/styles/modern-dark.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
// Mastodon Modern theme by Freeplay! Check the original repo for more info: https://codeberg.org/Freeplay/Mastodon-Modern
|
||||
// Everything in the "modern" directory is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
@import 'mastodon/variables';
|
||||
@import 'application';
|
||||
@import 'modern/style';
|
7
app/javascript/styles/modern-light.scss
Normal file
7
app/javascript/styles/modern-light.scss
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Mastodon Modern theme by Freeplay! Check the original repo for more info: https://codeberg.org/Freeplay/Mastodon-Modern
|
||||
// Everything in the "modern" directory is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
@import 'mastodon-light/variables';
|
||||
@import 'application';
|
||||
@import 'modern/style';
|
||||
@import 'mastodon-light/diff';
|
1
app/javascript/styles/modern/style.scss
Normal file
1
app/javascript/styles/modern/style.scss
Normal file
|
@ -0,0 +1 @@
|
|||
Not found.
|
|
@ -4,6 +4,8 @@ module.exports = {
|
|||
'app/javascript/styles/mastodon/reset.scss',
|
||||
'app/javascript/flavours/glitch/styles/reset.scss',
|
||||
'app/javascript/styles/win95.scss',
|
||||
'app/javascript/styles/modern/style.scss',
|
||||
'app/javascript/flavours/glitch/styles/modern/style.scss',
|
||||
'coverage/**/*',
|
||||
'node_modules/**/*',
|
||||
'public/assets/**/*',
|
||||
|
|
Loading…
Reference in a new issue