main.css 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  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: 48px;
  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. }
  176. .action img {
  177. width: 32px;
  178. height: 32px;
  179. margin: 0px 16px;
  180. }
  181. .message-list {
  182. display: flex;
  183. flex-direction: column-reverse;
  184. width: 100%;
  185. height: 100%;
  186. overflow-y: auto;
  187. }
  188. .message {
  189. display: flex;
  190. flex-direction: column;
  191. width: 100%;
  192. }
  193. .message:last-child {
  194. margin-top: 8px;
  195. }
  196. .message:first-child .message-datetime {
  197. margin-bottom: 0px;
  198. }
  199. .message-username {
  200. margin: 0px 16px 10px 16px;
  201. font-size: 14pt;
  202. font-weight: 700;
  203. }
  204. .message-text {
  205. margin: 0px 16px 8px 16px;
  206. font-size: 16pt;
  207. font-weight: 500;
  208. word-break: break-word;
  209. color: #eee;
  210. }
  211. .message-datetime {
  212. margin: 0px 16px 16px 16px;
  213. font-size: 14pt;
  214. font-weight: 500;
  215. color: #555;
  216. }
  217. .input-form {
  218. display: flex;
  219. flex-direction: row;
  220. }
  221. .input-form .text-input {
  222. margin: 16px 0px 16px 16px;
  223. height: 56px;
  224. }
  225. .input-form .button {
  226. margin: 16px;
  227. width: 84px;
  228. height: 56px;
  229. }
  230. .add-button {
  231. display: flex;
  232. box-sizing: border-box;
  233. position: absolute;
  234. width: 64px;
  235. height: 64px;
  236. bottom: 16px;
  237. right: 16px;
  238. border-radius: 16px;
  239. background-color: #50A0F0;
  240. }
  241. .add-button:focus {
  242. background-color: #4595E5;
  243. outline-color: #70C0F0;
  244. outline-width: 2px;
  245. }
  246. .add-button:hover {
  247. background-color: #4595E5;
  248. }
  249. .add-button:active {
  250. background-color: #3585D5;
  251. }
  252. .add-button img {
  253. width: 66%;
  254. height: 66%;
  255. margin: auto;
  256. }
  257. .back-button {
  258. display: flex;
  259. box-sizing: border-box;
  260. position: absolute;
  261. width: 64px;
  262. height: 64px;
  263. left: 16px;
  264. top: 16px;
  265. }
  266. .back-button img {
  267. width: 66%;
  268. height: 66%;
  269. margin: auto;
  270. }
  271. @media screen and (max-width: 600px) {
  272. .hs {
  273. height: 12px;
  274. }
  275. .vs {
  276. width: 12px;
  277. }
  278. .container {
  279. width: 256px;
  280. }
  281. .hero-label {
  282. font-size: 20pt;
  283. }
  284. .auth-label {
  285. font-size: 18pt;
  286. }
  287. .button {
  288. font-size: 12pt;
  289. }
  290. .text-input {
  291. font-size: 12pt;
  292. }
  293. .chat-header {
  294. height: 48px;
  295. }
  296. .chat-title {
  297. font-size: 16pt;
  298. }
  299. .chat-title:first-child {
  300. margin-left: 12px;
  301. }
  302. .chat-item {
  303. height: 40px;
  304. }
  305. .chat-name {
  306. margin-left: 12px;
  307. font-size: 13pt;
  308. }
  309. .empty-label {
  310. margin-top: 12px;
  311. font-size: 14pt;
  312. }
  313. .action img {
  314. width: 26px;
  315. height: 26px;
  316. margin: 0px 12px;
  317. }
  318. .message-username {
  319. margin: 0px 14px 8px 14px;
  320. font-size: 12pt;
  321. }
  322. .message-text {
  323. margin: 0px 14px 6px 14px;
  324. font-size: 14pt;
  325. }
  326. .message-datetime {
  327. margin: 0px 14px 14px 14px;
  328. font-size: 12pt;
  329. }
  330. .input-form .text-input {
  331. margin: 12px 0px 12px 12px;
  332. height: 48px;
  333. }
  334. .input-form .button {
  335. margin: 12px;
  336. width: 72px;
  337. height: 48px;
  338. }
  339. .add-button {
  340. width: 48px;
  341. height: 48px;
  342. bottom: 12px;
  343. right: 12px;
  344. border-radius: 12px;
  345. }
  346. .back-button {
  347. width: 56px;
  348. height: 56px;
  349. left: 12px;
  350. top: 12px;
  351. }
  352. }
  353. @media screen and (max-width: 400px) {
  354. .hs {
  355. height: 10px;
  356. }
  357. .vs {
  358. width: 10px;
  359. }
  360. .container {
  361. width: 192px;
  362. }
  363. .hero-label {
  364. font-size: 18pt;
  365. }
  366. .auth-label {
  367. font-size: 16pt;
  368. }
  369. .button {
  370. font-size: 10pt;
  371. }
  372. .text-input {
  373. font-size: 10pt;
  374. }
  375. .chat-header {
  376. height: 44px;
  377. }
  378. .chat-title {
  379. font-size: 14pt;
  380. }
  381. .chat-title:first-child {
  382. margin-left: 10px;
  383. }
  384. .chat-item {
  385. height: 36px;
  386. }
  387. .chat-name {
  388. margin-left: 10px;
  389. font-size: 12pt;
  390. }
  391. .empty-label {
  392. margin-top: 10px;
  393. font-size: 12pt;
  394. }
  395. .action img {
  396. width: 23px;
  397. height: 23px;
  398. margin: 0px 11px;
  399. }
  400. .message-username {
  401. margin: 0px 12px 6px 12px;
  402. font-size: 11pt;
  403. }
  404. .message-text {
  405. margin: 0px 12px 4px 12px;
  406. font-size: 13pt;
  407. }
  408. .message-datetime {
  409. margin: 0px 12px 12px 12px;
  410. font-size: 11pt;
  411. }
  412. .input-form .text-input {
  413. margin: 10px 0px 10px 10px;
  414. height: 40px;
  415. }
  416. .input-form .button {
  417. margin: 10px;
  418. width: 60px;
  419. height: 40px;
  420. }
  421. .add-button {
  422. width: 40px;
  423. height: 40px;
  424. bottom: 10px;
  425. right: 10px;
  426. border-radius: 10px;
  427. }
  428. .back-button {
  429. width: 48px;
  430. height: 48px;
  431. left: 10px;
  432. top: 10px;
  433. }
  434. }
  435. @media screen and (max-width: 240px) {
  436. .hs {
  437. height: 8px;
  438. }
  439. .vs {
  440. width: 8px;
  441. }
  442. .container {
  443. width: 128px;
  444. }
  445. .hero-label {
  446. font-size: 16pt;
  447. }
  448. .auth-label {
  449. font-size: 14pt;
  450. }
  451. .button {
  452. font-size: 8pt;
  453. }
  454. .text-input {
  455. font-size: 8pt;
  456. }
  457. .chat-header {
  458. height: 40px;
  459. }
  460. .chat-title {
  461. font-size: 13pt;
  462. }
  463. .chat-title:first-child {
  464. margin-left: 8px;
  465. }
  466. .chat-item {
  467. height: 32px;
  468. }
  469. .chat-name {
  470. margin-left: 8px;
  471. font-size: 11pt;
  472. }
  473. .empty-label {
  474. margin-top: 8px;
  475. font-size: 11pt;
  476. }
  477. .action img {
  478. width: 20px;
  479. height: 20px;
  480. margin: 0px 10px;
  481. }
  482. .message-username {
  483. margin: 0px 10px 4px 10px;
  484. font-size: 10pt;
  485. }
  486. .message-text {
  487. margin: 0px 10px 2px 10px;
  488. font-size: 12pt;
  489. }
  490. .message-datetime {
  491. margin: 0px 10px 10px 10px;
  492. font-size: 10pt;
  493. }
  494. .input-form .text-input {
  495. margin: 8px 0px 8px 8px;
  496. height: 32px;
  497. }
  498. .input-form .button {
  499. margin: 8px;
  500. width: 48px;
  501. height: 32px;
  502. }
  503. .add-button {
  504. width: 32px;
  505. height: 32px;
  506. bottom: 8px;
  507. right: 8px;
  508. border-radius: 8px;
  509. }
  510. .back-button {
  511. width: 40px;
  512. height: 40px;
  513. left: 8px;
  514. top: 8px;
  515. }
  516. }