From b555c395eb4323ba367cb72717ab6d75ffab48b3 Mon Sep 17 00:00:00 2001 From: narcolepticinsomniac Date: Thu, 9 Mar 2017 07:53:00 -0500 Subject: [PATCH] Edit/delete as buttons with icons The icons I used are from right here on Github. They're SVG, so there should't be reliability issues. Wanted to see how they'd look, and I really kinda like it. Thoughts? --- popup.css | 26 ++++++++++++++++++++++++-- popup.html | 12 ++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/popup.css b/popup.css index c69033d0..a5d6182b 100644 --- a/popup.css +++ b/popup.css @@ -24,7 +24,6 @@ input[type=checkbox] { .style-name { cursor: default; font-weight: bold; - margin-bottom: 2px; display: block; } a, a:visited { @@ -37,6 +36,7 @@ a, a:visited { vertical-align: top; } .left-gutter input { + margin-bottom: 1px; margin-top: 0; margin-left: 0; } @@ -66,7 +66,29 @@ body.blocked > DIV { text-decoration: line-through; } #installed .actions a { - margin-right: 0.2em; + text-decoration: none; +} +#installed .style-edit-link, #installed .delete { + height: 22px; + width: 22px; + -webkit-appearance: button; + display: inline-flex; + align-items: center; + justify-content: center; +} +.svg-icon { + width: 16px; + height: 16px; + pointer-events: none; +} +.svg-icon path, +.svg-icon polygon, +.svg-icon rect { + fill: hsl(0, 0%, 20%); +} +.svg-icon circle { + stroke: hsl(0, 0%, 20%); + stroke-width: 1; } body > .actions { margin-top: 0.5em; diff --git a/popup.html b/popup.html index 639f63ff..30e3ddde 100644 --- a/popup.html +++ b/popup.html @@ -14,8 +14,16 @@
- - + + + + + + + + + +