annotate src/chat.css @ 24:af41be2dcdec

add edit_post
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 05 Nov 2024 19:45:08 -0700
parents 949914955bfe
children 809193524522
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 div[content] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 margin-bottom: 0;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 display: flex;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 height: calc(100vh - 32px);
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 margin-left: calc(3% - 8px);
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 margin-right: 0;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 div[chats] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 width: 250px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 padding-right: 8px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 flex-shrink: 0;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 overflow-y: auto;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 div[chats] > div {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 margin-top: 2px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 margin-bottom: 2px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 padding-top: 16px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 padding-bottom: 16px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 padding-left: 8px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 padding-right: 8px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 border-radius: 4px;
11
563a5358f2ee add delete_chat
Franklin Schmidt <fschmidt@gmail.com>
parents: 10
diff changeset
24 cursor: pointer;
10
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 div[chats] > div:hover,
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 div[chats] > div[selected] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 background-color: LightBlue;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
31
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
32 div[posts] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
33 padding-left: 8px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
34 border-left: 1px solid;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
35 width: 100%;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
36 display: flex;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
37 flex-direction: column;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
38 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
39
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
40 div[posts] > * {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
41 padding-right: 3vw;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
42 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
43
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
44 div[top] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
45 display: flex;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
46 justify-content: space-between;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
47 align-items: center;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
48 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
49
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
50 div[main] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
51 overflow-y: auto;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
52 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
53
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
54 div[post] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
55 margin-top: 16px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
56 margin-bottom: 16px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
57 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
58
22
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
59 span[pulldown] {
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
60 position: relative;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
61 }
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
62
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
63 span[pulldown] > div {
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
64 display: none;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
65 top: 0;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
66 left: 100%;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
67 z-index: 2;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
68 position: absolute;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
69 border: 1px solid #cccccc;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
70 border-radius: 4px;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
71 text-align: left;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
72 background-color: #eeeeee;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
73 padding: 5px 0;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
74 }
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
75
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
76 span[pulldown] > div > span {
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
77 white-space: nowrap;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
78 display: block;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
79 padding: 3px 16px;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
80 xcolor: #333333;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
81 cursor: pointer;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
82 }
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
83
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
84 span[pulldown] > div > span:hover {
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
85 color: #ffffff;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
86 background-color: #428bca;
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
87 }
949914955bfe add menu
Franklin Schmidt <fschmidt@gmail.com>
parents: 11
diff changeset
88
10
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
89 div[text] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
90 white-space-collapse: preserve;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
91 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
92
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
93 div[input] {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
94 padding-top: 1em;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
95 padding-bottom: 1em;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
96 display: flex;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
97 gap: 8px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
98 align-items: flex-end;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
99 }
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
100
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
101 div[input] textarea {
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
102 flex-grow: 1;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
103 max-height: 150px;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
104 resize: none;
f9e6a4cc4f7d add Post
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
105 }
24
af41be2dcdec add edit_post
Franklin Schmidt <fschmidt@gmail.com>
parents: 22
diff changeset
106
af41be2dcdec add edit_post
Franklin Schmidt <fschmidt@gmail.com>
parents: 22
diff changeset
107 dialog textarea {
af41be2dcdec add edit_post
Franklin Schmidt <fschmidt@gmail.com>
parents: 22
diff changeset
108 width: 600px;
af41be2dcdec add edit_post
Franklin Schmidt <fschmidt@gmail.com>
parents: 22
diff changeset
109 max-width: 80vw;
af41be2dcdec add edit_post
Franklin Schmidt <fschmidt@gmail.com>
parents: 22
diff changeset
110 }