summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-05 05:25:30 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-05 05:25:30 (EST)
commitdb3710a0119896f235b90020d117b9949bc77f9f (patch)
tree580db2c4bccabd4444c1c1a914f3d1bf4e72972e
parent765ece05ef2669d06015560be2acb319bcc96aa0 (diff)
downloadmarquee-db3710a0119896f235b90020d117b9949bc77f9f.zip
marquee-db3710a0119896f235b90020d117b9949bc77f9f.tar.gz
marquee-db3710a0119896f235b90020d117b9949bc77f9f.tar.bz2
src/utils/html.c: Add border and background to <svg> when editing
-rw-r--r--src/utils/html.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/utils/html.c b/src/utils/html.c
index 35e6e65..c0c8689 100644
--- a/src/utils/html.c
+++ b/src/utils/html.c
@@ -194,6 +194,13 @@ static const gchar *styles =
"div.profile > svg {\n"
"width: 64px;\n"
"height: 64px;\n"
+ "border: 1px solid transparent;\n"
+ "border-radius: 3px;\n"
+ "padding: 6px;\n"
+ "transition: all 250ms ease-in-out 0s;\n"
+ "-moz-transition: all 250ms ease-in-out 0s;\n"
+ "-wekbit-transition: all 250ms ease-in-out 0s;\n"
+ "-o-transition: all 250ms ease-in-out 0s;\n"
"}\n"
"div.profile > label {\n"
"display: inline;\n"
@@ -237,6 +244,14 @@ static const gchar *styles =
"div.profile > input[type=submit]:last-child {\n"
"display: none;\n"
"}\n"
+ "div.profile > input[type=radio]:checked ~ svg {\n"
+ "border-color: #9F9F9F;\n"
+ "background-color: #DFDFDF;\n"
+ "}\n"
+ "div.profile > input[type=radio]:checked ~ svg:hover {\n"
+ "border-color: #4F8FCF;\n"
+ "background-color: #EFEFEF;\n"
+ "}\n"
"div.profile > input[type=radio]:checked ~ span {\n"
"display: none;\n"
"}\n"