From 25bc3884a67673d83276e6c38e7cd25d8c7a7cbc Mon Sep 17 00:00:00 2001
From: Patrick McDermott <pj@pehjota.net>
Date: Sat, 04 Nov 2017 14:15:11 -0400
Subject: src/utils/html.c: Style profile <div>s and children

---
(limited to 'src')

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 *
--
cgit v0.9.1