From 4f57dff1e62f0ab781d67e7c2c6797a391a4411f Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 1 Apr 2016 14:46:04 -0700 Subject: [PATCH] Use svg for paperclip icon // FREEBIE --- images/paperclip.png | Bin 531 -> 0 bytes images/paperclip.svg | 1 + stylesheets/_global.scss | 11 +++++++++-- stylesheets/manifest.css | 13 ++++++++++--- 4 files changed, 20 insertions(+), 5 deletions(-) delete mode 100644 images/paperclip.png create mode 100644 images/paperclip.svg diff --git a/images/paperclip.png b/images/paperclip.png deleted file mode 100644 index 7777bfda2f17d81575c5a6f1cf7ee84478405c08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 531 zcmV+u0_^>XP)tztD-|p?kWNUEA|O_lDk3O|s30iF5D`sFH4{ge4(mtR@MHFq5o=1HnbL40)7kUa0rsXG=3-f*lGp?;Ab(LIn{Zz^~)t0QgDV!+4UnJp~#!jNu(F zC7G+L?f8isNzM;|zf3aOw?&N`jy3zaMsQmbe$@uv>zo?uYR^0-lZ7NL8r4i@>;|Dxo8o)FqUMoD|QCA+roRz z0Jh*$GvLQ~iuKL;KaPbYQ*Ge=z5q627N?p$e8aUQciO^RU5iz \ No newline at end of file diff --git a/stylesheets/_global.scss b/stylesheets/_global.scss index fafa871a..fdfd76b6 100644 --- a/stylesheets/_global.scss +++ b/stylesheets/_global.scss @@ -143,12 +143,19 @@ button.back { position: relative; .choose-file { cursor: pointer; + padding-left: 10px; } .paperclip { - width: 36px; + width: $button-height; height: 100%; - background: url('/images/paperclip.png') no-repeat center center; + @include color-svg('/images/paperclip.svg', $grey); + opacity: 0.5; + transform: rotateZ(-45deg); + + &:hover { + opacity: 1.0; + } } input[type=file] { diff --git a/stylesheets/manifest.css b/stylesheets/manifest.css index c5fbd36a..a3d8349f 100644 --- a/stylesheets/manifest.css +++ b/stylesheets/manifest.css @@ -150,11 +150,18 @@ button.back { .file-input { position: relative; } .file-input .choose-file { - cursor: pointer; } + cursor: pointer; + padding-left: 10px; } .file-input .paperclip { - width: 36px; + width: 24px; height: 100%; - background: url("/images/paperclip.png") no-repeat center center; } + -webkit-mask: url("/images/paperclip.svg") no-repeat center; + -webkit-mask-size: 100%; + background-color: #616161; + opacity: 0.5; + transform: rotateZ(-45deg); } + .file-input .paperclip:hover { + opacity: 1.0; } .file-input input[type=file] { display: none; position: absolute;