From 9188bdb0f521bda7a9af80d1fe526a4325f9565e Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Wed, 8 Sep 2021 17:53:17 -0700 Subject: [PATCH 1/9] Added loader, new icons, theme presets --- css/modern/theme-editor.css | 4 ++ css/theme-editor.css | 16 ++++++ default-icons.html | 1 + js/all-idle.js | 4 ++ js/all.js | 25 +++++----- js/analytics.js | 8 +++ js/assessment.js | 4 ++ js/course.js | 96 +++++++++++++++++++----------------- js/courses.js | 8 ++- js/default-themes.js | 8 +++ js/grades.js | 10 ++-- js/home.js | 6 ++- js/icons.js | 36 +++++++++----- js/materials.js | 8 ++- js/page.js | 6 ++- js/preload.js | 86 +++++++++++--------------------- js/theme-editor.js | 54 +++++++++++++------- js/theme-model.js | 8 +++ js/theme.js | 20 +++++--- js/user.js | 12 +++-- js/version-specific.js | 4 +- lib/font/icons.woff2 | Bin 55208 -> 110560 bytes manifest.json | 1 + theme-editor.html | 18 +++++-- 24 files changed, 276 insertions(+), 167 deletions(-) diff --git a/css/modern/theme-editor.css b/css/modern/theme-editor.css index 2ac57c80..65de81e7 100644 --- a/css/modern/theme-editor.css +++ b/css/modern/theme-editor.css @@ -200,3 +200,7 @@ variable-intellisense { transition: .3s ease-out !important; color: var(--modern-contrast-text) !important; } + +[modern=true]:root #create-preset-dropdown > li:hover { + background-color: var(--modern-active); +} \ No newline at end of file diff --git a/css/theme-editor.css b/css/theme-editor.css index f0174891..47cee6ef 100644 --- a/css/theme-editor.css +++ b/css/theme-editor.css @@ -346,6 +346,22 @@ h2.center { background-color: var(--primary-color); } +#create-preset-dropdown { + background-color: #dedede; +} + +#create-preset-dropdown > li > * { + color: #2a2a2a; +} + +#create-preset-dropdown > li > a { + cursor: pointer; +} + +.dropdown-header { + font-weight: bold; +} + #new-icon { background-color: var(--primary-color); } diff --git a/default-icons.html b/default-icons.html index 490eeeb8..2c74324d 100644 --- a/default-icons.html +++ b/default-icons.html @@ -63,6 +63,7 @@ +