From 240d05206ad0f18f015a2418378adc18297b846e Mon Sep 17 00:00:00 2001 From: ntr Date: Sun, 9 Jun 2019 16:33:47 +1000 Subject: [PATCH] icon changes --- client/assets/styles/instance.css | 18 +-------- client/assets/styles/styles.css | 2 +- client/assets/styles/styles.mobile.css | 4 +- client/src/components/svgs/circle.jsx | 24 +++++------- client/src/components/svgs/diamond.jsx | 14 +++---- client/src/components/svgs/square.jsx | 28 ++++++-------- client/src/components/svgs/triangle.jsx | 21 +++++----- client/src/components/svgs/trippy.square.jsx | 38 +++++++++++++++++++ .../src/components/svgs/trippy.triangle.jsx | 36 ++++++++++++++++++ 9 files changed, 114 insertions(+), 71 deletions(-) create mode 100644 client/src/components/svgs/trippy.square.jsx create mode 100644 client/src/components/svgs/trippy.triangle.jsx diff --git a/client/assets/styles/instance.css b/client/assets/styles/instance.css index cb58bbce..7340377f 100644 --- a/client/assets/styles/instance.css +++ b/client/assets/styles/instance.css @@ -312,20 +312,6 @@ border: 2px solid #222; } -.equip .highlight { - animation: equip-bg 1s infinite ease-in-out alternate; -} - -@keyframes equip-bg { - 0% { - background-color: black; - } - - 100% { - background-color: #181818; - } -} - .equip .skills button { color: whitesmoke; font-size: 1em; @@ -347,7 +333,7 @@ height: 2px; transform-origin: center; background-color: whitesmoke; - animation: equipping-skill 1s infinite linear alternate; + animation: equipping-skill 2s infinite ease alternate; opacity: 0; } @@ -360,7 +346,7 @@ height: 2px; transform-origin: center; background-color: whitesmoke; - animation: equipping-skill 1s infinite linear alternate; + animation: equipping-skill 2s infinite ease alternate; opacity: 0; animation-delay: 0.75s } diff --git a/client/assets/styles/styles.css b/client/assets/styles/styles.css index a9112f48..34ebe29d 100644 --- a/client/assets/styles/styles.css +++ b/client/assets/styles/styles.css @@ -494,7 +494,7 @@ figure.gray { .stats svg, .specs svg { height: 2em; - stroke-width: 5px; + stroke-width: 7px; fill: none; } diff --git a/client/assets/styles/styles.mobile.css b/client/assets/styles/styles.mobile.css index 0b7715c3..4746019c 100644 --- a/client/assets/styles/styles.mobile.css +++ b/client/assets/styles/styles.mobile.css @@ -1,7 +1,7 @@ @media (max-width: 800px) { #mnml { font-size: 10pt; - padding: 0; + padding: 1em 0 0 0; grid-template-columns: 1fr; grid-template-rows: 1fr min-content; grid-template-areas: @@ -26,7 +26,7 @@ } #mnml.nav-visible nav { - padding-left: 0; + padding: 0.5em; margin: 0; display: block; grid-area: main; diff --git a/client/src/components/svgs/circle.jsx b/client/src/components/svgs/circle.jsx index ce388243..c5a229ed 100644 --- a/client/src/components/svgs/circle.jsx +++ b/client/src/components/svgs/circle.jsx @@ -4,11 +4,9 @@ module.exports = function circle(colours) { if (colours.length === 1) { return ( - - - - - + + + ); } @@ -22,17 +20,13 @@ module.exports = function circle(colours) { - - - - - + + + - - - - - + + + ); }; diff --git a/client/src/components/svgs/diamond.jsx b/client/src/components/svgs/diamond.jsx index 8bdd4f39..736a13af 100644 --- a/client/src/components/svgs/diamond.jsx +++ b/client/src/components/svgs/diamond.jsx @@ -2,15 +2,11 @@ const preact = require('preact'); module.exports = function triangle(classes) { return ( - - - - - - - - + + + + ); }; diff --git a/client/src/components/svgs/square.jsx b/client/src/components/svgs/square.jsx index 0cacc7a2..6565fe80 100644 --- a/client/src/components/svgs/square.jsx +++ b/client/src/components/svgs/square.jsx @@ -4,19 +4,17 @@ module.exports = function square(colours) { if (colours.length === 1) { return ( - - - - - + viewBox="0 0 200 200" > + + + ); } return ( + viewBox="0 0 200 200" > @@ -24,17 +22,13 @@ module.exports = function square(colours) { - - - - - + + + - - - - - + + + ); } diff --git a/client/src/components/svgs/triangle.jsx b/client/src/components/svgs/triangle.jsx index 95d0a468..b76076e8 100644 --- a/client/src/components/svgs/triangle.jsx +++ b/client/src/components/svgs/triangle.jsx @@ -3,12 +3,11 @@ const preact = require('preact'); module.exports = function triangle(colours) { if (colours.length === 1) { return ( - - - - - - + + + + ); } @@ -22,11 +21,11 @@ module.exports = function triangle(colours) { - - - - - + + + + + diff --git a/client/src/components/svgs/trippy.square.jsx b/client/src/components/svgs/trippy.square.jsx new file mode 100644 index 00000000..6680e57b --- /dev/null +++ b/client/src/components/svgs/trippy.square.jsx @@ -0,0 +1,38 @@ +const preact = require('preact'); + +module.exports = function square(colours) { + if (colours.length === 1) { + return ( + + + + + + ); + } + + return ( + + + + + + + + + + + + + + + + + + + + + ); +} diff --git a/client/src/components/svgs/trippy.triangle.jsx b/client/src/components/svgs/trippy.triangle.jsx new file mode 100644 index 00000000..8578f9e1 --- /dev/null +++ b/client/src/components/svgs/trippy.triangle.jsx @@ -0,0 +1,36 @@ +const preact = require('preact'); + +module.exports = function triangle(colours) { + if (colours.length === 1) { + return ( + + + + + + ); + } + + return ( + + + + + + + + + + + + + + + + + + + + + ); +};