Mercurial Hosting > chat
annotate src/chat.css @ 123:50f611bbfa19 default tip
minor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Wed, 10 Dec 2025 20:34:30 -0700 |
| parents | 1ae3613dd090 |
| children |
| rev | line source |
|---|---|
| 37 | 1 body { |
| 2 position: fixed; | |
| 3 top: 0; | |
| 4 bottom: 0; | |
| 5 left: 0; | |
| 6 right: 0; | |
| 7 } | |
| 8 | |
| 48 | 9 div[chat_content] { |
| 10 | 10 display: flex; |
| 37 | 11 height: calc(100% - 32px); |
| 10 | 12 } |
| 13 | |
| 14 div[chats] > div { | |
| 15 margin-top: 2px; | |
| 16 margin-bottom: 2px; | |
| 17 padding-top: 16px; | |
| 18 padding-bottom: 16px; | |
| 19 padding-left: 8px; | |
| 20 padding-right: 8px; | |
| 21 border-radius: 4px; | |
| 11 | 22 cursor: pointer; |
| 10 | 23 } |
| 24 | |
| 25 div[chats] > div:hover, | |
| 26 div[chats] > div[selected] { | |
| 27 background-color: LightBlue; | |
| 28 } | |
| 29 | |
| 30 div[posts] { | |
| 31 width: 100%; | |
| 32 display: flex; | |
| 33 flex-direction: column; | |
| 34 | 34 justify-content: space-between; |
| 10 | 35 } |
| 36 | |
| 60 | 37 div[chat_content][show="intro"] div[posts] { |
| 38 display: none; | |
| 39 } | |
| 40 | |
| 10 | 41 div[posts] > * { |
| 42 padding-right: 3vw; | |
| 43 } | |
| 44 | |
| 45 div[top] { | |
| 46 display: flex; | |
| 47 justify-content: space-between; | |
| 48 align-items: center; | |
| 49 } | |
| 50 | |
| 41 | 51 div[top] h3 a { |
| 52 display: inline-block; | |
| 53 margin-bottom: -5px; | |
| 54 } | |
| 55 div[top] h3 a img { | |
| 56 display: block; | |
| 57 } | |
| 58 | |
| 10 | 59 div[main] { |
| 60 overflow-y: auto; | |
| 61 } | |
| 62 | |
| 122 | 63 div[post] p, |
| 64 div[post] pre, | |
| 65 div[input] p, | |
| 66 div[input] pre { | |
| 67 margin: 0; | |
| 10 | 68 } |
| 69 | |
| 60 | 70 div[intro] { |
| 71 width: 100%; | |
| 56 | 72 display: flex; |
| 73 flex-direction: column; | |
| 74 align-items: center; | |
| 75 } | |
| 76 | |
| 60 | 77 div[intro] form { |
| 78 max-width: 100%; | |
| 79 } | |
| 80 div[intro] input[type=email] { | |
| 56 | 81 width: 250px; |
| 60 | 82 max-width: 100%; |
| 34 | 83 } |
| 84 | |
| 89 | 85 div[up_to] { |
| 75 | 86 font-size: 12px; |
| 87 color: grey; | |
| 88 text-align: right; | |
| 89 } | |
| 90 | |
| 34 | 91 div[who] { |
| 92 display: flex; | |
| 93 justify-content: space-between; | |
| 94 font-size: 12px; | |
| 95 color: grey; | |
| 96 } | |
| 97 | |
| 22 | 98 span[pulldown] { |
| 99 position: relative; | |
| 68 | 100 } |
| 101 | |
| 102 div[who] span[pulldown] { | |
| 35 | 103 width: 16px; |
| 104 display: inline-block; | |
| 36 | 105 vertical-align: middle; |
| 22 | 106 } |
| 107 | |
| 108 span[pulldown] > div { | |
| 109 display: none; | |
| 34 | 110 right: 100%; |
| 22 | 111 z-index: 2; |
| 112 position: absolute; | |
| 113 border: 1px solid #cccccc; | |
| 114 border-radius: 4px; | |
| 115 text-align: left; | |
| 116 background-color: #eeeeee; | |
| 117 padding: 5px 0; | |
| 118 } | |
| 119 | |
| 68 | 120 div[who] span[pulldown] > div { |
| 121 top: 0; | |
| 122 } | |
| 123 | |
| 124 div[top] span[pulldown] > div { | |
| 125 right: 0; | |
| 126 } | |
| 127 | |
| 22 | 128 span[pulldown] > div > span { |
| 129 white-space: nowrap; | |
| 130 display: block; | |
| 74 | 131 padding: 8px 16px; |
| 22 | 132 cursor: pointer; |
| 133 } | |
| 134 | |
| 135 span[pulldown] > div > span:hover { | |
| 136 color: #ffffff; | |
| 137 background-color: #428bca; | |
| 138 } | |
| 139 | |
| 79 | 140 blockquote, |
| 10 | 141 div[text] { |
| 34 | 142 white-space: pre-wrap; |
| 98 | 143 overflow-wrap: break-word; |
| 10 | 144 } |
| 79 | 145 blockquote { |
| 146 margin: 0; | |
| 147 } | |
| 148 div[quote] { | |
| 149 border-left: 1px solid #888888; | |
| 150 padding-left: 8px; | |
| 122 | 151 margin-bottom: 8px; |
| 79 | 152 } |
| 109 | 153 div[reply] a[when], |
|
106
15cf43dd144c
handle reply to deleted
Franklin Schmidt <fschmidt@gmail.com>
parents:
98
diff
changeset
|
154 div[quote] [when], |
|
15cf43dd144c
handle reply to deleted
Franklin Schmidt <fschmidt@gmail.com>
parents:
98
diff
changeset
|
155 div[quote] [deleted] { |
| 79 | 156 font-size: 12px; |
| 157 } | |
| 10 | 158 |
| 159 div[input] { | |
| 160 padding-top: 1em; | |
| 161 padding-bottom: 1em; | |
| 162 display: flex; | |
| 163 gap: 8px; | |
| 164 align-items: flex-end; | |
| 165 } | |
| 166 | |
| 79 | 167 div[input] span[textarea] { |
| 10 | 168 flex-grow: 1; |
| 169 max-height: 150px; | |
| 79 | 170 } |
| 171 | |
| 172 div[input] div[reply] { | |
| 173 border: 1px solid #888888; | |
| 174 padding: 2px; | |
| 175 } | |
| 176 | |
| 177 div[input] div[reply_top] { | |
| 178 display: flex; | |
| 179 justify-content: space-between; | |
| 180 color: #5f6368; | |
| 181 } | |
| 182 | |
| 183 div[input] textarea { | |
| 184 display: block; | |
| 185 width: 100%; | |
| 10 | 186 resize: none; |
| 187 } | |
| 24 | 188 |
| 189 dialog textarea { | |
| 190 width: 600px; | |
| 191 max-width: 80vw; | |
| 192 } | |
| 27 | 193 |
| 33 | 194 span[online] { |
| 195 display: inline-block; | |
| 196 aspect-ratio: 1; | |
| 197 background-color: grey; | |
| 34 | 198 height: 0.6em; |
| 33 | 199 border-radius: 50%; |
| 200 margin-left: 4px; | |
| 201 } | |
| 202 | |
| 72 | 203 span[is_online=true] { |
| 204 background-color: green; | |
| 205 } | |
| 206 | |
| 53 | 207 span[unread] { |
| 208 font-size: small; | |
| 209 display: inline-block; | |
| 210 background-color: DodgerBlue; | |
| 211 color: white; | |
| 212 padding: 2px; | |
| 213 border-radius: calc(1em + 4px); | |
| 214 min-width: calc(1em + 4px); | |
| 215 text-align: center; | |
| 216 line-height: 1; | |
| 217 } | |
| 218 span[unread="0"] { | |
| 219 display: none; | |
| 220 } | |
| 27 | 221 |
| 63 | 222 input[type="file"] { |
| 223 display: none; | |
| 224 } | |
| 225 | |
| 65 | 226 div[people] { |
| 227 margin-bottom: 40px; | |
| 228 } | |
| 229 | |
| 230 div[people] img[phone] { | |
| 231 display: inline-block; | |
| 232 height: 1em; | |
| 233 } | |
| 234 | |
| 83 | 235 dialog[add] input[name=email] { |
| 236 width: 300px; | |
| 237 } | |
| 238 | |
| 239 [error] { | |
| 240 color: red; | |
| 241 } | |
| 242 | |
| 122 | 243 code { |
| 244 background-color: #EEE; | |
| 245 padding: 2px; | |
| 246 } | |
| 247 pre > code { | |
| 248 display: block; | |
| 249 white-space: pre-wrap; | |
| 123 | 250 padding: 1em; |
| 122 | 251 } |
| 252 | |
| 27 | 253 @media (min-width: 700px) { |
| 48 | 254 div[chat_content] { |
| 27 | 255 margin-left: calc(3% - 8px); |
| 256 margin-right: 0; | |
| 257 } | |
| 258 | |
| 60 | 259 div[chat_content][show="chats"] div[intro], |
| 260 div[chat_content][show="posts"] div[intro] { | |
| 261 display: none; | |
| 262 } | |
| 263 | |
| 27 | 264 div[chats] { |
| 60 | 265 overflow-y: auto; |
| 27 | 266 width: 250px; |
| 267 padding-right: 8px; | |
| 268 flex-shrink: 0; | |
| 269 } | |
| 270 | |
| 60 | 271 div[intro], |
| 27 | 272 div[posts] { |
| 273 padding-left: 8px; | |
| 34 | 274 border-left: 1px solid grey; |
| 82 | 275 max-width: calc(100% - 250px); |
| 27 | 276 } |
| 277 | |
| 41 | 278 div[top] img[back] { |
| 27 | 279 display: none; |
| 280 } | |
| 281 } | |
| 282 | |
| 283 @media (max-width: 699px) { | |
| 60 | 284 div[chat_content][show="intro"], |
| 285 div[chat_content][show="chats"] { | |
| 286 flex-direction: column; | |
| 287 overflow-y: auto; | |
| 288 } | |
| 289 div[chat_content][show="posts"] { | |
| 290 margin-left: 3%; | |
| 291 } | |
| 292 | |
| 48 | 293 div[chat_content][show="chats"] div[posts], |
| 60 | 294 div[chat_content][show="posts"] div[intro], |
| 48 | 295 div[chat_content][show="posts"] div[chats] { |
| 27 | 296 display: none; |
| 297 } | |
| 298 | |
| 60 | 299 div[chats], |
| 300 div[intro] { | |
| 301 padding-left: 3%; | |
| 302 padding-right: 3%; | |
| 303 } | |
| 304 | |
| 27 | 305 div[chats] { |
| 306 width: 100%; | |
| 307 } | |
| 308 | |
| 60 | 309 div[intro] { |
| 310 margin-top: 20px; | |
| 311 border-top: 1px solid grey; | |
| 312 } | |
| 313 | |
| 314 div[intro] [or] { | |
| 315 display: none; | |
| 316 } | |
| 317 | |
| 48 | 318 div[chat_content][show="posts"] { |
| 27 | 319 margin-right: 0; |
| 320 } | |
| 321 | |
| 322 div[top] h3 { | |
| 323 display: flex; | |
| 324 gap: 6px; | |
| 325 } | |
| 326 } |
