footer.less 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. footer.site-footer {
  2. background-color: @footer-bg-color;
  3. border-top: 1px solid @gray-lighter;
  4. font-size: 0.9rem;
  5. position: absolute;
  6. bottom: 0;
  7. width: 100%;
  8. height: @footer-height;
  9. line-height: @footer-height - 1; // Hack — in Chrome, using the full @footer-height would generate vertical scrolling
  10. ul {
  11. list-style: none;
  12. margin: 0px;
  13. li {
  14. display: inline-block;
  15. margin: 0 0.5em;
  16. }
  17. i {
  18. font-size: 1.2rem;
  19. }
  20. }
  21. li.lngOption {
  22. text-align: left;
  23. display: list-item;
  24. img {
  25. vertical-align: text-bottom;
  26. }
  27. a:hover,
  28. a:focus {
  29. color: @white;
  30. }
  31. }
  32. a {
  33. color: @footer-link-color;
  34. &:hover,
  35. &:focus {
  36. color: @footer-link-hover-color;
  37. }
  38. }
  39. }
  40. .site-footer-content {
  41. .container-fluid;
  42. }
  43. .sprite-icon-lang {
  44. display: inline-block;
  45. vertical-align: middle;
  46. }
  47. .fat-footer {
  48. background: @ol-blue-gray-6;
  49. color: @ol-blue-gray-1;
  50. display: flex;
  51. flex-direction: column;
  52. .fat-footer-container {
  53. margin: @margin-xxl auto;
  54. }
  55. a {
  56. color: @ol-blue-gray-1;
  57. }
  58. .footer-brand-container {
  59. flex: 1;
  60. }
  61. .fat-footer-sections {
  62. display: grid;
  63. column-gap: @margin-md;
  64. padding: 0 @padding-md @padding-md;
  65. }
  66. .footer-brand {
  67. display: block;
  68. height: 37px; /* TODO: configurable? */
  69. width: @navbar-brand-width;
  70. background-image: @navbar-brand-image-url;
  71. background-size: contain;
  72. background-repeat: no-repeat;
  73. background-position: left center;
  74. }
  75. .footer-section-heading {
  76. font-family: @font-family-serif;
  77. font-size: @font-size-h3;
  78. line-height: @headings-line-height;
  79. margin-bottom: @margin-md;
  80. margin-top: @margin-md;
  81. }
  82. .footer-section ul {
  83. font-family: @font-family-sans-serif;
  84. font-size: @font-size-base;
  85. line-height: @line-height-small;
  86. }
  87. .footer-section li {
  88. padding-bottom: @padding-sm;
  89. }
  90. #footer-brand {
  91. grid-column: ~'1/-1';
  92. margin-top: @margin-md;
  93. }
  94. .fat-footer-base {
  95. color: @ol-blue-gray-2;
  96. font-size: @font-size-small;
  97. line-height: @line-height-base;
  98. .fat-footer-base-meta a:not(.dropdown-toggle) {
  99. color: inherit;
  100. }
  101. .language-picker .dropdown-menu {
  102. .dropdown-header {
  103. display: none; /* hiding rather than removing as still needed in the thin footer */
  104. }
  105. a {
  106. color: @gray-dark;
  107. &:hover {
  108. color: white;
  109. }
  110. }
  111. }
  112. }
  113. .fat-footer-base-item {
  114. display: flex;
  115. white-space: nowrap;
  116. }
  117. @media (max-width: @screen-xs-max) {
  118. .fat-footer-sections {
  119. grid-template-columns: repeat(2, 1fr);
  120. grid-template-rows: repeat(4, auto);
  121. }
  122. .fat-footer-base {
  123. display: flex;
  124. flex-direction: column;
  125. align-items: center;
  126. margin: @margin-md auto 0;
  127. .fat-footer-base-section {
  128. display: flex;
  129. align-items: center;
  130. }
  131. .fat-footer-base-social {
  132. order: 1;
  133. }
  134. .fat-footer-base-meta {
  135. display: flex;
  136. flex-direction: column-reverse;
  137. align-items: center;
  138. order: 2;
  139. }
  140. .fat-footer-base-item {
  141. padding: @padding-xs;
  142. margin: @margin-lg / 2;
  143. }
  144. .fat-footer-base-meta .fat-footer-base-item {
  145. gap: @margin-lg;
  146. }
  147. .fat-footer-base-social .fat-footer-base-item {
  148. gap: @margin-md;
  149. }
  150. .fat-footer-social {
  151. font-size: @fat-footer-social-font-size;
  152. }
  153. .fat-footer-base-copyright {
  154. order: 2;
  155. }
  156. }
  157. }
  158. @media (min-width: @screen-sm-min) {
  159. .fat-footer-container {
  160. width: (@screen-sm - (@padding-sm * 2));
  161. }
  162. #footer-brand {
  163. grid-column: auto;
  164. grid-row: ~'1/-1';
  165. }
  166. .fat-footer-sections {
  167. grid-template-columns: repeat(4, 1fr);
  168. grid-template-rows: repeat(2, auto);
  169. }
  170. .footer-section:last-of-type {
  171. grid-column: 4;
  172. }
  173. .footer-section ul {
  174. line-height: 20px;
  175. }
  176. .fat-footer-base {
  177. display: flex;
  178. justify-content: space-between;
  179. margin: @margin-md auto;
  180. .fat-footer-base-section {
  181. display: flex;
  182. align-items: center;
  183. }
  184. .fat-footer-base-item {
  185. padding: @padding-xs;
  186. margin: @margin-xs;
  187. }
  188. .fat-footer-base-meta .fat-footer-base-item {
  189. gap: @margin-md;
  190. }
  191. .fat-footer-social {
  192. margin: 0 @margin-xs;
  193. font-size: @fat-footer-social-font-size;
  194. }
  195. }
  196. }
  197. @media (min-width: @screen-md-min) {
  198. .fat-footer-container {
  199. width: (@screen-md - @padding-md);
  200. }
  201. .fat-footer-sections {
  202. grid-template-columns: repeat(4, 1fr);
  203. }
  204. }
  205. @media (min-width: @screen-lg-min) {
  206. .fat-footer-container {
  207. width: (@screen-lg - @padding-lg);
  208. }
  209. .fat-footer-sections {
  210. grid-template-columns: repeat(6, 1fr);
  211. grid-template-rows: auto;
  212. }
  213. .footer-section:last-of-type {
  214. grid-column: 6;
  215. }
  216. }
  217. }
  218. .cookie-banner {
  219. padding: 10px 20px;
  220. font-size: 0.9rem;
  221. line-height: 1;
  222. position: fixed;
  223. bottom: 0px;
  224. left: 0;
  225. right: 0;
  226. z-index: 100;
  227. color: @text-color;
  228. background: @ol-blue-gray-0;
  229. box-shadow: 0px -5px 8px 0px #0000001a;
  230. .cookie-banner-actions {
  231. padding-top: 10px;
  232. }
  233. @media (min-width: @screen-sm-min) {
  234. align-items: center;
  235. display: flex;
  236. flex-wrap: wrap;
  237. .cookie-banner-content {
  238. flex: 1;
  239. }
  240. .cookie-banner-actions {
  241. flex-shrink: 0;
  242. white-space: nowrap;
  243. padding-top: 0;
  244. }
  245. }
  246. }