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">
<svg
class="regexp-svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
version="1.1">
<defs>
<style type="text/css">{{> svg_styles}}</style>
</defs>
<metadata>
<rdf:RDF>
<cc:License rdf:about="http://creativecommons.org/licenses/by/3.0/">

View File

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

View File

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