From c3aef762cb0ae6bd4ee3d0f0293036e27c4b3b12 Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Mon, 1 Jul 2019 13:29:48 +0200 Subject: [PATCH] BUGFIX: Make hyphen size relative to font size Resolves: #10 --- .../Scripts/HyphensEditor/src/plugins/hyphens.vanilla-css | 8 ++++---- Resources/Public/HyphensEditor/Plugin.css | 8 ++++---- Resources/Public/HyphensEditor/Plugin.css.map | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Resources/Private/Scripts/HyphensEditor/src/plugins/hyphens.vanilla-css b/Resources/Private/Scripts/HyphensEditor/src/plugins/hyphens.vanilla-css index c4fe248..6a79b36 100644 --- a/Resources/Private/Scripts/HyphensEditor/src/plugins/hyphens.vanilla-css +++ b/Resources/Private/Scripts/HyphensEditor/src/plugins/hyphens.vanilla-css @@ -1,15 +1,15 @@ .ck-content .shy { background: rgba(175, 224, 239, .3); - padding: 0 4px; + padding: 0 .2em; position: relative; border-radius: 3px; } .ck-content .shy::before { content: ''; - border-bottom: 2px solid currentColor; - width: 6px; + border-bottom: .1em solid currentColor; + width: .2em; position: absolute; - right: 1px; + right: .1em; top: 50%; } diff --git a/Resources/Public/HyphensEditor/Plugin.css b/Resources/Public/HyphensEditor/Plugin.css index 1c4dce6..5ed0e85 100644 --- a/Resources/Public/HyphensEditor/Plugin.css +++ b/Resources/Public/HyphensEditor/Plugin.css @@ -4,17 +4,17 @@ .ck-content .shy { background: rgba(175, 224, 239, .3); - padding: 0 4px; + padding: 0 .2em; position: relative; border-radius: 3px; } .ck-content .shy::before { content: ''; - border-bottom: 2px solid currentColor; - width: 6px; + border-bottom: .1em solid currentColor; + width: .2em; position: absolute; - right: 1px; + right: .1em; top: 50%; } diff --git a/Resources/Public/HyphensEditor/Plugin.css.map b/Resources/Public/HyphensEditor/Plugin.css.map index 2559cf8..e2a947a 100644 --- a/Resources/Public/HyphensEditor/Plugin.css.map +++ b/Resources/Public/HyphensEditor/Plugin.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./src/hyphensButtonTheme.css","webpack:///./src/plugins/hyphens.vanilla-css"],"names":[],"mappings":"AAAA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"./Plugin.css","sourcesContent":[".hyphensButtonTheme__btn--no-padding___3nhbe {\n padding: 0;\n}\n",".ck-content .shy {\n background: rgba(175, 224, 239, .3);\n padding: 0 4px;\n position: relative;\n border-radius: 3px;\n}\n\n.ck-content .shy::before {\n content: '';\n border-bottom: 2px solid currentColor;\n width: 6px;\n position: absolute;\n right: 1px;\n top: 50%;\n}\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./src/hyphensButtonTheme.css","webpack:///./src/plugins/hyphens.vanilla-css"],"names":[],"mappings":"AAAA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"./Plugin.css","sourcesContent":[".hyphensButtonTheme__btn--no-padding___3nhbe {\n padding: 0;\n}\n",".ck-content .shy {\n background: rgba(175, 224, 239, .3);\n padding: 0 .2em;\n position: relative;\n border-radius: 3px;\n}\n\n.ck-content .shy::before {\n content: '';\n border-bottom: .1em solid currentColor;\n width: .2em;\n position: absolute;\n right: .1em;\n top: 50%;\n}\n"],"sourceRoot":""} \ No newline at end of file