main.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. .main-header h1 a,
  2. .main-header h1 a:visited,
  3. .main-header h1 a:link {
  4. color: #333;
  5. }
  6. .back-link {
  7. display: inline-block;
  8. margin-bottom: 30px;
  9. }
  10. html {
  11. min-height: 100%;
  12. }
  13. body {
  14. background-image: url("img/background_main_489.jpg");
  15. background-repeat: no-repeat;
  16. background-position: 50% 55px;
  17. background-size: 100%;
  18. position: relative;
  19. min-height: 1500px;
  20. padding-bottom: 200px;
  21. font-size: auto;
  22. }
  23. body > .jumbotron {
  24. background-color: transparent;
  25. padding: 3.5em 0;
  26. }
  27. body > section {
  28. background-color: #eee;
  29. background-color: rgba(250,250,250,0.9);
  30. padding-bottom: 2em;
  31. }
  32. body.form > section,
  33. body.home > section {
  34. background-color: transparent;
  35. }
  36. body.form section header {
  37. /* margin-top: 365px; */
  38. }
  39. body section section,
  40. body.form section header,
  41. body.home section header {
  42. margin-bottom: 70px;
  43. background-color: rgba(250,250,250,0.9);
  44. }
  45. body.home section header {
  46. margin-top: 0px;
  47. }
  48. body > footer {
  49. /* See jumbotron */
  50. margin-top: 30px;
  51. padding: 48px 0;
  52. background-color: #eee;
  53. text-align: center;
  54. position: absolute;
  55. bottom: 0;left: 0;right: 0;top: auto;
  56. }
  57. /** Form **/
  58. #map {
  59. min-height: 300px;
  60. }
  61. #search-results {
  62. margin-top: 1em;
  63. }
  64. form > h2 {
  65. border-top: 1px solid #eee;
  66. padding-top: 1em;
  67. margin-top: 1em;
  68. }
  69. form > h2:first-child {
  70. border-top: none;
  71. padding-top: 0;
  72. margin-top: 0;
  73. }
  74. /** Form errors **/
  75. #errors, .errorlist {
  76. padding: 1em;
  77. border: 1px solid #a94442;
  78. border-radius: 4px;
  79. }
  80. /* non-field errorfields */
  81. #errors ul.errorlist {
  82. border: 0;
  83. }
  84. #errors ul {
  85. margin: 0 0 0 1em;
  86. padding: 0;
  87. }
  88. .errorlist {
  89. list-style-type: none;
  90. }
  91. /** Results **/
  92. #map.results {
  93. min-height: 500px;
  94. margin-bottom: 1em;
  95. }
  96. .results .leaflet-popup-content {
  97. margin: 1em;
  98. }
  99. .results .leaflet-popup-content h2 {
  100. font-size: 20px;
  101. }
  102. .results .leaflet-popup-content ul {
  103. margin: 0.5em 0;
  104. padding-left: 1.5em;
  105. }
  106. /** Media-queries **
  107. *
  108. * Focused on readability (where background and text overlap) and avoiding
  109. * big vertical empty spaces.
  110. */
  111. @media (min-width: 0px) {
  112. h1 {
  113. max-width: 500px;
  114. background-color: rgba(250, 250, 250, 0.9);
  115. }
  116. body.form section header,
  117. body.home section header,{
  118. margin-top: 0px
  119. }
  120. body {
  121. background-image: url("img/background_main_767.jpg");
  122. }
  123. }
  124. @media (min-width: 480px) {
  125. h1 {
  126. max-width: 400px
  127. }
  128. }
  129. @media (min-width: 768px) {
  130. h1 {
  131. max-width: 500px
  132. }
  133. body {
  134. background-image: url("img/background_main_991.jpg");
  135. }
  136. }
  137. @media (min-width: 992px) {
  138. h1 {
  139. max-width: 650px;
  140. }
  141. body.form section header,
  142. body.home section header {
  143. /* margin-top: 265px */
  144. }
  145. body {
  146. background-image: url("img/background_main.jpg");
  147. }
  148. }
  149. @media (min-width: 1200px) {
  150. h1 {
  151. max-width: none;
  152. background-color: transparent;
  153. }
  154. body.form section header,
  155. body.home section header {
  156. /* margin-top: 250px */
  157. }
  158. }