main.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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.7);
  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.form section header,
  40. body.home section header {
  41. margin-bottom: 70px;
  42. background-color: rgba(250,250,250,0.5);
  43. }
  44. body.home section header {
  45. margin-top: 0px;
  46. }
  47. body > footer {
  48. /* See jumbotron */
  49. margin-top: 30px;
  50. padding: 48px 0;
  51. background-color: #eee;
  52. text-align: center;
  53. position: absolute;
  54. bottom: 0;left: 0;right: 0;top: auto;
  55. }
  56. /** Form **/
  57. #map {
  58. min-height: 300px;
  59. }
  60. #search-results {
  61. margin-top: 1em;
  62. }
  63. form > h2 {
  64. border-top: 1px solid #eee;
  65. padding-top: 1em;
  66. margin-top: 1em;
  67. }
  68. form > h2:first-child {
  69. border-top: none;
  70. padding-top: 0;
  71. margin-top: 0;
  72. }
  73. /** Form errors **/
  74. #errors, .errorlist {
  75. padding: 1em;
  76. border: 1px solid #a94442;
  77. border-radius: 4px;
  78. }
  79. /* non-field errorfields */
  80. #errors ul.errorlist {
  81. border: 0;
  82. }
  83. #errors ul {
  84. margin: 0 0 0 1em;
  85. padding: 0;
  86. }
  87. .errorlist {
  88. list-style-type: none;
  89. }
  90. /** Results **/
  91. #map.results {
  92. min-height: 500px;
  93. margin-bottom: 1em;
  94. }
  95. .results .leaflet-popup-content {
  96. margin: 1em;
  97. }
  98. .results .leaflet-popup-content h2 {
  99. font-size: 20px;
  100. }
  101. .results .leaflet-popup-content ul {
  102. margin: 0.5em 0;
  103. padding-left: 1.5em;
  104. }
  105. /** Media-queries **
  106. *
  107. * Focused on readability (where background and text overlap) and avoiding
  108. * big vertical empty spaces.
  109. */
  110. @media (min-width: 0px) {
  111. h1 {
  112. max-width: 500px;
  113. background-color: rgba(250, 250, 250, 0.5);
  114. }
  115. body.form section header,
  116. body.home section header,{
  117. margin-top: 0px
  118. }
  119. body {
  120. background-image: url("img/background_main_767.jpg");
  121. }
  122. }
  123. @media (min-width: 480px) {
  124. h1 {
  125. max-width: 400px
  126. }
  127. }
  128. @media (min-width: 768px) {
  129. h1 {
  130. max-width: 500px
  131. }
  132. body {
  133. background-image: url("img/background_main_991.jpg");
  134. }
  135. }
  136. @media (min-width: 992px) {
  137. h1 {
  138. max-width: 650px;
  139. }
  140. body.form section header,
  141. body.home section header {
  142. margin-top: 265px
  143. }
  144. body {
  145. background-image: url("img/background_main.jpg");
  146. }
  147. }
  148. @media (min-width: 1200px) {
  149. h1 {
  150. max-width: none;
  151. background-color: transparent;
  152. }
  153. body.form section header,
  154. body.home section header {
  155. margin-top: 250px
  156. }
  157. }