main.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  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. @media screen and (max-width: 600px) {
  361. .hs {
  362. height: 12px;
  363. }
  364. .vs {
  365. width: 12px;
  366. }
  367. .container {
  368. width: 256px;
  369. }
  370. .hero-label {
  371. font-size: 20pt;
  372. }
  373. .auth-label {
  374. font-size: 18pt;
  375. }
  376. .button {
  377. font-size: 12pt;
  378. }
  379. .text-input {
  380. font-size: 12pt;
  381. }
  382. .chat-header {
  383. height: 56px;
  384. }
  385. .chat-title {
  386. font-size: 16pt;
  387. }
  388. .chat-title:first-child {
  389. margin-left: 12px;
  390. }
  391. .chat-item {
  392. height: 48px;
  393. }
  394. .chat-name {
  395. margin-left: 12px;
  396. font-size: 13pt;
  397. }
  398. .empty-label {
  399. margin-top: 12px;
  400. font-size: 14pt;
  401. }
  402. .action img {
  403. width: 26px;
  404. height: 26px;
  405. margin: 0px 12px;
  406. }
  407. .message {
  408. margin-top: 6px;
  409. }
  410. .message a {
  411. margin: 0px 14px 7px 14px;
  412. }
  413. .message a img {
  414. border-radius: 7px;
  415. }
  416. .message-username {
  417. margin: 0px 14px 8px 14px;
  418. font-size: 12pt;
  419. }
  420. .message-text {
  421. margin: 0px 14px 6px 14px;
  422. padding: 10px 14px 14px 14px;
  423. border-radius: 7px;
  424. font-size: 14pt;
  425. }
  426. .message-datetime {
  427. margin: 0px 14px;
  428. font-size: 10pt;
  429. }
  430. .input-form .text-input {
  431. margin: 6px 0px;
  432. height: 48px;
  433. }
  434. .input-form .text-input:first-child {
  435. margin-left: 12px;
  436. }
  437. .input-form .button {
  438. margin: 6px 12px;
  439. width: 72px;
  440. height: 48px;
  441. }
  442. .add-button {
  443. width: 48px;
  444. height: 48px;
  445. bottom: 12px;
  446. right: 12px;
  447. border-radius: 12px;
  448. }
  449. .back-button {
  450. width: 56px;
  451. height: 56px;
  452. left: 12px;
  453. top: 12px;
  454. }
  455. .load-more {
  456. width: 120px;
  457. height: 32px;
  458. margin: 12px auto 4px auto;
  459. border-radius: 32px;
  460. font-size: 14pt;
  461. }
  462. .version {
  463. margin: 0px 12px 6px 12px;
  464. font-size: 11pt;
  465. }
  466. #attachment-preview {
  467. padding-left: 12px;
  468. }
  469. }
  470. @media screen and (max-width: 400px) {
  471. .hs {
  472. height: 10px;
  473. }
  474. .vs {
  475. width: 10px;
  476. }
  477. .container {
  478. width: 192px;
  479. }
  480. .hero-label {
  481. font-size: 18pt;
  482. }
  483. .auth-label {
  484. font-size: 16pt;
  485. }
  486. .button {
  487. font-size: 10pt;
  488. }
  489. .text-input {
  490. font-size: 10pt;
  491. }
  492. .chat-header {
  493. height: 48px;
  494. }
  495. .chat-title {
  496. font-size: 14pt;
  497. }
  498. .chat-title:first-child {
  499. margin-left: 10px;
  500. }
  501. .chat-item {
  502. height: 40px;
  503. }
  504. .chat-name {
  505. margin-left: 10px;
  506. font-size: 12pt;
  507. }
  508. .empty-label {
  509. margin-top: 10px;
  510. font-size: 12pt;
  511. }
  512. .action img {
  513. width: 23px;
  514. height: 23px;
  515. margin: 0px 11px;
  516. }
  517. .message {
  518. margin-top: 4px;
  519. }
  520. .message a {
  521. margin: 0px 12px 6px 12px;
  522. }
  523. .message a img {
  524. border-radius: 6px;
  525. }
  526. .message-username {
  527. margin: 0px 12px 6px 12px;
  528. font-size: 11pt;
  529. }
  530. .message-text {
  531. margin: 0px 12px 4px 12px;
  532. padding: 9px 12px 12px 12px;
  533. border-radius: 6px;
  534. font-size: 13pt;
  535. }
  536. .message-datetime {
  537. margin: 0px 12px;
  538. font-size: 9pt;
  539. }
  540. .input-form .text-input {
  541. margin: 5px 0px;
  542. height: 40px;
  543. }
  544. .input-form .text-input:first-child {
  545. margin-left: 10px;
  546. }
  547. .input-form .button {
  548. margin: 5px 10px;
  549. width: 60px;
  550. height: 40px;
  551. }
  552. .add-button {
  553. width: 40px;
  554. height: 40px;
  555. bottom: 10px;
  556. right: 10px;
  557. border-radius: 10px;
  558. }
  559. .back-button {
  560. width: 48px;
  561. height: 48px;
  562. left: 10px;
  563. top: 10px;
  564. }
  565. .load-more {
  566. width: 112px;
  567. height: 28px;
  568. margin: 10px auto 4px auto;
  569. border-radius: 28px;
  570. font-size: 12pt;
  571. }
  572. .version {
  573. margin: 0px 10px 5px 10px;
  574. font-size: 10pt;
  575. }
  576. #attachment-preview {
  577. padding-left: 10px;
  578. }
  579. }
  580. @media screen and (max-width: 240px) {
  581. .hs {
  582. height: 8px;
  583. }
  584. .vs {
  585. width: 8px;
  586. }
  587. .container {
  588. width: 128px;
  589. }
  590. .hero-label {
  591. font-size: 16pt;
  592. }
  593. .auth-label {
  594. font-size: 14pt;
  595. }
  596. .button {
  597. font-size: 8pt;
  598. }
  599. .text-input {
  600. font-size: 8pt;
  601. }
  602. .chat-header {
  603. height: 40px;
  604. }
  605. .chat-title {
  606. font-size: 13pt;
  607. }
  608. .chat-title:first-child {
  609. margin-left: 8px;
  610. }
  611. .chat-item {
  612. height: 32px;
  613. }
  614. .chat-name {
  615. margin-left: 8px;
  616. font-size: 11pt;
  617. }
  618. .empty-label {
  619. margin-top: 8px;
  620. font-size: 11pt;
  621. }
  622. .action img {
  623. width: 20px;
  624. height: 20px;
  625. margin: 0px 10px;
  626. }
  627. .message {
  628. margin-top: 4px;
  629. }
  630. .message a {
  631. margin: 0px 10px 5px 10px;
  632. }
  633. .message a img {
  634. border-radius: 5px;
  635. }
  636. .message-username {
  637. margin: 0px 10px 4px 10px;
  638. font-size: 10pt;
  639. }
  640. .message-text {
  641. margin: 0px 10px 4px 10px;
  642. padding: 7px 10px 10px 10px;
  643. border-radius: 5px;
  644. font-size: 12pt;
  645. }
  646. .message-datetime {
  647. margin: 0px 10px;
  648. font-size: 8pt;
  649. }
  650. .input-form .text-input {
  651. margin: 4px 0px;
  652. height: 32px;
  653. }
  654. .input-form .text-input:first-child {
  655. margin-left: 8px;
  656. }
  657. .input-form .button {
  658. margin: 4px 8px;
  659. width: 48px;
  660. height: 32px;
  661. }
  662. .add-button {
  663. width: 32px;
  664. height: 32px;
  665. bottom: 8px;
  666. right: 8px;
  667. border-radius: 8px;
  668. }
  669. .back-button {
  670. width: 40px;
  671. height: 40px;
  672. left: 8px;
  673. top: 8px;
  674. }
  675. .load-more {
  676. width: 104px;
  677. height: 24px;
  678. margin: 8px auto 4px auto;
  679. border-radius: 24px;
  680. font-size: 11pt;
  681. }
  682. .version {
  683. margin: 0px 8px 4px 8px;
  684. font-size: 9pt;
  685. }
  686. #attachment-preview {
  687. padding-left: 8px;
  688. }
  689. }