From 8081f3a483f7078c42853c0b7f302b181f9afa9a Mon Sep 17 00:00:00 2001 From: sessionm21 Date: Sat, 2 Jun 2018 21:07:38 -0700 Subject: [PATCH] using svg images --- public/css/main.css | 31 +++++++++++---------- public/svg/black.svg | 59 +++++++++++++++++++++++++++++++++++++++ public/svg/circle.svg | 58 +++++++++++++++++++++++++++++++++++++++ public/svg/cross.svg | 64 +++++++++++++++++++++++++++++++++++++++++++ public/svg/white.svg | 59 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 257 insertions(+), 14 deletions(-) create mode 100644 public/svg/black.svg create mode 100644 public/svg/circle.svg create mode 100644 public/svg/cross.svg create mode 100644 public/svg/white.svg diff --git a/public/css/main.css b/public/css/main.css index 63fe325..16654ce 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -23,36 +23,39 @@ body { border-radius: 10px; } .black-player .overlay:hover { - background-color: black; } + background-image: url("../svg/black.svg"); } .white-player .overlay:hover { - background-color: white; } + background-image: url("../svg/white.svg"); } .board-cell { display: inline-block; position: relative; - padding: 5.55556%; } + background-image: url("../svg/cross.svg"); + background-size: 100%; + padding: 5.5555555556%; } .board-cell .overlay { position: absolute; box-sizing: border-box; - top: 10%; - left: 10%; - width: 80%; - height: 80%; - border-radius: 50%; - transition: background-color .25s; } + top: 0%; + left: 0%; + width: 100%; + height: 100%; + background-image: url("../svg/cross.svg"); + transition: background-image .25s; + background-size: 100%; } .board-cell.small { - padding: 5.55556%; } + padding: 5.5555555556%; } .board-cell.medium { - padding: 3.84615%; } + padding: 3.8461538462%; } .board-cell.large { - padding: 2.63158%; } + padding: 2.6315789474%; } .black-cell .overlay { - background-color: black; } + background-image: url("../svg/black.svg"); } .white-cell .overlay { - background-color: white; } + background-image: url("../svg/white.svg"); } .split-wrapper { display: flex; diff --git a/public/svg/black.svg b/public/svg/black.svg new file mode 100644 index 0000000..6579684 --- /dev/null +++ b/public/svg/black.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/public/svg/circle.svg b/public/svg/circle.svg new file mode 100644 index 0000000..bc301dc --- /dev/null +++ b/public/svg/circle.svg @@ -0,0 +1,58 @@ + + + + + + image/svg+xml + + + + + + + + diff --git a/public/svg/cross.svg b/public/svg/cross.svg new file mode 100644 index 0000000..6b36ac4 --- /dev/null +++ b/public/svg/cross.svg @@ -0,0 +1,64 @@ + + + + + + image/svg+xml + + + + + + + + + + diff --git a/public/svg/white.svg b/public/svg/white.svg new file mode 100644 index 0000000..1aae189 --- /dev/null +++ b/public/svg/white.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + +