summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-04 14:15:11 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-04 14:15:11 (EDT)
commit25bc3884a67673d83276e6c38e7cd25d8c7a7cbc (patch)
tree1e45f0588af83423f9f7ae8047201ad387d95b7d /src/utils
parent49118c9a5dac0f11d2f34459606df84b3f215284 (diff)
downloadmarquee-25bc3884a67673d83276e6c38e7cd25d8c7a7cbc.zip
marquee-25bc3884a67673d83276e6c38e7cd25d8c7a7cbc.tar.gz
marquee-25bc3884a67673d83276e6c38e7cd25d8c7a7cbc.tar.bz2
src/utils/html.c: Style profile <div>s and children
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/html.c61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/utils/html.c b/src/utils/html.c
index 95f7d11..262be3b 100644
--- a/src/utils/html.c
+++ b/src/utils/html.c
@@ -191,6 +191,67 @@ static const gchar *styles =
"width: calc(100% - 12px);\n"
"height: 400px;\n"
"}\n"
+ "div.profile > svg {\n"
+ "width: 64px;\n"
+ "height: 64px;\n"
+ "}\n"
+ "div.profile > label {\n"
+ "display: inline;\n"
+ "border: 1px solid #9F9F9F;\n"
+ "border-radius: 3px;\n"
+ "background-color: #DFDFDF;\n"
+ "padding: 6px;\n"
+ "color: #000000;\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:hover {\n"
+ "border: 1px solid #4F8FCF;\n"
+ "outline: 0;\n"
+ "background-color: #EFEFEF;\n"
+ "}\n"
+ "div.profile {\n"
+ "background-color: #CFCFCF;\n"
+ "border: 1px solid #9F9F9F;\n"
+ "border-radius: 3px;\n"
+ "}\n"
+ "div.profile > input[type=radio] {\n"
+ "display: none;\n"
+ "}\n"
+ "div.profile > span {\n"
+ "display: inline;\n"
+ "position: absolute;\n"
+ "}\n"
+ "div.profile > input[type=text] {\n"
+ "display: none;\n"
+ "position: absolute;\n"
+ "}\n"
+ "div.profile > label {\n"
+ "display: inline;\n"
+ "}\n"
+ "div.profile > label > span {\n"
+ "margin: 0;\n"
+ "}\n"
+ "div.profile > input[type=submit].save {\n"
+ "display: none;\n"
+ "}\n"
+ "div.profile > input[type=radio]:checked ~ span {\n"
+ "display: none;\n"
+ "}\n"
+ "div.profile > input[type=radio]:checked ~ input[type=text] {\n"
+ "display: inline;\n"
+ "}\n"
+ "div.profile > input[type=radio]:checked ~ label {\n"
+ "display: none;\n"
+ "}\n"
+ "div.profile > input[type=radio]:checked ~ input[type=submit].save {\n"
+ "display: inline;\n"
+ "}\n"
+ "div.profile > label, div.profile > input[type=submit] {\n"
+ "float: right;\n"
+ "}\n"
;
gchar *