main.css 2.7 KB

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