From 002160ed211ba5fc030a9a46ad6e5b66b2afeba0 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 11 Feb 2021 01:09:41 +0300 Subject: [PATCH] v1.5.15 - svg save data cleansing --- index.css | 13 ++- index.html | 206 +++++++++++++++++------------------ main.js | 5 +- modules/coa-renderer.js | 2 +- modules/save-and-load.js | 58 ++++++++-- modules/ui/emblems-editor.js | 4 +- modules/ui/layers.js | 6 +- modules/ui/style.js | 5 - 8 files changed, 164 insertions(+), 135 deletions(-) diff --git a/index.css b/index.css index 5244484c..e04559db 100644 --- a/index.css +++ b/index.css @@ -134,6 +134,17 @@ button, select, a { #armies text { pointer-events: none; user-select: none; + stroke: none; + fill: #fff; + text-shadow: 0 0 4px #000; + dominant-baseline: central; + text-anchor: middle; + font-family: Helvetica; + fill-opacity: 1; +} + +#armies text.regimentIcon { + font-size: .8em; } #statesBody, #provincesBody { @@ -1405,11 +1416,11 @@ div.states>input.riverType { } div.states > .coaIcon { + stroke-width: 3; width: 1.4em; height: 1.4em; margin: -.3em 0; cursor: pointer; - transition: all .4s ease-in-out; } div.states > .coaIcon > use { diff --git a/index.html b/index.html index ed7eb455..c108eb56 100644 --- a/index.html +++ b/index.html @@ -147,58 +147,45 @@ - - - - - - - - - - - - - @@ -812,27 +799,27 @@ - + - + - + - + - + - + @@ -843,13 +830,13 @@ - - - - - - - + + + + + + + @@ -871,19 +858,19 @@ - + - + - + - + - + @@ -2327,89 +2314,89 @@
- - - - - - - - - + + + + + + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Any @@ -3485,6 +3472,9 @@