banana111

css of my real time chat

Dec 9th, 2020 (edited)
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.19 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
  2.  
  3. .sned_container {
  4.     position: absolute;
  5.     bottom: 10px;
  6.     width: 100%;
  7.     text-align: center;
  8. }
  9.  
  10. .sned_container input {
  11.     width: 80%;
  12.     height: 30px;
  13.     border: solid #333333 1px;
  14.     border-radius: 7px;
  15. }
  16.  
  17. .sned_container button{
  18.     height: 35px;
  19.     width: 100px;
  20.     border: solid grey  1px;
  21.     border-radius: 7px;
  22. }
  23.  
  24.  
  25.  
  26. .this_message_parent {
  27.     float: left;
  28.     width: 70%;
  29.     height: 40px;
  30.     font-family: 'Roboto', sans-serif;
  31.     display: flex;
  32.     justify-content: center;
  33.     flex-flow: column;
  34.     border-radius: 10px 20px 20px 10px;
  35.     font-size: 1.5em;
  36.     position: relative;
  37.     margin-top: 10px;
  38.     animation-name: this_message_pop_in;
  39.     animation-duration: 0.2s;
  40. }
  41.  
  42. @keyframes this_message_pop_in{
  43.     0%  {left: -80%; }
  44.     75% {left: 8%; }
  45.     100%{left: 0%; }
  46. }
  47.  
  48. .this_message_backround{
  49.     background-color: #333;
  50.     position: absolute;
  51.     width: 100%;
  52.     height: 100%;
  53.     border-radius: 10px 20px 20px 10px;
  54. }
  55.  
  56. .this_message_text{
  57.     color: white;
  58.     z-index: 1;
  59.     margin-left: 10px;
  60.     position: absolute;
  61.     margin-bottom: 0px;
  62. }
  63.  
  64.  
  65.  
  66. .partner_message_parent {
  67.     float: right;
  68.     width: 70%;
  69.     height: 40px;
  70.     font-family: 'Roboto', sans-serif;
  71.     display: flex;
  72.     justify-content: center;
  73.     flex-flow: column;
  74.     border-radius: 20px 10px 10px 20px;
  75.     font-size: 1.5em;
  76.     position: relative;
  77.     margin-top: 10px;
  78.     animation-name: this_message_pop_in;
  79.     text-align: right;
  80.     animation-duration: 0.2s;
  81. }
  82.  
  83. @keyframes partner_message_pop_in{
  84.     0%  {right: -80%; }
  85.     75% {right: 8%; }
  86.     100%{right: 0%; }
  87. }
  88.  
  89. .partner_message_backround{
  90.     background-color: #666;
  91.     position: absolute;
  92.     width: 100%;
  93.     height: 100%;
  94.     border-radius: 20px 10px 10px 20px;
  95.     right: 0;
  96. }
  97.  
  98. .partner_message_text{
  99.     color: white;
  100.     z-index: 1;
  101.     margin-right: 10px;
  102.     position: absolute;
  103.     right: 0;
  104.     margin-bottom: 0px;
  105. }
  106.  
  107. .type_anim{
  108.     animation-name: type_anim_;
  109.     animation-duration: 0.2s;
  110. }
  111.  
  112. @keyframes type_anim_{
  113.     50% {width: 103%; height: 110%;}
  114.     100%{width: 100%; height: 100%;}
  115. }
  116.  
  117. .end_message_anim{  
  118.     animation-name: end_message_anim_;
  119.     animation-fill-mode: forwards;
  120.     animation-duration: 0.3s;
  121. }
  122.  
  123. @keyframes end_message_anim_{
  124.     0% {width: 100%; height: 100%;}
  125.     30% {width: 110%; height: 115%;}
  126.     100%{width: var(--end_width); height: 100%;}
  127. }
  128.  
  129. #input_area {
  130.     position: fixed;
  131.     height: 100%;
  132.     width: 100%;
  133. }
  134.  
  135. #input_area div {
  136.     position: relative;
  137.     height: 100%;
  138.     width: 100%;
  139.     display: flex;
  140.     flex-flow: column;
  141.     justify-content: center;
  142.     text-align: center;
  143. }
  144.  
  145. #message_container {
  146.     display: inline-block;
  147.     width: 100%;
  148. }
  149.  
  150. #white_space {
  151.     height: 550px;
  152. }
  153.  
  154. body{
  155.     margin: 0px;
  156. }
  157.  
  158. .hidden{
  159.     visibility: hidden;
  160. }
  161.  
  162. .login_prompt {
  163.     visibility: visible;
  164.     width: 100%;
  165.     height: 100%;
  166.     background-image: linear-gradient(rgba(0, 0, 0, 0.6),rgba(0, 0, 0, 0.7),rgba(0, 0, 0, 0.7),rgba(0, 0, 0, 0.7),rgba(0, 0, 0, 0.6));
  167.     position: fixed;
  168.     top: 0px;
  169.     z-index: 2;
  170.     animation-name: login_prompt_anim;
  171.     animation-timing-function: ease-out;
  172.     animation-duration: 0.2s;
  173.     display: flex;
  174.     flex-flow: column;
  175.     justify-content: center;
  176.     align-items: center;
  177. }
  178.  
  179. @keyframes login_prompt_anim{
  180.     100%{height: 100%;}
  181. }
  182.  
  183. .input{
  184.     width: 50%;
  185.     height: 30px;
  186.     border-radius: 11px;
  187.     background-color: seashell;
  188.     margin: 10px 0px;
  189. }
  190.  
  191. #username{
  192.  
  193. }
  194.  
  195. #password{
  196.    visibility: hidden;
  197. }
  198.  
  199. .login_text{
  200.     font-size: 2em;
  201. }
  202.  
  203. .modal-body{
  204.     margin-top: 30px;
  205.     margin-bottom:40px;
  206. }
  207.  
  208. .this_username_parent {
  209.     float: left;
  210.     width: 70%;
  211.     height: 40px;
  212.     font-family: 'Roboto', sans-serif;
  213.     display: flex;
  214.     justify-content: center;
  215.     flex-flow: column;
  216.     border-radius: 20px 20px 20px 20px;
  217.     font-size: 1.2em;
  218.     position: relative;
  219.     margin-top: 10px;
  220.     animation-name: this_message_pop_in;
  221.     animation-duration: 0.2s;
  222. }
  223.  
  224. .this_username_backround{
  225.     background-color: #333;
  226.     position: absolute;
  227.     width: 30%;
  228.     height: 100%;
  229.     border-radius: 20px 20px 20px 20px;
  230. }
  231.  
  232. .this_username_text{
  233.     color: whitesmoke;
  234.     z-index: 1;
  235.     margin-left: 10px;
  236.     position: absolute;
  237.     margin-bottom: 0px;
  238. }
  239.  
  240.  
  241.  
  242.  
  243. .partner_username_parent {
  244.     float: right;
  245.     width: 70%;
  246.     height: 40px;
  247.     font-family: 'Roboto', sans-serif;
  248.     display: flex;
  249.     justify-content: center;
  250.     flex-flow: column;
  251.     border-radius: 20px 20px 20px 20px;
  252.     font-size: 1.2em;
  253.     position: relative;
  254.     margin-top: 10px;
  255.     animation-name: this_message_pop_in;
  256.     text-align: right;
  257.     animation-duration: 0.2s;
  258. }
  259.  
  260. .partner_username_backround{
  261.     background-color: #666;
  262.     position: absolute;
  263.     width: 30%;
  264.     height: 100%;
  265.     border-radius: 20px 20px 20px 20px;
  266.     right: 0;
  267. }
  268.  
  269. .partner_username_text{
  270.     color: whitesmoke;
  271.     z-index: 1;
  272.     margin-right: 10px;
  273.     position: absolute;
  274.     right: 0;
  275.     margin-bottom: 0px;
  276. }
Add Comment
Please, Sign In to add comment