From 693fba6d31c329a96611d9cad6b147bed5591f2e Mon Sep 17 00:00:00 2001 From: Andrew MacKenzie Date: Wed, 24 Sep 2014 09:32:36 -0400 Subject: [PATCH 1/3] added support for dark themes for matchs & groups --- regex-editor-styles.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/regex-editor-styles.css b/regex-editor-styles.css index 5cbb8e4..be66324 100644 --- a/regex-editor-styles.css +++ b/regex-editor-styles.css @@ -75,6 +75,10 @@ color: #000090 } +.dark .inline-regex-editor .inline-regex-match { + color: #33ccff; +} + .inline-regex-editor .inline-regex-groups { margin-left: 5px; background-color: #d3d3ff; @@ -84,6 +88,10 @@ font-size: inherit; color: #000090; } +.dark .inline-regex-editor .inline-regex-groups { + background-color: #000033; + color: #33ccff; +} .inline-regex-editor .inline-regex-groups .regex-group-match { padding: 0 5px; } @@ -93,6 +101,9 @@ .inline-regex-editor .inline-regex-groups .regex-group-match:hover { background-color: #9f9ff5; } +.dark .inline-regex-editor .inline-regex-groups .regex-group-match:hover { + background-color: #000066; +} .inline-regex-editor .inline-regex-groups .regex-group-match strong { font-weight: bold; } @@ -112,4 +123,4 @@ /* top is programmatically set to match top of .inline-regex-sample; adjust downward to match its border + padding */ margin-top: 3px; -} \ No newline at end of file +} From 0c535d5735a9c6b0807fedbc33c3bca5c3a27216 Mon Sep 17 00:00:00 2001 From: Andrew MacKenzie Date: Wed, 24 Sep 2014 09:57:50 -0400 Subject: [PATCH 2/3] added display: inline to avoid orphaned style tag --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index dc1abf0..7ff8385 100644 --- a/main.js +++ b/main.js @@ -197,7 +197,7 @@ define(function (require, exports, module) { groups += "$" + i + ""; } } - this.$htmlContent.find(".inline-regex-groups").html(groups).show(); + this.$htmlContent.find(".inline-regex-groups").html(groups).css("display", "inline").show(); } else { this.$htmlContent.find(".inline-regex-groups").hide(); } From e8353f5eebdc809b542ead52f164ff56e735f41b Mon Sep 17 00:00:00 2001 From: Andrew MacKenzie Date: Thu, 25 Sep 2014 15:00:59 -0400 Subject: [PATCH 3/3] lock overlay to fixed font size --- regex-editor-styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regex-editor-styles.css b/regex-editor-styles.css index be66324..41b7f90 100644 --- a/regex-editor-styles.css +++ b/regex-editor-styles.css @@ -63,7 +63,7 @@ .inline-regex-editor .inline-regex-sample { font-family: "SourceCodePro"; - font-size: inherit; + font-size: 12px; padding: 2px 2px 2px 6px; /* 6px aligns L edge of text with CM field above */ }