css.css 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. button { cursor: pointer; }
  2. .header {
  3. padding: 30px; margin: -10px;
  4. margin-top: -130px;
  5. display: grid; grid-template-columns: repeat(2, 1fr);
  6. background: linear-gradient(#7b96c9, #c5d1e8);
  7. width: 97%; padding-top: -112px;
  8. position: fixed;
  9. }
  10. .header > div > a { color: black; text-decoration: none; width: auto;}
  11. .header > div > a:hover { color: #7d324c; text-decoration: underline; }
  12. .new, .new_post{
  13. width: 97.8%;
  14. padding: 30px; margin-left: -20px; margin-top: 120px; margin-bottom: 20px;
  15. background-color: #d49bba;
  16. }
  17. .new { display: grid; grid-template-columns: repeat(2, 1fr); }
  18. .new > h2 { margin: 0; }
  19. .new > form { direction: rtl; }
  20. .new > form > div > button, .new_post > div > button, .new_post > div > a { background-color: #7bbd57; padding: 5px; }
  21. .new > form > div > button:hover, .new_post > div > button:hover, .new_post > div > a:hover { background: linear-gradient(#7b96c9, #577bbd); padding: 5px; }
  22. .new > form > div > input { padding: 5px; }
  23. .new_post { display: flex; gap: 20px; }
  24. .new_post > textarea { width: 70%; }
  25. .new_post > div { display: flex; flex-direction: column; gap: 10px; margin-left: 80px; }
  26. .new_post > div > a { border: 2px solid black; text-decoration: none; text-align: center; color: black; font-size: 10pt; font-family: sans-serif; }
  27. .post { width: 60%; background-color: #ebfcd4; border: 5px solid #7bbd57; border-radius: 20px; padding: 20px; }
  28. .post > div { width: 100%; }
  29. .menu > form:first-of-type > button { font-size: 18pt; background-color: inherit; border: none; }
  30. .menu > form:nth-of-type(n+2) > button { background-color: #7bbd57; border-radius: 10px; width: 35px; height: 35px;}
  31. .menu > form:first-of-type > button:hover { color: #7d324c; text-decoration: underline; }
  32. .menu > form:nth-of-type(n+2) > button:hover { background: linear-gradient(#7b96c9, #577bbd); }
  33. .green_button { background-color: #7bbd57; border-radius: 10px; }
  34. .green_button:hover { background: linear-gradient(#7b96c9, #577bbd); }
  35. .comments {
  36. width: 60%;
  37. margin-left: 14%; padding: 30px; margin-top: 30px;
  38. display: flex; flex-direction: column; gap: 30px;
  39. background-color: #d1dde6;
  40. border: 2px solid #8f8f8f; border-radius: 20px;
  41. }
  42. .comment > div > div > form > button, .comments > form > div > button, .update_comment > div > button, .back { background-color: #7bbd57; }
  43. .comment > div > div > form > button:hover, .comments > form > div > button:hover, .update_comment > div > button:hover, .back:hover { background: linear-gradient(#7b96c9, #577bbd); }
  44. .comments > form, .update_comment { display: flex; gap: 20px; border-radius: 20px; padding: 30px; }
  45. .comments > form { background-color: #c5d1e8; border: 2px solid #7b96c9; }
  46. .comments > form > textarea, .update_comment > textarea { width: 70%; }
  47. .comments > form > div, .update_comment > div { display: flex; flex-direction: column; gap: 10px; }
  48. .comments > form > div > button { padding: 5px; }
  49. .message { font-size: 15pt; }
  50. .comment { width: 92%; background-color: #f2e1eb; border: 5px solid #d49bba; border-radius: 20px; padding: 20px; display: flex;}
  51. .comment > form > button { font-size: 18pt; background-color: inherit; border: none; }
  52. .comment > form > button:hover { color: #7d324c; text-decoration: underline; }
  53. .comment > div > div > form > button { border-radius: 10px; width: 35px; height: 35px; }
  54. .update_comment { width: 60%; background-color: #f2e1eb; margin: 30px; margin-left: 14%; border: 5px solid #d49bba; }
  55. .back { font-size: 13pt; padding: 10px; margin-bottom: 20px; border-radius: 20px; }
  56. .user {
  57. display: grid; grid-template-columns: repeat(2, 1fr) 50px; gap: 20px;
  58. width: 50%;
  59. font-size: 14pt;
  60. margin-left: 7%; padding: 10px;
  61. background-color: #c1e3a8;
  62. border: 4px solid #488042; border-radius: 15px;
  63. }
  64. .user > form:first-of-type > button { font-size: 14pt; background-color: inherit; border: none; }
  65. .user > form:last-of-type > button { background-color: #7bbd57; padding: 5px; }
  66. .user > form:first-of-type > button:hover { color: #7d324c; text-decoration: underline; }
  67. .user > form:last-of-type > button:hover { background: linear-gradient(#7b96c9, #577bbd); }