main.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  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. }
  233. .user-message {
  234. background-color: #4595E5;
  235. }
  236. .friend-message {
  237. background-color: #222;
  238. }
  239. .message-datetime {
  240. margin: 0px 16px;
  241. font-size: 11pt;
  242. font-weight: 500;
  243. color: #666;
  244. }
  245. .input-form {
  246. display: flex;
  247. flex-direction: row;
  248. }
  249. .input-form .text-input {
  250. margin: 8px 0px;
  251. height: 56px;
  252. }
  253. .input-form .text-input:first-child {
  254. margin-left: 16px;
  255. }
  256. .input-form .button {
  257. margin: 8px 16px;
  258. width: 84px;
  259. height: 56px;
  260. cursor: pointer;
  261. }
  262. .add-button {
  263. display: flex;
  264. box-sizing: border-box;
  265. position: absolute;
  266. width: 64px;
  267. height: 64px;
  268. bottom: 16px;
  269. right: 16px;
  270. border-radius: 16px;
  271. background-color: #50A0F0;
  272. }
  273. .add-button:focus {
  274. background-color: #4595E5;
  275. outline-color: #70C0F0;
  276. outline-width: 2px;
  277. }
  278. .add-button:hover {
  279. background-color: #4595E5;
  280. }
  281. .add-button:active {
  282. background-color: #3585D5;
  283. }
  284. .add-button img {
  285. width: 66%;
  286. height: 66%;
  287. margin: auto;
  288. }
  289. .back-button {
  290. display: flex;
  291. box-sizing: border-box;
  292. position: absolute;
  293. width: 64px;
  294. height: 64px;
  295. left: 16px;
  296. top: 16px;
  297. }
  298. .back-button img {
  299. width: 66%;
  300. height: 66%;
  301. margin: auto;
  302. }
  303. #load-more {
  304. display: flex;
  305. flex-direction: column;
  306. align-items: center;
  307. width: 100%;
  308. }
  309. .load-more {
  310. display: block;
  311. width: 128px;
  312. height: 40px;
  313. margin: 16px auto 0px auto;
  314. border-style: solid;
  315. border-width: 1px;
  316. border-radius: 40px;
  317. border-color: #50A0F0;
  318. color: #50A0F0;
  319. background-color: transparent;
  320. font-size: 16pt;
  321. font-weight: 500;
  322. }
  323. .load-more:focus {
  324. color: #4595E5;
  325. border-color: #4595E5;
  326. outline-color: #70C0F0;
  327. outline-width: 2px;
  328. }
  329. .load-more:hover {
  330. color: #4595E5;
  331. border-color: #4595E5;
  332. }
  333. .load-more:active {
  334. color: #3585D5;
  335. border-color: #3585D5;
  336. }
  337. .version {
  338. margin: 0px 16px 8px 16px;
  339. color: #555;
  340. text-align: end;
  341. font-size: 12pt;
  342. }
  343. #message-attachment {
  344. display: none;
  345. }
  346. #attachment-preview {
  347. display: flex;
  348. align-items: center;
  349. padding-left: 16px;
  350. border-color: #555;
  351. border-style: dashed;
  352. border-width: 1px;
  353. }
  354. #attachment-filename {
  355. width: 100%;
  356. }
  357. #attachment-preview:has(#attachment-filename:empty) {
  358. display: none;
  359. }
  360. .preview {
  361. width: 100dvw;
  362. height: 100dvh;
  363. object-fit: contain;
  364. }
  365. @media screen and (max-width: 600px) {
  366. .hs {
  367. height: 12px;
  368. }
  369. .vs {
  370. width: 12px;
  371. }
  372. .container {
  373. width: 256px;
  374. }
  375. .hero-label {
  376. font-size: 20pt;
  377. }
  378. .auth-label {
  379. font-size: 18pt;
  380. }
  381. .button {
  382. font-size: 12pt;
  383. }
  384. .text-input {
  385. font-size: 12pt;
  386. }
  387. .chat-header {
  388. height: 56px;
  389. }
  390. .chat-title {
  391. font-size: 16pt;
  392. }
  393. .chat-title:first-child {
  394. margin-left: 12px;
  395. }
  396. .chat-item {
  397. height: 48px;
  398. }
  399. .chat-name {
  400. margin-left: 12px;
  401. font-size: 13pt;
  402. }
  403. .empty-label {
  404. margin-top: 12px;
  405. font-size: 14pt;
  406. }
  407. .action img {
  408. width: 26px;
  409. height: 26px;
  410. margin: 0px 12px;
  411. }
  412. .message {
  413. margin-top: 6px;
  414. }
  415. .message a {
  416. margin: 0px 14px 7px 14px;
  417. }
  418. .message a img {
  419. border-radius: 7px;
  420. }
  421. .message-username {
  422. margin: 0px 14px 8px 14px;
  423. font-size: 12pt;
  424. }
  425. .message-text {
  426. margin: 0px 14px 6px 14px;
  427. padding: 10px 14px 14px 14px;
  428. border-radius: 7px;
  429. font-size: 14pt;
  430. }
  431. .message-datetime {
  432. margin: 0px 14px;
  433. font-size: 10pt;
  434. }
  435. .input-form .text-input {
  436. margin: 6px 0px;
  437. height: 48px;
  438. }
  439. .input-form .text-input:first-child {
  440. margin-left: 12px;
  441. }
  442. .input-form .button {
  443. margin: 6px 12px;
  444. width: 72px;
  445. height: 48px;
  446. }
  447. .add-button {
  448. width: 48px;
  449. height: 48px;
  450. bottom: 12px;
  451. right: 12px;
  452. border-radius: 12px;
  453. }
  454. .back-button {
  455. width: 56px;
  456. height: 56px;
  457. left: 12px;
  458. top: 12px;
  459. }
  460. .load-more {
  461. width: 120px;
  462. height: 32px;
  463. margin: 12px auto 4px auto;
  464. border-radius: 32px;
  465. font-size: 14pt;
  466. }
  467. .version {
  468. margin: 0px 12px 6px 12px;
  469. font-size: 11pt;
  470. }
  471. #attachment-preview {
  472. padding-left: 12px;
  473. }
  474. }
  475. @media screen and (max-width: 400px) {
  476. .hs {
  477. height: 10px;
  478. }
  479. .vs {
  480. width: 10px;
  481. }
  482. .container {
  483. width: 192px;
  484. }
  485. .hero-label {
  486. font-size: 18pt;
  487. }
  488. .auth-label {
  489. font-size: 16pt;
  490. }
  491. .button {
  492. font-size: 10pt;
  493. }
  494. .text-input {
  495. font-size: 10pt;
  496. }
  497. .chat-header {
  498. height: 48px;
  499. }
  500. .chat-title {
  501. font-size: 14pt;
  502. }
  503. .chat-title:first-child {
  504. margin-left: 10px;
  505. }
  506. .chat-item {
  507. height: 40px;
  508. }
  509. .chat-name {
  510. margin-left: 10px;
  511. font-size: 12pt;
  512. }
  513. .empty-label {
  514. margin-top: 10px;
  515. font-size: 12pt;
  516. }
  517. .action img {
  518. width: 23px;
  519. height: 23px;
  520. margin: 0px 11px;
  521. }
  522. .message {
  523. margin-top: 4px;
  524. }
  525. .message a {
  526. margin: 0px 12px 6px 12px;
  527. }
  528. .message a img {
  529. border-radius: 6px;
  530. }
  531. .message-username {
  532. margin: 0px 12px 6px 12px;
  533. font-size: 11pt;
  534. }
  535. .message-text {
  536. margin: 0px 12px 4px 12px;
  537. padding: 9px 12px 12px 12px;
  538. border-radius: 6px;
  539. font-size: 13pt;
  540. }
  541. .message-datetime {
  542. margin: 0px 12px;
  543. font-size: 9pt;
  544. }
  545. .input-form .text-input {
  546. margin: 5px 0px;
  547. height: 40px;
  548. }
  549. .input-form .text-input:first-child {
  550. margin-left: 10px;
  551. }
  552. .input-form .button {
  553. margin: 5px 10px;
  554. width: 60px;
  555. height: 40px;
  556. }
  557. .add-button {
  558. width: 40px;
  559. height: 40px;
  560. bottom: 10px;
  561. right: 10px;
  562. border-radius: 10px;
  563. }
  564. .back-button {
  565. width: 48px;
  566. height: 48px;
  567. left: 10px;
  568. top: 10px;
  569. }
  570. .load-more {
  571. width: 112px;
  572. height: 28px;
  573. margin: 10px auto 4px auto;
  574. border-radius: 28px;
  575. font-size: 12pt;
  576. }
  577. .version {
  578. margin: 0px 10px 5px 10px;
  579. font-size: 10pt;
  580. }
  581. #attachment-preview {
  582. padding-left: 10px;
  583. }
  584. }
  585. @media screen and (max-width: 240px) {
  586. .hs {
  587. height: 8px;
  588. }
  589. .vs {
  590. width: 8px;
  591. }
  592. .container {
  593. width: 128px;
  594. }
  595. .hero-label {
  596. font-size: 16pt;
  597. }
  598. .auth-label {
  599. font-size: 14pt;
  600. }
  601. .button {
  602. font-size: 8pt;
  603. }
  604. .text-input {
  605. font-size: 8pt;
  606. }
  607. .chat-header {
  608. height: 40px;
  609. }
  610. .chat-title {
  611. font-size: 13pt;
  612. }
  613. .chat-title:first-child {
  614. margin-left: 8px;
  615. }
  616. .chat-item {
  617. height: 32px;
  618. }
  619. .chat-name {
  620. margin-left: 8px;
  621. font-size: 11pt;
  622. }
  623. .empty-label {
  624. margin-top: 8px;
  625. font-size: 11pt;
  626. }
  627. .action img {
  628. width: 20px;
  629. height: 20px;
  630. margin: 0px 10px;
  631. }
  632. .message {
  633. margin-top: 4px;
  634. }
  635. .message a {
  636. margin: 0px 10px 5px 10px;
  637. }
  638. .message a img {
  639. border-radius: 5px;
  640. }
  641. .message-username {
  642. margin: 0px 10px 4px 10px;
  643. font-size: 10pt;
  644. }
  645. .message-text {
  646. margin: 0px 10px 4px 10px;
  647. padding: 7px 10px 10px 10px;
  648. border-radius: 5px;
  649. font-size: 12pt;
  650. }
  651. .message-datetime {
  652. margin: 0px 10px;
  653. font-size: 8pt;
  654. }
  655. .input-form .text-input {
  656. margin: 4px 0px;
  657. height: 32px;
  658. }
  659. .input-form .text-input:first-child {
  660. margin-left: 8px;
  661. }
  662. .input-form .button {
  663. margin: 4px 8px;
  664. width: 48px;
  665. height: 32px;
  666. }
  667. .add-button {
  668. width: 32px;
  669. height: 32px;
  670. bottom: 8px;
  671. right: 8px;
  672. border-radius: 8px;
  673. }
  674. .back-button {
  675. width: 40px;
  676. height: 40px;
  677. left: 8px;
  678. top: 8px;
  679. }
  680. .load-more {
  681. width: 104px;
  682. height: 24px;
  683. margin: 8px auto 4px auto;
  684. border-radius: 24px;
  685. font-size: 11pt;
  686. }
  687. .version {
  688. margin: 0px 8px 4px 8px;
  689. font-size: 9pt;
  690. }
  691. #attachment-preview {
  692. padding-left: 8px;
  693. }
  694. }