diff options
Diffstat (limited to 'app/javascript/themes')
-rw-r--r-- | app/javascript/themes/default/theme.yml | 17 | ||||
-rw-r--r-- | app/javascript/themes/spin/pack.js | 2 | ||||
-rw-r--r-- | app/javascript/themes/spin/style.scss | 14 | ||||
-rw-r--r-- | app/javascript/themes/spin/theme.yml | 2 |
4 files changed, 13 insertions, 22 deletions
diff --git a/app/javascript/themes/default/theme.yml b/app/javascript/themes/default/theme.yml index 6a7a872b4..0b262cc82 100644 --- a/app/javascript/themes/default/theme.yml +++ b/app/javascript/themes/default/theme.yml @@ -1,9 +1,18 @@ -# (REQUIRED) Name must be unique across all installed themes. -name: default - # (REQUIRED) The location of the pack file inside `pack_directory`. pack: application.js # (OPTIONAL) The directory which contains the pack file. -# Defaults to the theme directory (`app/javascript/themes/[theme]`). +# Defaults to the theme directory (`app/javascript/themes/[theme]`), +# but in the case of the vanilla Mastodon theme the pack file is +# somewhere else. pack_directory: app/javascript/packs + +# (OPTIONAL) Additional javascript resources to preload, for use with +# lazy-loaded components. It is **STRONGLY RECOMMENDED** that you +# derive these pathnames from `themes/[your-theme]` to ensure that +# they stay unique. (Of course, vanilla doesn't do this ^^;;) +preload: +- features/getting_started +- features/compose +- features/home_timeline +- features/notifications diff --git a/app/javascript/themes/spin/pack.js b/app/javascript/themes/spin/pack.js deleted file mode 100644 index b11ac4802..000000000 --- a/app/javascript/themes/spin/pack.js +++ /dev/null @@ -1,2 +0,0 @@ -import '../../packs/application'; -import './style.scss'; diff --git a/app/javascript/themes/spin/style.scss b/app/javascript/themes/spin/style.scss deleted file mode 100644 index 1a9381fd0..000000000 --- a/app/javascript/themes/spin/style.scss +++ /dev/null @@ -1,14 +0,0 @@ -:root:root:root { - .button, .icon-button, .emoji-button, .account__avatar, .account__avatar-overlay { - animation: spin 4s linear infinite; - } -} - -@keyframes spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/app/javascript/themes/spin/theme.yml b/app/javascript/themes/spin/theme.yml deleted file mode 100644 index a684997dc..000000000 --- a/app/javascript/themes/spin/theme.yml +++ /dev/null @@ -1,2 +0,0 @@ -name: spin -pack: pack.js \ No newline at end of file |