Moving SVG CSS to the main page CSS

This commit is contained in:
Jeff Avallone 2016-03-10 16:52:57 -05:00
parent e597e7f963
commit 35a6bfe17c
3 changed files with 52 additions and 53 deletions

View File

@ -1,12 +1,10 @@
<div class="svg"> <div class="svg">
<svg <svg
class="regexp-svg"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
xmlns:cc="http://creativecommons.org/ns#" xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
version="1.1"> version="1.1">
<defs>
<style type="text/css">{{> svg_styles}}</style>
</defs>
<metadata> <metadata>
<rdf:RDF> <rdf:RDF>
<cc:License rdf:about="http://creativecommons.org/licenses/by/3.0/"> <cc:License rdf:about="http://creativecommons.org/licenses/by/3.0/">

View File

@ -1,5 +1,6 @@
@import 'base'; @import 'base';
@import 'reset'; @import 'reset';
@import 'svg';
body { body {
font-family: sans-serif; font-family: sans-serif;

View File

@ -1,67 +1,67 @@
@import 'base'; @import 'base';
svg { svg.regexp-svg {
background-color: $white; background-color: $white;
}
text, tspan { text, tspan {
font: 12px Arial; font: 12px Arial;
} }
path { path {
fill-opacity: 0; fill-opacity: 0;
stroke-width: 2px; stroke-width: 2px;
stroke: $black; stroke: $black;
} }
circle { circle {
fill: $gray; fill: $gray;
stroke-width: 2px; stroke-width: 2px;
stroke: $black; stroke: $black;
} }
.anchor text, .any-character text { .anchor text, .any-character text {
fill: $white; fill: $white;
} }
.anchor rect, .any-character rect { .anchor rect, .any-character rect {
fill: $gray; fill: $gray;
} }
.escape text, .charset-escape text, .literal text { .escape text, .charset-escape text, .literal text {
fill: $black; fill: $black;
} }
.escape rect, .charset-escape rect { .escape rect, .charset-escape rect {
fill: $green; fill: $green;
} }
.literal rect { .literal rect {
fill: $blue; fill: $blue;
} }
.charset .charset-box { .charset .charset-box {
fill: $tan; fill: $tan;
} }
.subexp .subexp-label tspan, .subexp .subexp-label tspan,
.charset .charset-label tspan, .charset .charset-label tspan,
.match-fragment .repeat-label tspan { .match-fragment .repeat-label tspan {
font-size: 10px; font-size: 10px;
} }
.subexp .subexp-label tspan, .subexp .subexp-label tspan,
.charset .charset-label tspan { .charset .charset-label tspan {
dominant-baseline: text-after-edge; dominant-baseline: text-after-edge;
} }
.subexp .subexp-box { .subexp .subexp-box {
stroke: $light-gray; stroke: $light-gray;
stroke-dasharray: 6,2; stroke-dasharray: 6,2;
stroke-width: 2px; stroke-width: 2px;
fill-opacity: 0; fill-opacity: 0;
} }
.quote { .quote {
fill: $light-gray; fill: $light-gray;
}
} }