diff default/static/forum.css @ 117:5992b774a6a4

chat/message, input/avatar: moved avatar template in a dedicated macro.
author Goffi <goffi@goffi.org>
date Tue, 30 Jan 2018 07:47:26 +0100
parents
children 0a0d9a953d98
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/default/static/forum.css	Tue Jan 30 07:47:26 2018 +0100
@@ -0,0 +1,78 @@
+@import 'blog.css'; /* needed as blog/articles.html is included */
+
+#forums {
+    margin: 2em auto 0 auto;
+    width: 90%;
+}
+
+ul.forum {
+    box-sizing: border-box;
+    list-style: none;
+    display: flex;
+    margin: 0 auto;
+}
+
+ul.forum>li {
+    width: 100%;
+}
+
+ul.forum>li>a {
+    border: 0.7rem solid #ddd;
+    border-radius: 0.5em;
+    display: block;
+    padding: 1rem;
+    margin-bottom: 1rem;
+    text-decoration: none;
+    color: inherit;
+}
+
+a.forum_actif:hover {
+    background-color: #43d2f6;
+}
+
+p.forum_short-desc {
+    color: #666;
+    margin: 0;
+    font-size: 0.8em;
+}
+
+#forum_topics {
+    margin-top: 3em;
+}
+
+#forum_topics>div {
+    box-sizing: border-box;
+    width: 80%;
+    margin: 0.5em auto;
+    padding: 0.2em 2em;
+    background: #eee;
+
+}
+
+#forum_topics>:hover {
+    background-color: #43d2f6;
+}
+
+#forum_topics img.avatar {
+    width: 1.5rem;
+    vertical-align: middle;
+    padding-right: 1em;
+}
+
+#forum_topics a {
+    display: block;
+    text-decoration: none;
+    color: inherit;
+}
+
+.textbox input {
+    width: 100%;
+    box-sizing: border-box;
+}
+
+@media (min-width: 500px) {
+    .textbox input {
+        min-width: 26em;
+        width: auto;
+    }
+}