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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. * {
  2. box-sizing: border-box;
  3. }
  4. html, body {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. body {
  9. font-family: verdana, sans-serif;
  10. }
  11. img {
  12. max-width: 100%;
  13. }
  14. blockquote {
  15. font-style: italic;
  16. margin: 0;
  17. }
  18. .error {
  19. color: #DD2222;
  20. }
  21. .container {
  22. display: flex;
  23. flex-direction: column;
  24. margin: auto;
  25. max-width: 800px;
  26. min-height: 100vh;
  27. padding: 15px;
  28. }
  29. .header__link {
  30. color: black;
  31. text-decoration: none;
  32. }
  33. .btn {
  34. background-color: rgb(40, 96, 144);
  35. border: 1px solid #222;
  36. border-radius: 5px;
  37. color: #ffffff;
  38. cursor: pointer;
  39. font-size: 20px;
  40. padding: 0.5em 0.5em;
  41. text-decoration: none;
  42. }
  43. .btn:hover {
  44. background-color: rgb(30, 85, 135);
  45. }
  46. .btn--small {
  47. font-size: 14px;
  48. }
  49. .btn--prev {
  50. margin-right: 1em;
  51. }
  52. .center {
  53. text-align: center;
  54. }
  55. .auth {
  56. align-items: center;
  57. display: flex;
  58. font-size: 14px;
  59. justify-content: space-between;
  60. }
  61. .auth__copy {
  62. margin: 0;
  63. }
  64. .auth__username {
  65. font-weight: bold;
  66. }
  67. .footer {
  68. border-top: 1px solid black;
  69. font-size: 12px;
  70. margin: 20px 0;
  71. }
  72. .form {
  73. display: flex;
  74. flex: 1;
  75. flex-direction: column;
  76. margin: 2em auto;
  77. width: 100%;
  78. }
  79. .form__search {
  80. border: 1px solid #999;
  81. border-radius: 5px;
  82. font-size: 20px;
  83. padding: 0.5em;
  84. }
  85. .form .filters {
  86. margin: 1em 0;
  87. }
  88. .filters__section {
  89. display: flex;
  90. padding: .5em 0;
  91. }
  92. .filters__subsection--sort {
  93. visibility: hidden;
  94. }
  95. .filters__subsection--sort.open {
  96. visibility: visible;
  97. }
  98. .filters__subsection {
  99. flex: 1;
  100. }
  101. .filters__subsection--static {
  102. flex: 1;
  103. }
  104. .filters__subsection:nth-child(2) {
  105. padding: 0 1em;
  106. }
  107. .form__field {
  108. margin: 10px 0;
  109. }
  110. .form__text-field {
  111. border: 1px solid #000000;
  112. border-radius: 4px;
  113. font-size: 16px;
  114. padding: 5px;
  115. width: 100%;
  116. }
  117. .form__submit {
  118. font-size: 16px;
  119. }
  120. .form--login {
  121. margin-top: 0;
  122. }
  123. .form--login .form__label {
  124. display: block;
  125. margin: 10px 0;
  126. }
  127. .results-container {
  128. padding-bottom: 1em;
  129. }
  130. .results__subheader {
  131. border-bottom: 1px solid black;
  132. margin: 1.5em 0;
  133. padding: 5px 0;
  134. }
  135. .results__result {
  136. background: #efefef;
  137. border: 1px solid black;
  138. border-radius: 5px;
  139. margin: 1em 0;
  140. padding: 0.5em;
  141. }
  142. .results__result.threads .result__info {
  143. margin-bottom: 0;
  144. }
  145. .result__info {
  146. display: flex;
  147. font-size: 12px;
  148. justify-content: space-between;
  149. }
  150. @media (max-width: 500px) {
  151. .result__info {
  152. flex-direction: column;
  153. }
  154. .result__info span {
  155. display: inline-block;
  156. margin: 5px 0;
  157. }
  158. .filters__section {
  159. flex-direction: column;
  160. }
  161. .filters__subsection:nth-child(2) {
  162. padding: 0;
  163. }