]> git.plutz.net Git - httpchat/blobdiff - webchat.css
split up in multiple files
[httpchat] / webchat.css
diff --git a/webchat.css b/webchat.css
new file mode 100644 (file)
index 0000000..4f36157
--- /dev/null
@@ -0,0 +1,102 @@
+* {
+  box-sizing: border-box;
+  background-color: #FFF;
+  color: #000;
+  font: normal normal normal medium/1.25 Sans-Serif;
+  font: normal normal normal normal medium/1.25 Sans-Serif;
+  text-decoration: none;
+  margin: 0; padding: 0;
+  border: none;
+}
+
+#chat {
+  position: fixed;
+  bottom: 2.5em;
+  left: 0; right: 0;
+  border: 1px solid #08b;
+  padding: 1ex;
+  margin: .5ex;
+  z-index: -1;
+}
+form#channel {
+  position: fixed;
+  bottom: 0;
+  left: 0; right: 0;
+}
+
+#check_settings { display: none; }
+#check_settings + label {
+  display: inline-block;
+}
+#check_settings + label:before {
+  content: '\2699';
+  padding: .5ex;
+  margin-left: .5ex;
+  margin-right: 2em;
+}
+#check_settings + label + #settings { display: none; }
+#check_settings:checked + label + #settings {
+  display: block;
+  position: fixed;
+  min-width: 20%; max-width: 90%;
+  width: 30em;
+  top: 3em;
+  left: 50%; transform: translate(-50%);
+  background-color: #FFF;
+  border: 1px solid;
+  border-radius: 1ex 1ex .5ex .5ex;
+}
+#settings h1 {
+  background-color: #08b;
+  margin: 0;
+  padding: 0 1ex;
+  font-size: 1em;
+  font-weight: bold;
+  border-bottom: 1px solid;
+  border-radius: 1ex 1ex 0 0;
+}
+#settings label[for=check_settings] {
+  position: absolute;
+  top: 0; right: 1px;
+  background-color: #F88;
+  border-left: 1px solid;
+  border-radius: 0 1ex 0 0;
+  width: 3ex;
+  overflow: hidden;
+}
+#settings label[for=check_settings]:before {
+  content: "x";
+  padding: 0 1ex;
+}
+#settings input[type=radio] { display: none; }
+#settings input[type=radio] + label + * { display: none; }
+#settings input[type=radio]:checked + label + * { display: block; }
+#settings input[type=radio] + label {
+  display: block;
+  font-weight: bold;
+  text-decoration: underline;
+  margin: -1px 1px; padding: 0 1ex;
+  border-top: 1px solid;
+  background-color: #EEE;
+}
+#settings input[type=radio] + label + * {
+  padding: 1ex 1ex .5ex 1ex;
+}
+
+form#channel input[name=message] {
+  display: inline-block;
+  position: absolute;
+  left: 4.5ex;
+  width: calc(100% - 5ex - 1px);
+}
+form#channel button[value=submit] { display: none; }
+#chat .message .date {
+  color: #888;
+  font-size: .75em;
+}
+#chat .message .nick {
+  font-weight: bold;
+}
+#chat .message .nick .indicator {
+  color: #888;
+}