main.css 8.6 KB

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