stylechat.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /* Andrey Shevchenko. FEA-23. Home work 7 */
  2. * {
  3. box-sizing: border-box;
  4. }
  5. body {
  6. font-family: "Roboto", sans-serif;
  7. background-color: rgb(255, 159, 175);
  8. padding: 10px;
  9. /* margin: 0; */
  10. }
  11. .allWindow {
  12. margin: 0px;
  13. margin-bottom: 10px;
  14. display: flex;
  15. flex-direction: column;
  16. height: calc(100vh - 190px);
  17. /* max-height: calc(100vh - 180px); */
  18. min-width: 600px;
  19. /* border: 2px solid green; */
  20. }
  21. .allwindow :nth-child(n) {
  22. margin: 50px;
  23. }
  24. .chatPlusNick {
  25. display: flex;
  26. flex-grow: 1;
  27. }
  28. /* .chatPlusNick div:nth-child(-n + 2) {
  29. margin: 5px;
  30. border: 1px solid rgb(137, 0, 0);
  31. color: rgb(137, 0, 0);
  32. } */
  33. .chatClass {
  34. background-color: rgb(255, 190, 200);
  35. flex-grow: 1;
  36. overflow: auto;
  37. max-height: calc(100vh - 250px);
  38. margin: 5px;
  39. border: 1px solid rgb(137, 0, 0);
  40. color: rgb(137, 0, 0);
  41. }
  42. .nicksPresent {
  43. background-color: rgb(255, 190, 200);
  44. width: 300px;
  45. overflow: auto;
  46. max-height: calc(100vh - 250px);
  47. margin: 5px;
  48. border: 1px solid rgb(137, 0, 0);
  49. color: rgb(137, 0, 0);
  50. }
  51. .nickName {
  52. font-weight: 700;
  53. min-width: 80px;
  54. }
  55. .controlPanel {
  56. display: flex;
  57. align-items: baseline;
  58. width: calc(100vw - 370px);
  59. }
  60. .controlPanel :nth-child(n) {
  61. margin: 5px;
  62. color: rgb(137, 0, 0);
  63. height: 30px;
  64. }
  65. .nickValueClass {
  66. width: 150px;
  67. /* height: 30px; */
  68. text-align: left;
  69. }
  70. .msgClass {
  71. /* height: 30px; */
  72. flex-grow: 1;
  73. }
  74. .sendBtn {
  75. min-width: 90px;
  76. }
  77. .smileArea {
  78. background-color: rgb(255, 190, 200);
  79. max-height: 125px;
  80. border: 1px solid rgb(137, 0, 0);
  81. overflow: auto;
  82. padding: 5px;
  83. }
  84. .nikInChat,
  85. .smile {
  86. cursor: pointer;
  87. }