main.css 11 KB

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