You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

style.css 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. * {
  2. box-sizing: border-box;
  3. margin: 0;
  4. padding: 0;
  5. }
  6. body {
  7. background: #aab5a9;
  8. color: #000;
  9. font-family: Verdana, Geneva, Tahoma, sans-serif;
  10. font-size: 12px;
  11. }
  12. a {
  13. color: #000;
  14. }
  15. a:hover {
  16. text-decoration: none;
  17. }
  18. .btn {
  19. cursor: pointer;
  20. background: #ffffff;
  21. border: 1px solid #383e37;
  22. border-radius: 0;
  23. padding: 0.15em 0.3em;
  24. }
  25. .btn:hover {
  26. background-color: #f0f0f0;
  27. }
  28. .danger {
  29. color: #942626;
  30. }
  31. .container {
  32. margin: auto;
  33. max-width: 800px;
  34. padding: 1em;
  35. }
  36. .header {
  37. align-items: center;
  38. display: flex;
  39. justify-content: space-between;
  40. margin: 1em 0;
  41. }
  42. .header__logo {
  43. background-color: #ffffff;
  44. border: 1px solid #383e37;
  45. font-size: 14px;
  46. font-style: italic;
  47. font-weight: bold;
  48. letter-spacing: 2px;
  49. padding: 0.25em 0.5em;
  50. text-decoration: none;
  51. }
  52. .header__logo:hover {
  53. background-color: #f0f0f0;
  54. }
  55. .form__field {
  56. margin: 1em 0;
  57. }
  58. .form__label {
  59. display: block;
  60. margin-bottom: 0.5em;
  61. }
  62. .form__textarea,
  63. .form__text-field {
  64. font-family: Verdana, Geneva, Tahoma, sans-serif;
  65. font-size: 12px;
  66. padding: 0.25em;
  67. width: 100%;
  68. }
  69. .form__textarea {
  70. height: 200px;
  71. resize: vertical;
  72. }
  73. .post:not(:last-child) {
  74. margin: 3em 0;
  75. }
  76. .post__heading {
  77. align-items: center;
  78. background: white;
  79. border: 1px solid #383e37;
  80. display: flex;
  81. flex-wrap: wrap;
  82. font-size: 12px;
  83. font-weight: bold;
  84. justify-content: space-between;
  85. margin-bottom: 1em;
  86. padding: 0.5em;
  87. }
  88. .post__title {
  89. flex: 1;
  90. margin-right: 1em;
  91. min-width: 220px;
  92. }
  93. .post__date {
  94. font-style: italic;
  95. white-space: nowrap;
  96. }
  97. .post__link {
  98. cursor: pointer;
  99. font-style: normal;
  100. font-weight: normal;
  101. text-decoration: underline;
  102. }
  103. .post__link:hover {
  104. text-decoration: none;
  105. }
  106. .post__body {
  107. border-top: none;
  108. padding: 0.5em;
  109. }
  110. .message {
  111. border: 1px solid #383e37;
  112. color: #fff;
  113. margin: 0.5em 0;
  114. padding: 0.25em 1.5em;
  115. text-align: center;
  116. width: 100%;
  117. }
  118. .message--error {
  119. background-color: #942626;
  120. }
  121. .message--success {
  122. background-color: #289426;
  123. }
  124. .error__heading {
  125. margin: 2em 0 1em;
  126. }
  127. .error__message {
  128. font-size: 18px;
  129. }
  130. @media (max-width: 500px) {
  131. .form__button {
  132. width: 100%;
  133. }
  134. }