From 73bdbb0e16abeb9adfba238a6e219f4d04e73800 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 31 May 2016 08:36:44 -0400 Subject: [PATCH] Revert "Moving SVG CSS to the main page CSS" This reverts commit ac0389c7faf34237837c1e44d555cbe2db10df02. --- lib/partials/svg_template.hbs | 4 +- src/sass/main.scss | 1 - src/sass/svg.scss | 130 ++++++++++++++++------------------ 3 files changed, 66 insertions(+), 69 deletions(-) diff --git a/lib/partials/svg_template.hbs b/lib/partials/svg_template.hbs index 87bdd11..4a24b5e 100644 --- a/lib/partials/svg_template.hbs +++ b/lib/partials/svg_template.hbs @@ -1,10 +1,12 @@
+ + + diff --git a/src/sass/main.scss b/src/sass/main.scss index b9be487..9f72511 100644 --- a/src/sass/main.scss +++ b/src/sass/main.scss @@ -1,6 +1,5 @@ @import 'base'; @import 'reset'; -@import 'svg'; body { font-family: sans-serif; diff --git a/src/sass/svg.scss b/src/sass/svg.scss index b3f1f9d..1316adc 100644 --- a/src/sass/svg.scss +++ b/src/sass/svg.scss @@ -1,71 +1,67 @@ @import 'base'; -#open-iconic { - display: none; -} - -svg.regexp-svg { +svg { background-color: $white; - - text, tspan { - font: 12px Arial; - } - - path { - fill-opacity: 0; - stroke-width: 2px; - stroke: $black; - } - - circle { - fill: $gray; - stroke-width: 2px; - stroke: $black; - } - - .anchor text, .any-character text { - fill: $white; - } - - .anchor rect, .any-character rect { - fill: $gray; - } - - .escape text, .charset-escape text, .literal text { - fill: $black; - } - - .escape rect, .charset-escape rect { - fill: $green; - } - - .literal rect { - fill: $blue; - } - - .charset .charset-box { - fill: $tan; - } - - .subexp .subexp-label tspan, - .charset .charset-label tspan, - .match-fragment .repeat-label tspan { - font-size: 10px; - } - - .subexp .subexp-label tspan, - .charset .charset-label tspan { - dominant-baseline: text-after-edge; - } - - .subexp .subexp-box { - stroke: $light-gray; - stroke-dasharray: 6,2; - stroke-width: 2px; - fill-opacity: 0; - } - - .quote { - fill: $light-gray; - } +} + +text, tspan { + font: 12px Arial; +} + +path { + fill-opacity: 0; + stroke-width: 2px; + stroke: $black; +} + +circle { + fill: $gray; + stroke-width: 2px; + stroke: $black; +} + +.anchor text, .any-character text { + fill: $white; +} + +.anchor rect, .any-character rect { + fill: $gray; +} + +.escape text, .charset-escape text, .literal text { + fill: $black; +} + +.escape rect, .charset-escape rect { + fill: $green; +} + +.literal rect { + fill: $blue; +} + +.charset .charset-box { + fill: $tan; +} + +.subexp .subexp-label tspan, +.charset .charset-label tspan, +.match-fragment .repeat-label tspan { + font-size: 10px; +} + +.subexp .subexp-label tspan, +.charset .charset-label tspan { + dominant-baseline: text-after-edge; +} + +.subexp .subexp-box { + stroke: $light-gray; + stroke-dasharray: 6,2; + stroke-width: 2px; + fill-opacity: 0; +} + +.quote { + fill: $light-gray; }