main.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html {
  6. color: #FFF;
  7. background-color: #111;
  8. }
  9. body {
  10. display: flex;
  11. width: 100%;
  12. height: 100dvh;
  13. }
  14. .hs {
  15. display: block;
  16. box-sizing: border-box;
  17. width: 100%;
  18. height: 16px;
  19. }
  20. .vs {
  21. display: block;
  22. box-sizing: border-box;
  23. width: 16px;
  24. height: 100%;
  25. }
  26. .container {
  27. display: flex;
  28. flex-direction: column;
  29. justify-items: stretch;
  30. width: 300px;
  31. margin: auto auto;
  32. }
  33. .error-container {
  34. display: flex;
  35. flex-direction: column;
  36. width: 100%;
  37. margin: 16px;
  38. }
  39. .hero-logo {
  40. display: block;
  41. box-sizing: border-box;
  42. margin: 0 auto;
  43. width: 66%;
  44. height: 66%;
  45. }
  46. .hero-label {
  47. display: block;
  48. width: 100%;
  49. text-align: center;
  50. font-size: 24pt;
  51. font-weight: 700;
  52. }
  53. .auth-logo {
  54. display: block;
  55. box-sizing: border-box;
  56. margin: 0 auto;
  57. width: 50%;
  58. height: 50%;
  59. }
  60. .auth-label {
  61. display: block;
  62. width: 100%;
  63. text-align: center;
  64. font-size: 20pt;
  65. font-weight: 700;
  66. }
  67. .button {
  68. display: block;
  69. width: 100%;
  70. aspect-ratio: 4 / 1;
  71. border: none;
  72. border-radius: 4px;
  73. color: #FFF;
  74. background-color: #50A0F0;
  75. font-size: 16pt;
  76. font-weight: 700;
  77. cursor: pointer;
  78. }
  79. .button:focus {
  80. color: #EEE;
  81. background-color: #4595E5;
  82. outline-color: #70C0F0;
  83. outline-width: 2px;
  84. }
  85. .button:hover {
  86. color: #EEE;
  87. background-color: #4595E5;
  88. }
  89. .button:active {
  90. color: #CCC;
  91. background-color: #3585D5;
  92. }
  93. .auth-input {
  94. aspect-ratio: 4 / 1;
  95. }
  96. .text-input {
  97. display: block;
  98. box-sizing: border-box;
  99. padding-left: 8px;
  100. margin: auto;
  101. width: 100%;
  102. border: none;
  103. border-radius: 4px;
  104. background-color: #FFF;
  105. font-size: 16pt;
  106. font-weight: 700;
  107. }
  108. .text-input::placeholder {
  109. color: #777;
  110. }
  111. .text-input:focus {
  112. background-color: #FFF;
  113. outline-color: #70C0F0;
  114. outline-width: 2px;
  115. }
  116. .chats-container {
  117. display: flex;
  118. flex-direction: column;
  119. width: 100%;
  120. height: 100%;
  121. }
  122. .chat-header {
  123. display: flex;
  124. flex-direction: row;
  125. align-items: center;
  126. width: 100%;
  127. height: 64px;
  128. background-color: #222;
  129. }
  130. .chat-list {
  131. display: flex;
  132. flex-direction: column;
  133. width: 100%;
  134. height: 100%;
  135. overflow-y: auto;
  136. }
  137. .chat-title {
  138. margin-right: auto;
  139. font-size: 18pt;
  140. font-weight: 700;
  141. }
  142. .chat-title:first-child {
  143. margin-left: 16px;
  144. }
  145. .chat-item {
  146. display: flex;
  147. flex-direction: row;
  148. align-items: center;
  149. width: 100%;
  150. height: 56px;
  151. border-bottom-color: #222;
  152. border-bottom-width: 1px;
  153. border-bottom-style: solid;
  154. }
  155. .chat-link {
  156. color: #fff;
  157. text-decoration: none;
  158. }
  159. .chat-name {
  160. margin-left: 16px;
  161. font-size: 14pt;
  162. }
  163. .empty-label {
  164. display: none;
  165. width: 100%;
  166. margin-top: 16px;
  167. text-align: center;
  168. font-size: 16pt;
  169. font-weight: 500;
  170. }
  171. .empty-label:first-child {
  172. display: initial;
  173. }
  174. .action {
  175. display: flex;
  176. justify-content: center;
  177. align-items: center;
  178. height: 100%;
  179. cursor: pointer;
  180. }
  181. .action img {
  182. width: 32px;
  183. height: 32px;
  184. margin: 0px 16px;
  185. }
  186. .message-list {
  187. display: flex;
  188. flex-direction: column-reverse;
  189. width: 100%;
  190. height: 100%;
  191. overflow-y: auto;
  192. }
  193. .message {
  194. display: flex;
  195. flex-direction: column;
  196. width: 100%;
  197. margin-top: 8px;
  198. }
  199. .message a {
  200. max-width: 66%;
  201. max-height: 50vh;
  202. margin: 0px 16px 8px 16px;
  203. }
  204. .message a img {
  205. width: 100%;
  206. height: 100%;
  207. border-radius: 8px;
  208. }
  209. .align-start {
  210. align-items: start;
  211. }
  212. .align-end {
  213. align-items: end;
  214. }
  215. .message:first-child .message-datetime {
  216. margin-bottom: 0px;
  217. }
  218. .message-username {
  219. margin: 0px 16px 10px 16px;
  220. font-size: 14pt;
  221. font-weight: 700;
  222. }
  223. .message-text {
  224. margin: 0px 16px 8px 16px;
  225. padding: 12px 16px 16px 16px;
  226. font-size: 16pt;
  227. font-weight: 500;
  228. word-break: break-word;
  229. color: #eee;
  230. max-width: 66%;
  231. border-radius: 8px;
  232. list-style-position: inside;
  233. }
  234. .user-message {
  235. background-color: #4595E5;
  236. }
  237. .friend-message {
  238. background-color: #222;
  239. }
  240. .message-datetime {
  241. margin: 0px 16px;
  242. font-size: 11pt;
  243. font-weight: 500;
  244. color: #666;
  245. }
  246. .input-form {
  247. display: flex;
  248. flex-direction: row;
  249. }
  250. .input-form .text-input {
  251. margin: 8px 0px;
  252. height: 56px;
  253. }
  254. .input-form .text-input:first-child {
  255. margin-left: 16px;
  256. }
  257. .input-form .button {
  258. margin: 8px 16px;
  259. width: 84px;
  260. height: 56px;
  261. cursor: pointer;
  262. }
  263. .add-button {
  264. display: flex;
  265. box-sizing: border-box;
  266. position: absolute;
  267. width: 64px;
  268. height: 64px;
  269. bottom: 16px;
  270. right: 16px;
  271. border-radius: 16px;
  272. background-color: #50A0F0;
  273. }
  274. .add-button:focus {
  275. background-color: #4595E5;
  276. outline-color: #70C0F0;
  277. outline-width: 2px;
  278. }
  279. .add-button:hover {
  280. background-color: #4595E5;
  281. }
  282. .add-button:active {
  283. background-color: #3585D5;
  284. }
  285. .add-button img {
  286. width: 66%;
  287. height: 66%;
  288. margin: auto;
  289. }
  290. .back-button {
  291. display: flex;
  292. box-sizing: border-box;
  293. position: absolute;
  294. width: 64px;
  295. height: 64px;
  296. left: 16px;
  297. top: 16px;
  298. }
  299. .back-button img {
  300. width: 66%;
  301. height: 66%;
  302. margin: auto;
  303. }
  304. #load-more {
  305. display: flex;
  306. flex-direction: column;
  307. align-items: center;
  308. width: 100%;
  309. }
  310. .load-more {
  311. display: block;
  312. width: 128px;
  313. height: 40px;
  314. margin: 16px auto 0px auto;
  315. border-style: solid;
  316. border-width: 1px;
  317. border-radius: 40px;
  318. border-color: #50A0F0;
  319. color: #50A0F0;
  320. background-color: transparent;
  321. font-size: 16pt;
  322. font-weight: 500;
  323. }
  324. .load-more:focus {
  325. color: #4595E5;
  326. border-color: #4595E5;
  327. outline-color: #70C0F0;
  328. outline-width: 2px;
  329. }
  330. .load-more:hover {
  331. color: #4595E5;
  332. border-color: #4595E5;
  333. }
  334. .load-more:active {
  335. color: #3585D5;
  336. border-color: #3585D5;
  337. }
  338. .version {
  339. margin: 0px 16px 8px 16px;
  340. color: #555;
  341. text-align: end;
  342. font-size: 12pt;
  343. }
  344. #message-attachment {
  345. display: none;
  346. }
  347. #attachment-preview {
  348. display: none;
  349. align-items: center;
  350. padding-left: 16px;
  351. border-color: #555;
  352. border-style: dashed;
  353. border-width: 1px;
  354. }
  355. #attachment-filename {
  356. width: 100%;
  357. }
  358. /* #attachment-preview:has(#attachment-filename:empty) {
  359. display: none;
  360. } */
  361. .preview {
  362. width: 100dvw;
  363. height: 100dvh;
  364. object-fit: contain;
  365. }
  366. @media screen and (max-width: 600px) {
  367. .hs {
  368. height: 12px;
  369. }
  370. .vs {
  371. width: 12px;
  372. }
  373. .container {
  374. width: 256px;
  375. }
  376. .hero-label {
  377. font-size: 20pt;
  378. }
  379. .auth-label {
  380. font-size: 18pt;
  381. }
  382. .button {
  383. font-size: 12pt;
  384. }
  385. .text-input {
  386. font-size: 12pt;
  387. }
  388. .chat-header {
  389. height: 56px;
  390. }
  391. .chat-title {
  392. font-size: 16pt;
  393. }
  394. .chat-title:first-child {
  395. margin-left: 12px;
  396. }
  397. .chat-item {
  398. height: 48px;
  399. }
  400. .chat-name {
  401. margin-left: 12px;
  402. font-size: 13pt;
  403. }
  404. .empty-label {
  405. margin-top: 12px;
  406. font-size: 14pt;
  407. }
  408. .action img {
  409. width: 26px;
  410. height: 26px;
  411. margin: 0px 12px;
  412. }
  413. .message {
  414. margin-top: 6px;
  415. }
  416. .message a {
  417. margin: 0px 14px 7px 14px;
  418. }
  419. .message a img {
  420. border-radius: 7px;
  421. }
  422. .message-username {
  423. margin: 0px 14px 8px 14px;
  424. font-size: 12pt;
  425. }
  426. .message-text {
  427. margin: 0px 14px 6px 14px;
  428. padding: 10px 14px 14px 14px;
  429. border-radius: 7px;
  430. font-size: 14pt;
  431. }
  432. .message-datetime {
  433. margin: 0px 14px;
  434. font-size: 10pt;
  435. }
  436. .input-form .text-input {
  437. margin: 6px 0px;
  438. height: 48px;
  439. }
  440. .input-form .text-input:first-child {
  441. margin-left: 12px;
  442. }
  443. .input-form .button {
  444. margin: 6px 12px;
  445. width: 72px;
  446. height: 48px;
  447. }
  448. .add-button {
  449. width: 48px;
  450. height: 48px;
  451. bottom: 12px;
  452. right: 12px;
  453. border-radius: 12px;
  454. }
  455. .back-button {
  456. width: 56px;
  457. height: 56px;
  458. left: 12px;
  459. top: 12px;
  460. }
  461. .load-more {
  462. width: 120px;
  463. height: 32px;
  464. margin: 12px auto 4px auto;
  465. border-radius: 32px;
  466. font-size: 14pt;
  467. }
  468. .version {
  469. margin: 0px 12px 6px 12px;
  470. font-size: 11pt;
  471. }
  472. #attachment-preview {
  473. padding-left: 12px;
  474. }
  475. }
  476. @media screen and (max-width: 400px) {
  477. .hs {
  478. height: 10px;
  479. }
  480. .vs {
  481. width: 10px;
  482. }
  483. .container {
  484. width: 192px;
  485. }
  486. .hero-label {
  487. font-size: 18pt;
  488. }
  489. .auth-label {
  490. font-size: 16pt;
  491. }
  492. .button {
  493. font-size: 10pt;
  494. }
  495. .text-input {
  496. font-size: 10pt;
  497. }
  498. .chat-header {
  499. height: 48px;
  500. }
  501. .chat-title {
  502. font-size: 14pt;
  503. }
  504. .chat-title:first-child {
  505. margin-left: 10px;
  506. }
  507. .chat-item {
  508. height: 40px;
  509. }
  510. .chat-name {
  511. margin-left: 10px;
  512. font-size: 12pt;
  513. }
  514. .empty-label {
  515. margin-top: 10px;
  516. font-size: 12pt;
  517. }
  518. .action img {
  519. width: 23px;
  520. height: 23px;
  521. margin: 0px 11px;
  522. }
  523. .message {
  524. margin-top: 4px;
  525. }
  526. .message a {
  527. margin: 0px 12px 6px 12px;
  528. }
  529. .message a img {
  530. border-radius: 6px;
  531. }
  532. .message-username {
  533. margin: 0px 12px 6px 12px;
  534. font-size: 11pt;
  535. }
  536. .message-text {
  537. margin: 0px 12px 4px 12px;
  538. padding: 9px 12px 12px 12px;
  539. border-radius: 6px;
  540. font-size: 13pt;
  541. }
  542. .message-datetime {
  543. margin: 0px 12px;
  544. font-size: 9pt;
  545. }
  546. .input-form .text-input {
  547. margin: 5px 0px;
  548. height: 40px;
  549. }
  550. .input-form .text-input:first-child {
  551. margin-left: 10px;
  552. }
  553. .input-form .button {
  554. margin: 5px 10px;
  555. width: 60px;
  556. height: 40px;
  557. }
  558. .add-button {
  559. width: 40px;
  560. height: 40px;
  561. bottom: 10px;
  562. right: 10px;
  563. border-radius: 10px;
  564. }
  565. .back-button {
  566. width: 48px;
  567. height: 48px;
  568. left: 10px;
  569. top: 10px;
  570. }
  571. .load-more {
  572. width: 112px;
  573. height: 28px;
  574. margin: 10px auto 4px auto;
  575. border-radius: 28px;
  576. font-size: 12pt;
  577. }
  578. .version {
  579. margin: 0px 10px 5px 10px;
  580. font-size: 10pt;
  581. }
  582. #attachment-preview {
  583. padding-left: 10px;
  584. }
  585. }
  586. @media screen and (max-width: 240px) {
  587. .hs {
  588. height: 8px;
  589. }
  590. .vs {
  591. width: 8px;
  592. }
  593. .container {
  594. width: 128px;
  595. }
  596. .hero-label {
  597. font-size: 16pt;
  598. }
  599. .auth-label {
  600. font-size: 14pt;
  601. }
  602. .button {
  603. font-size: 8pt;
  604. }
  605. .text-input {
  606. font-size: 8pt;
  607. }
  608. .chat-header {
  609. height: 40px;
  610. }
  611. .chat-title {
  612. font-size: 13pt;
  613. }
  614. .chat-title:first-child {
  615. margin-left: 8px;
  616. }
  617. .chat-item {
  618. height: 32px;
  619. }
  620. .chat-name {
  621. margin-left: 8px;
  622. font-size: 11pt;
  623. }
  624. .empty-label {
  625. margin-top: 8px;
  626. font-size: 11pt;
  627. }
  628. .action img {
  629. width: 20px;
  630. height: 20px;
  631. margin: 0px 10px;
  632. }
  633. .message {
  634. margin-top: 4px;
  635. }
  636. .message a {
  637. margin: 0px 10px 5px 10px;
  638. }
  639. .message a img {
  640. border-radius: 5px;
  641. }
  642. .message-username {
  643. margin: 0px 10px 4px 10px;
  644. font-size: 10pt;
  645. }
  646. .message-text {
  647. margin: 0px 10px 4px 10px;
  648. padding: 7px 10px 10px 10px;
  649. border-radius: 5px;
  650. font-size: 12pt;
  651. }
  652. .message-datetime {
  653. margin: 0px 10px;
  654. font-size: 8pt;
  655. }
  656. .input-form .text-input {
  657. margin: 4px 0px;
  658. height: 32px;
  659. }
  660. .input-form .text-input:first-child {
  661. margin-left: 8px;
  662. }
  663. .input-form .button {
  664. margin: 4px 8px;
  665. width: 48px;
  666. height: 32px;
  667. }
  668. .add-button {
  669. width: 32px;
  670. height: 32px;
  671. bottom: 8px;
  672. right: 8px;
  673. border-radius: 8px;
  674. }
  675. .back-button {
  676. width: 40px;
  677. height: 40px;
  678. left: 8px;
  679. top: 8px;
  680. }
  681. .load-more {
  682. width: 104px;
  683. height: 24px;
  684. margin: 8px auto 4px auto;
  685. border-radius: 24px;
  686. font-size: 11pt;
  687. }
  688. .version {
  689. margin: 0px 8px 4px 8px;
  690. font-size: 9pt;
  691. }
  692. #attachment-preview {
  693. padding-left: 8px;
  694. }
  695. }