main.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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% 35px;
  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 {
  65. padding: 1em;
  66. border: 1px solid #a94442;
  67. border-radius: 4px;
  68. }
  69. #errors ul {
  70. margin: 0 0 0 1em;
  71. padding: 0;
  72. }
  73. /** Results **/
  74. #map.results {
  75. min-height: 500px;
  76. margin-bottom: 1em;
  77. }
  78. .results .leaflet-popup-content {
  79. margin: 1em;
  80. }
  81. .results .leaflet-popup-content h2 {
  82. font-size: 20px;
  83. }
  84. .results .leaflet-popup-content ul {
  85. margin: 0.5em 0;
  86. padding-left: 1.5em;
  87. }
  88. /** Media-queries **
  89. *
  90. * Focused on readability (where background and text overlap) and avoiding
  91. * big vertical empty spaces.
  92. */
  93. @media (min-width: 0px) {
  94. h1 {
  95. max-width: 500px;
  96. background-color: rgba(250, 250, 250, 0.5);
  97. }
  98. body.form section header {
  99. margin-top: 0px
  100. }
  101. body {
  102. background-image: url("img/background_main_767.jpg");
  103. }
  104. }
  105. @media (min-width: 480px) {
  106. h1 {
  107. max-width: 400px
  108. }
  109. }
  110. @media (min-width: 768px) {
  111. h1 {
  112. max-width: 500px
  113. }
  114. body {
  115. background-image: url("img/background_main_991.jpg");
  116. }
  117. }
  118. @media (min-width: 992px) {
  119. h1 {
  120. max-width: 650px;
  121. }
  122. body.form section header {
  123. margin-top: 265px
  124. }
  125. body {
  126. background-image: url("img/background_main.jpg");
  127. }
  128. }
  129. @media (min-width: 1200px) {
  130. h1 {
  131. max-width: none;
  132. background-color: transparent;
  133. }
  134. body.form section header {
  135. margin-top: 365px
  136. }
  137. }