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