Browse Source

Use XML attributes instead of CSS styles

master
Nicolas Lenz 7 months ago
parent
commit
3cb2611de0
1 changed files with 8 additions and 5 deletions
  1. 8
    5
      src/gem.svg

+ 8
- 5
src/gem.svg View File

@@ -7,11 +7,14 @@
7 7
         </radialGradient>
8 8
     </defs>
9 9
 
10
-    <path d="m 0,25 50,75 50,-75 -20,-25 h -60 z" style="fill:%COLOR%; fill-opacity:0.95"/>
10
+    <!-- Main colored gem path -->
11
+    <path d="m 0,25 50,75 50,-75 -20,-25 h -60 z" fill="%COLOR%" fill-opacity="0.95"/>
11 12
 
12
-    <path d="m 20,0 -20,25 50,75 -20,-75 h 40 l -20,75 50,-75 -20,-25 z"  style="fill:white; fill-opacity:0.18"/>
13
-    <path d="m 20,0 -20,25 h 30 l 20,-25 z m 30,0 20,25 h 30 l -20,-25 z" style="fill:white; fill-opacity:0.15"/>
14
-    <path d="m 20,0 -20,25 h 30 z m 60,0 -10,25 h 30 z"                   style="fill:white; fill-opacity:0.12"/>
13
+    <!-- White overlays -->
14
+    <path d="m 20,0 -20,25 50,75 -20,-75 h 40 l -20,75 50,-75 -20,-25 z"  fill="white" fill-opacity="0.18"/>
15
+    <path d="m 20,0 -20,25 h 30 l 20,-25 z m 30,0 20,25 h 30 l -20,-25 z" fill="white" fill-opacity="0.15"/>
16
+    <path d="m 20,0 -20,25 h 30 z m 60,0 -10,25 h 30 z"                   fill="white" fill-opacity="0.12"/>
15 17
 
16
-    <path d="m 0,25 50,75 50,-75 -20,-25 h -60 z" style="fill:url(#shine)"/>
18
+    <!-- Shiny overlay -->
19
+    <path d="m 0,25 50,75 50,-75 -20,-25 h -60 z" fill="url(#shine)"/>
17 20
 </svg>

Loading…
Cancel
Save