colour icons
This commit is contained in:
parent
9b1b8c698b
commit
2bd59262eb
31
client/assets/icons/colour.svg
Normal file
31
client/assets/icons/colour.svg
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
width="1.375in" height="0.555556in"
|
||||
viewBox="0 0 99 40">
|
||||
<path id="Unnamed"
|
||||
fill="none" stroke="black" stroke-width="1"
|
||||
d="M 21.18,19.55
|
||||
C 21.18,19.55 78.55,19.55 78.55,19.55M 85.00,14.00
|
||||
C 85.00,14.00 85.00,25.00 85.00,25.00
|
||||
85.00,25.00 15.00,25.00 15.00,25.00
|
||||
15.00,25.00 15.00,14.00 15.00,14.00
|
||||
15.00,14.00 85.00,14.00 85.00,14.00 Z
|
||||
M 85.00,14.00
|
||||
C 85.00,14.00 85.00,25.00 85.00,25.00
|
||||
85.00,25.00 15.00,25.00 15.00,25.00
|
||||
15.00,25.00 15.00,14.00 15.00,14.00
|
||||
15.00,14.00 85.00,14.00 85.00,14.00 Z
|
||||
M 95.00,4.00
|
||||
C 95.00,4.00 95.00,35.00 95.00,35.00
|
||||
95.00,35.00 4.00,35.00 4.00,35.00
|
||||
4.00,35.00 4.00,4.00 4.00,4.00
|
||||
4.00,4.00 95.00,4.00 95.00,4.00 Z
|
||||
M 90.00,9.00
|
||||
C 90.00,9.00 90.00,30.00 90.00,30.00
|
||||
90.00,30.00 9.00,30.00 9.00,30.00
|
||||
9.00,30.00 9.00,9.00 9.00,9.00
|
||||
9.00,9.00 90.00,9.00 90.00,9.00 Z" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@ -411,6 +411,12 @@ header {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.vbox-table td svg {
|
||||
stroke-width: 1.5px;
|
||||
height: 95%;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
flex: 1 0 25%;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ const saw = require('./svgs/saw');
|
||||
const square = require('./svgs/square');
|
||||
const squircle = require('./svgs/squircle');
|
||||
const triangle = require('./svgs/triangle');
|
||||
const vboxColour = require('./svgs/colour');
|
||||
|
||||
module.exports = {
|
||||
circle,
|
||||
@ -16,4 +17,5 @@ module.exports = {
|
||||
squircle,
|
||||
triangle,
|
||||
saw,
|
||||
vboxColour,
|
||||
};
|
||||
|
||||
31
client/src/components/svgs/colour.jsx
Normal file
31
client/src/components/svgs/colour.jsx
Normal file
@ -0,0 +1,31 @@
|
||||
const preact = require('preact');
|
||||
|
||||
module.exports = function triangle(classes) {
|
||||
return (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40" className={classes} >
|
||||
<path id="Unnamed"
|
||||
fill="none" strokeWidth="1px"
|
||||
d="M 21.18,19.55
|
||||
C 21.18,19.55 78.55,19.55 78.55,19.55M 85.00,14.00
|
||||
C 85.00,14.00 85.00,25.00 85.00,25.00
|
||||
85.00,25.00 15.00,25.00 15.00,25.00
|
||||
15.00,25.00 15.00,14.00 15.00,14.00
|
||||
15.00,14.00 85.00,14.00 85.00,14.00 Z
|
||||
M 85.00,14.00
|
||||
C 85.00,14.00 85.00,25.00 85.00,25.00
|
||||
85.00,25.00 15.00,25.00 15.00,25.00
|
||||
15.00,25.00 15.00,14.00 15.00,14.00
|
||||
15.00,14.00 85.00,14.00 85.00,14.00 Z
|
||||
M 95.00,4.00
|
||||
C 95.00,4.00 95.00,35.00 95.00,35.00
|
||||
95.00,35.00 4.00,35.00 4.00,35.00
|
||||
4.00,35.00 4.00,4.00 4.00,4.00
|
||||
4.00,4.00 95.00,4.00 95.00,4.00 Z
|
||||
M 90.00,9.00
|
||||
C 90.00,9.00 90.00,30.00 90.00,30.00
|
||||
90.00,30.00 9.00,30.00 9.00,30.00
|
||||
9.00,30.00 9.00,9.00 9.00,9.00
|
||||
9.00,9.00 90.00,9.00 90.00,9.00 Z" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@ -1,7 +1,14 @@
|
||||
const preact = require('preact');
|
||||
const range = require('lodash/range');
|
||||
|
||||
const shapes = require('./shapes');
|
||||
|
||||
function convertVar(v) {
|
||||
if (['Red', 'Green', 'Blue'].includes(v)) {
|
||||
return (
|
||||
shapes.vboxColour(v.toLowerCase())
|
||||
);
|
||||
}
|
||||
return v || <span> </span>;
|
||||
// uncomment for double borders in vbox;
|
||||
// if (v) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user