From c394534246c33600a85f84cf13943fd4a1a4f466 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 23 May 2022 23:52:39 +0300 Subject: [PATCH 01/18] base dialog --- index.css | 13 ++ index.html | 4 +- modules/dynamic/editors/cultures-editor.js | 2 +- modules/dynamic/editors/states-editor.js | 2 +- modules/dynamic/heightmap-selection.js | 183 +++++++++++++++++++++ modules/ui/options.js | 6 + versioning.js | 2 +- 7 files changed, 208 insertions(+), 4 deletions(-) create mode 100644 modules/dynamic/heightmap-selection.js diff --git a/index.css b/index.css index 1b7a983b..05baf61c 100644 --- a/index.css +++ b/index.css @@ -1318,6 +1318,12 @@ div.slider .ui-slider-handle { scrollbar-width: thin; } +.dialog::-webkit-scrollbar { + width: 10px; + height: 10px; + background-color: transparent; +} + #alertMessage::-webkit-scrollbar, .table::-webkit-scrollbar, .matrix-table::-webkit-scrollbar { @@ -1326,6 +1332,7 @@ div.slider .ui-slider-handle { background-color: transparent; } +.dialog::-webkit-scrollbar-thumb, #alertMessage::-webkit-scrollbar-thumb, .table::-webkit-scrollbar-thumb, .matrix-table::-webkit-scrollbar-thumb { @@ -1333,6 +1340,7 @@ div.slider .ui-slider-handle { border-radius: 6px; } +.dialog::-webkit-scrollbar-thumb:hover, #alertMessage::-webkit-scrollbar-thumb:hover, .table::-webkit-scrollbar-thumb:hover, .matrix-table::-webkit-scrollbar-thumb:hover { @@ -2363,3 +2371,8 @@ svg.button { display: none; } } + + +img {} + +div {} \ No newline at end of file diff --git a/index.html b/index.html index 033b5720..873bd9e5 100644 --- a/index.html +++ b/index.html @@ -1331,7 +1331,9 @@ - + + + diff --git a/modules/dynamic/editors/cultures-editor.js b/modules/dynamic/editors/cultures-editor.js index 7ef8f1e3..0e4f9768 100644 --- a/modules/dynamic/editors/cultures-editor.js +++ b/modules/dynamic/editors/cultures-editor.js @@ -24,7 +24,7 @@ export function open() { } function insertEditorHtml() { - const editorHtml = /* html */ `