From 1a0ae2f59b39d90aff24cad01f8a4b70d76b0877 Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Sun, 24 Jul 2022 23:47:45 +0100 Subject: [PATCH] fix: quote skeleton --- src/components/widgets/quote/quote.scss | 32 +++++-------- .../helpers/settings/achievements.json | 46 +++++++++++++++++++ 2 files changed, 58 insertions(+), 20 deletions(-) create mode 100644 src/modules/helpers/settings/achievements.json diff --git a/src/components/widgets/quote/quote.scss b/src/components/widgets/quote/quote.scss index fb64049d..24eb7682 100644 --- a/src/components/widgets/quote/quote.scss +++ b/src/components/widgets/quote/quote.scss @@ -138,25 +138,17 @@ h1.quoteauthor { } .author-content.whileLoading { - gap: 5px; - .title { - color: transparent; - width: 100px; - background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%); - background-size: 200% 100%; - animation: 1.5s shine linear infinite; - } - .subtitle { - color: transparent; - width: 50px; - background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%); - background-size: 200% 100%; - animation: 1.5s shine linear infinite; - } -} - -@keyframes shine { - to { - background-position-x: -200%; + @include themed() { + gap: 5px; + .title { + color: transparent; + width: 100px; + background: t($modal-sidebar); + } + .subtitle { + color: transparent; + width: 50px; + background: t($modal-sidebarActive); + } } } diff --git a/src/modules/helpers/settings/achievements.json b/src/modules/helpers/settings/achievements.json new file mode 100644 index 00000000..18a36250 --- /dev/null +++ b/src/modules/helpers/settings/achievements.json @@ -0,0 +1,46 @@ +{ + "achievements": [ + { + "name": "10/10 IGN", + "description": "Opened 10 tabs", + "condition": { + "tabsOpened": "10" + } + }, + { + "name": "Thank you", + "description": "Opened 39 tabs", + "condition": { + "tabsOpened": 39 + } + }, + { + "name": "Seasoning", + "description": "Opened 100 tabs", + "condition": { + "tabsOpened": 100 + } + }, + { + "name": "Mr Worldwide", + "description": "Opened 305 tabs", + "condition": { + "tabsOpened": 305 + } + }, + { + "name": "Average linux user", + "description": "Installed an add-on", + "condition": { + "addonInstall": 1 + } + }, + { + "name": "Fully riced", + "description": "Installed 5 add-ons", + "condition": { + "addonInstall": 5 + } + } + ] +} \ No newline at end of file