Better themeing support!!
This commit is contained in:
9
app/javascript/themes/default/theme.yml
Normal file
9
app/javascript/themes/default/theme.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
# (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]`).
|
||||
pack_directory: app/javascript/packs
|
||||
2
app/javascript/themes/spin/pack.js
Normal file
2
app/javascript/themes/spin/pack.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import 'packs/application';
|
||||
import 'themes/spin/style';
|
||||
14
app/javascript/themes/spin/style.scss
Normal file
14
app/javascript/themes/spin/style.scss
Normal file
@@ -0,0 +1,14 @@
|
||||
: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);
|
||||
}
|
||||
}
|
||||
2
app/javascript/themes/spin/theme.yml
Normal file
2
app/javascript/themes/spin/theme.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
name: spin
|
||||
pack: pack.js
|
||||
Reference in New Issue
Block a user