aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-07 14:28:06 +0200
committersD <stoned@derpymail.org>2020-04-07 14:28:06 +0200
commite314857be9058f811489cff5d6976bf15ee5238a (patch)
tree7497f3299cafcc891c7bd97e077858300192faae
parent1cf3f105bb62ff7a18a828fb57b2bce92c8812e5 (diff)
add triology chatbox here
-rw-r--r--webAO/styles/chatbox/chatwaiting_triology.svg1
-rw-r--r--webAO/styles/chatbox/triology.css139
2 files changed, 140 insertions, 0 deletions
diff --git a/webAO/styles/chatbox/chatwaiting_triology.svg b/webAO/styles/chatbox/chatwaiting_triology.svg
new file mode 100644
index 0000000..6ce23eb
--- /dev/null
+++ b/webAO/styles/chatbox/chatwaiting_triology.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 15.9 15.9"><defs/><g fill="#ffd660" stroke="#b58a18" stroke-linecap="round" stroke-linejoin="round" stroke-width=".3"><path d="M.1.1H4L9.3 8 4 15.7H0L5.3 8z"/><path d="M6.6.1h4L15.7 8l-5.1 7.8h-4L12 8z"/></g></svg> \ No newline at end of file
diff --git a/webAO/styles/chatbox/triology.css b/webAO/styles/chatbox/triology.css
new file mode 100644
index 0000000..739156f
--- /dev/null
+++ b/webAO/styles/chatbox/triology.css
@@ -0,0 +1,139 @@
+.text_white {
+ color: #fff;
+}
+
+.text_green {
+ color: #00c900;
+}
+
+.text_red {
+ color: #ff1700;
+}
+
+.text_orange {
+ color: #ffa500;
+}
+
+.text_blue {
+ color: #67b7ed;
+}
+
+.text_yellow {
+ color: #ff0;
+}
+
+.text_pink {
+ color: #ffc0cb;
+}
+
+.text_cyan {
+ color: #0ff;
+}
+
+.text_rainbow {
+ background-color: #fff;
+ background-image: repeating-linear-gradient(to right,
+ red 0% 8%, orange 8% 16%, yellow 16% 24%, green 24% 32%, blue 32% 40%,
+ red 40% 48%, orange 48% 56%, yellow 56% 64%, green 64% 72%, blue 72% 80%,
+ red 80% 88%, orange 88% 96%, yellow 96% 100%);
+ background-size: 40% 40%;
+ background-clip: text;
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ animation: rainbow 4s linear infinite;
+}
+
+@keyframes rainbow_alt {
+
+ 0%,
+ 100% {
+ background-position: 0 0;
+ }
+
+ 50% {
+ background-position: 400% 0;
+ }
+}
+
+@keyframes rainbow {
+ 0% {
+ background-position: 0 0;
+ }
+
+ 100% {
+ background-position: 400% 0;
+ }
+}
+
+#client_chatcontainer {
+ position: absolute;
+ top: 65%;
+ height: 30%;
+ width: 100%;
+ font-family: serif;
+}
+
+#client_name {
+ display: none;
+ background-color: #2989bd;
+ top: 0;
+ left: 10%;
+ padding: 0 10px;
+ height: 20%;
+ min-width: 15%;
+ border: 1px white;
+ border-style: solid none solid none;
+ position: absolute;
+ z-index: 1;
+}
+
+#client_chat {
+ font-size: 1em;
+ display: none;
+ width: 100%;
+ margin: auto;
+ height: 90%;
+ top: 10%;
+ position: absolute;
+ word-break: keep-all;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
+ text-align: left;
+ overflow: hidden;
+ scroll-behavior: smooth;
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAL0lEQVQImWOQ98nYzGsVupnXKnSzvE8GCmaASWBTgF8S3VhkNgOySnRTiJdENxYAYC1Ff2vnYrkAAAAASUVORK5CYII=) repeat;
+ border: 1px white;
+ border-style: solid none solid none;
+}
+
+#client_chat p {
+ margin: 4px;
+ padding: 2% 5%;
+}
+
+#client_chatwaiting {
+ display: block;
+ color: transparent;
+ right: 0.6em;
+ bottom: 0.6em;
+ width: 1em;
+ height: 1em;
+ background-image: url("chatwaiting_triology.svg");
+ background-size: contain;
+ position: absolute;
+ animation: idling 0.5s ease infinite;
+}
+
+@keyframes idling {
+ 0% {
+ right: 0.6em;
+ }
+
+ 25% {
+ right: 0.7em;
+ }
+
+ 100% {
+ right: 0.6em;
+ }
+} \ No newline at end of file