From 221079321f71a8d53d480244fd7e05c2d69b105a Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 6 Jun 2022 02:09:38 +0300 Subject: [PATCH] refactor: load religions editor dynamically --- index.css | 22 - index.html | 103 +-- modules/dynamic/editors/cultures-editor.js | 137 ++- modules/dynamic/editors/religions-editor.js | 928 ++++++++++++++++++++ modules/dynamic/editors/states-editor.js | 181 ++-- modules/ui/editors.js | 87 +- modules/ui/religions-editor.js | 862 ------------------ versioning.js | 2 +- 8 files changed, 1187 insertions(+), 1135 deletions(-) create mode 100644 modules/dynamic/editors/religions-editor.js delete mode 100644 modules/ui/religions-editor.js diff --git a/index.css b/index.css index 4d1a1f91..9c884fa2 100644 --- a/index.css +++ b/index.css @@ -1619,28 +1619,6 @@ div.states > .riverType { color: #abaaaa; } -div.states > .religionName { - width: 11em; -} - -div.states > .religionType { - width: 5em; - cursor: pointer; - border: 0; - background-color: transparent; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -div.states > .religionForm { - width: 6em; -} - -div.states > .religionDeity { - width: 15em; -} - .placeholder { opacity: 0; cursor: default; diff --git a/index.html b/index.html index b073ac30..e2094f58 100644 --- a/index.html +++ b/index.html @@ -4739,106 +4739,6 @@ - -