main.css 12 KB

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