| 1 |
:root { |
| 2 |
--selected-item-bg: deepskyblue; |
| 3 |
|
| 4 |
--reaction-background: #ffffff; |
| 5 |
--reaction-hover-background: #f5f5f5; |
| 6 |
--reaction-border: #dbdbdb; |
| 7 |
|
| 8 |
|
| 9 |
--reaction-user-background: #eef6fc; |
| 10 |
--reaction-user-hover-background: #e3f1fc; |
| 11 |
--reaction-user-border: #3273dc; |
| 12 |
|
| 13 |
|
| 14 |
--reaction-padding: 0.25rem 0.5rem; |
| 15 |
--reaction-gap: 0.5rem; |
| 16 |
--reaction-margin-top: 0.5rem; |
| 17 |
|
| 18 |
|
| 19 |
--reaction-font-size: 0.875rem; |
| 20 |
--reaction-counter-font-size: 0.75rem; |
| 21 |
} |
| 22 |
|
| 23 |
[data-theme="dark"] { |
| 24 |
--reaction-background: #2c2c2c; |
| 25 |
--reaction-hover-background: #404040; |
| 26 |
--reaction-border: #4a4a4a; |
| 27 |
|
| 28 |
--reaction-user-background: #1a3b5c; |
| 29 |
--reaction-user-hover-background: #234875; |
| 30 |
--reaction-user-border: #3273dc; |
| 31 |
} |
| 32 |
|
| 33 |
html, body { |
| 34 |
|
| 35 |
height: 100vh; |
| 36 |
overflow: hidden; |
| 37 |
} |
| 38 |
|
| 39 |
body { |
| 40 |
display: flex; |
| 41 |
flex-direction: column; |
| 42 |
} |
| 43 |
|
| 44 |
#body { |
| 45 |
display: flex; |
| 46 |
flex-direction: column; |
| 47 |
overflow: auto; |
| 48 |
} |
| 49 |
|
| 50 |
.is-full-height { |
| 51 |
height: 100%; |
| 52 |
} |
| 53 |
|
| 54 |
.is-full-width { |
| 55 |
width: 100%; |
| 56 |
} |
| 57 |
|
| 58 |
.navbar-item { |
| 59 |
gap: 0; |
| 60 |
} |
| 61 |
|
| 62 |
|
| 63 |
.menu-item { |
| 64 |
padding-top: 0.225em; |
| 65 |
} |
| 66 |
|
| 67 |
|
| 68 |
.is-text-content { |
| 69 |
white-space: break-spaces; |
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
.avatar { |
| 74 |
width: 40px; |
| 75 |
height: 40px; |
| 76 |
border-radius: 50%; |
| 77 |
background-color: #3273dc; |
| 78 |
color: #fff; |
| 79 |
} |
| 80 |
|
| 81 |
.avatar.image { |
| 82 |
background-color: #ccc; |
| 83 |
padding: 3px; |
| 84 |
} |
| 85 |
|
| 86 |
div.jid-search-dialog { |
| 87 |
min-height: 80%; |
| 88 |
} |
| 89 |
|
| 90 |
div.search-item.is-selected { |
| 91 |
background-color: var(--selected-item-bg); |
| 92 |
} |
| 93 |
|
| 94 |
.collapsible-content { |
| 95 |
overflow: hidden; |
| 96 |
max-height: 0; |
| 97 |
opacity: 1; |
| 98 |
transition: |
| 99 |
max-height 0.3s ease-out, |
| 100 |
opacity 0.2s linear; |
| 101 |
} |
| 102 |
|
| 103 |
.collapsible-header.collapsed .collapsible-icon { |
| 104 |
transform: rotate(-90deg); |
| 105 |
} |
| 106 |
|
| 107 |
|
| 108 |
.collapsible-header.collapsed + .collapsible-content { |
| 109 |
opacity: 0; |
| 110 |
} |
| 111 |
|
| 112 |
.collapsible-icon { |
| 113 |
transition: transform 0.2s ease-out; |
| 114 |
} |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
.modal-panel-header { |
| 119 |
border-bottom: 1px solid #dbdbdb; |
| 120 |
padding: 0.5rem 1rem; |
| 121 |
} |
| 122 |
|
| 123 |
|
| 124 |
#left_panel li:hover { |
| 125 |
background-color: #444; |
| 126 |
} |
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
.modal-dialog { |
| 132 |
transform: scaleY(0); |
| 133 |
} |
| 134 |
|
| 135 |
div.state_appended .modal-dialog, div.main_notification.state_appended { |
| 136 |
transform: scaleY(1); |
| 137 |
transition: transform 0.15s ease-in; |
| 138 |
} |
| 139 |
|
| 140 |
.main_notification { |
| 141 |
position: fixed; |
| 142 |
top: 2rem; |
| 143 |
left: 0; |
| 144 |
right: 0; |
| 145 |
z-index: 10000; |
| 146 |
transform: scaleY(0); |
| 147 |
transition: transform 0.15s ease-in; |
| 148 |
} |
| 149 |
|
| 150 |
div.main_notification>div.column { |
| 151 |
display: flex; |
| 152 |
max-width: 95%; |
| 153 |
} |
| 154 |
div.main_notification>div.column>div.notification { |
| 155 |
max-width: 80rem; |
| 156 |
} |
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
.left-sidebar, .right-sidebar { |
| 161 |
transition: transform 0.3s ease, max-width 0.3s ease, opacity 0.3s ease; |
| 162 |
overflow-x: hidden; |
| 163 |
} |
| 164 |
|
| 165 |
.left-sidebar.is-collapsed { |
| 166 |
transform: translateX(-100%); |
| 167 |
max-width: 0; |
| 168 |
padding: 0; |
| 169 |
margin: 0; |
| 170 |
opacity: 0; |
| 171 |
} |
| 172 |
|
| 173 |
.right-sidebar.is-collapsed { |
| 174 |
transform: translateX(100%); |
| 175 |
max-width: 0; |
| 176 |
padding: 0; |
| 177 |
margin: 0; |
| 178 |
opacity: 0; |
| 179 |
} |
| 180 |
|
| 181 |
.main-panel.is-expanded-left { |
| 182 |
margin-left: 0; |
| 183 |
} |
| 184 |
|
| 185 |
.main-panel.is-expanded-right { |
| 186 |
margin-right: 0; |
| 187 |
} |
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
.reactions-container { |
| 192 |
gap: var(--reaction-gap); |
| 193 |
margin-top: var(--reaction-margin-top); |
| 194 |
} |
| 195 |
.reaction { |
| 196 |
padding: var(--reaction-padding); |
| 197 |
border-radius: 1rem; |
| 198 |
background-color: var(--reaction-background); |
| 199 |
font-size: var(--reaction-font-size); |
| 200 |
cursor: pointer; |
| 201 |
transition: all 0.2s ease; |
| 202 |
border: 1px solid var(--reaction-border); |
| 203 |
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); |
| 204 |
} |
| 205 |
|
| 206 |
.reaction:hover { |
| 207 |
background-color: var(--reaction-hover-background); |
| 208 |
} |
| 209 |
|
| 210 |
.reaction .counter { |
| 211 |
margin-left: 0.25rem; |
| 212 |
font-size: var(--reaction-counter-font-size); |
| 213 |
color: var(--color-text); |
| 214 |
} |
| 215 |
|
| 216 |
.reaction.own-reaction { |
| 217 |
background-color: var(--reaction-user-background); |
| 218 |
border-color: var(--reaction-user-border); |
| 219 |
} |
| 220 |
|
| 221 |
.reaction.own-reaction:hover { |
| 222 |
background-color: var(--reaction-user-hover-background); |
| 223 |
} |
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
.modal-panel { |
| 228 |
position: fixed; |
| 229 |
top: 0; |
| 230 |
left: 0; |
| 231 |
width: 100%; |
| 232 |
height: 100%; |
| 233 |
z-index: 100; |
| 234 |
display: flex; |
| 235 |
pointer-events: none; |
| 236 |
} |
| 237 |
|
| 238 |
.modal-panel-background { |
| 239 |
position: absolute; |
| 240 |
top: 0; |
| 241 |
left: 0; |
| 242 |
width: 100%; |
| 243 |
height: 100%; |
| 244 |
background-color: hsla(221,14%,4%,0.86); |
| 245 |
opacity: 0; |
| 246 |
transition: opacity 0.3s ease; |
| 247 |
pointer-events: all; |
| 248 |
} |
| 249 |
|
| 250 |
.modal-panel-container { |
| 251 |
position: absolute; |
| 252 |
background: white; |
| 253 |
box-shadow: -2px 0 10px rgba(0,0,0,0.1); |
| 254 |
overflow-y: auto; |
| 255 |
transition: transform 0.3s ease-out; |
| 256 |
will-change: transform; |
| 257 |
pointer-events: all; |
| 258 |
} |
| 259 |
|
| 260 |
|
| 261 |
.modal-panel-container.is-right { |
| 262 |
top: 0; |
| 263 |
right: 0; |
| 264 |
height: 100vh; |
| 265 |
transform: translateX(100%); |
| 266 |
border-left: 1px solid #eee; |
| 267 |
} |
| 268 |
|
| 269 |
.modal-panel-container.is-left { |
| 270 |
top: 0; |
| 271 |
left: 0; |
| 272 |
height: 100vh; |
| 273 |
transform: translateX(-100%); |
| 274 |
border-right: 1px solid #eee; |
| 275 |
} |
| 276 |
|
| 277 |
.modal-panel-container.is-top { |
| 278 |
top: 0; |
| 279 |
left: 0; |
| 280 |
right: 0; |
| 281 |
transform: translateY(-100%); |
| 282 |
border-bottom: 1px solid #eee; |
| 283 |
} |
| 284 |
|
| 285 |
.modal-panel-container.is-bottom { |
| 286 |
bottom: 0; |
| 287 |
left: 0; |
| 288 |
right: 0; |
| 289 |
transform: translateY(100%); |
| 290 |
border-top: 1px solid #eee; |
| 291 |
} |
| 292 |
|
| 293 |
|
| 294 |
.modal-panel.is-active .modal-panel-background { |
| 295 |
opacity: 1; |
| 296 |
} |
| 297 |
|
| 298 |
.modal-panel.is-active .modal-panel-container { |
| 299 |
transform: none !important; |
| 300 |
} |
| 301 |
|
| 302 |
|
| 303 |
.modal-panel.closing .modal-panel-background { |
| 304 |
opacity: 0; |
| 305 |
} |
| 306 |
|
| 307 |
.modal-panel.closing .modal-panel-container.is-right { |
| 308 |
transform: translateX(100%) !important; |
| 309 |
} |
| 310 |
|
| 311 |
.modal-panel.closing .modal-panel-container.is-left { |
| 312 |
transform: translateX(-100%) !important; |
| 313 |
} |
| 314 |
|
| 315 |
.modal-panel.closing .modal-panel-container.is-top { |
| 316 |
transform: translateY(-100%) !important; |
| 317 |
} |
| 318 |
|
| 319 |
.modal-panel.closing .modal-panel-container.is-bottom { |
| 320 |
transform: translateY(100%) !important; |
| 321 |
} |
| 322 |
|
| 323 |
.thumbnail-image { |
| 324 |
max-height: 100%; |
| 325 |
} |
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
.tag_input { |
| 330 |
display: inline-block; |
| 331 |
width: 6rem; |
| 332 |
} |
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
.attachments { |
| 337 |
opacity: 1; |
| 338 |
max-height: 1000px; |
| 339 |
transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out, padding 0.5s ease-in-out, margin 0.5s ease-in-out; |
| 340 |
overflow-x: auto; |
| 341 |
overflow-y: hidden; |
| 342 |
padding: 1.25rem 0; |
| 343 |
margin: 0; |
| 344 |
white-space: nowrap; |
| 345 |
} |
| 346 |
|
| 347 |
.attachments.is-contracted { |
| 348 |
opacity: 0; |
| 349 |
max-height: 0; |
| 350 |
padding: 0; |
| 351 |
} |
| 352 |
|
| 353 |
.attachment-preview { |
| 354 |
position: relative; |
| 355 |
border: 1px solid #dbdbdb; |
| 356 |
padding: 0.3rem 0.5rem; |
| 357 |
border-radius: 4px; |
| 358 |
background-color: #f5f5f5; |
| 359 |
margin: 0 1rem 0 0 !important; |
| 360 |
width: 9rem; |
| 361 |
} |
| 362 |
|
| 363 |
.progress_finished progress { |
| 364 |
opacity: 0; |
| 365 |
} |
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
@media screen and (max-width: 768px) { |
| 371 |
.modal-panel-container { |
| 372 |
width: 90% !important; |
| 373 |
} |
| 374 |
} |
| 375 |
|
| 376 |
@media screen and (min-width: 769px) { |
| 377 |
.modal-panel-container.is-right, |
| 378 |
.modal-panel-container.is-left { |
| 379 |
width: 50rem; |
| 380 |
} |
| 381 |
|
| 382 |
.modal-panel-container.is-top, |
| 383 |
.modal-panel-container.is-bottom { |
| 384 |
height: 80vh; |
| 385 |
} |
| 386 |
} |