footer.less 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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.lng-option {
  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. color: @neutral-20;
  77. font-family: @font-family-serif;
  78. font-size: @font-size-h3;
  79. line-height: @headings-line-height;
  80. margin-bottom: @margin-md;
  81. margin-top: @margin-md;
  82. }
  83. .footer-section ul {
  84. font-family: @font-family-sans-serif;
  85. font-size: @font-size-base;
  86. line-height: @line-height-small;
  87. }
  88. .footer-section li {
  89. padding-bottom: @padding-sm;
  90. }
  91. #footer-brand {
  92. grid-column: ~'1/-1';
  93. margin-top: @margin-md;
  94. }
  95. .fat-footer-base {
  96. color: @ol-blue-gray-2;
  97. font-size: @font-size-small;
  98. line-height: @line-height-base;
  99. .fat-footer-base-meta a:not(.dropdown-toggle) {
  100. color: inherit;
  101. }
  102. .language-picker .dropdown-menu {
  103. .dropdown-header {
  104. display: none; /* hiding rather than removing as still needed in the thin footer */
  105. }
  106. a {
  107. color: @gray-dark;
  108. &:hover {
  109. color: white;
  110. }
  111. }
  112. }
  113. .fat-footer-social {
  114. &.x-logo svg path {
  115. fill: @ol-blue-gray-1;
  116. }
  117. &.facebook-logo svg,
  118. &.linkedin-logo svg {
  119. path.background {
  120. fill: @ol-blue-gray-1;
  121. }
  122. }
  123. &.facebook-logo svg {
  124. path.text {
  125. fill: transparent;
  126. }
  127. }
  128. &.linkedin-logo svg {
  129. path.text {
  130. fill: @ol-blue-gray-6;
  131. }
  132. }
  133. }
  134. }
  135. .fat-footer-base-item {
  136. display: flex;
  137. white-space: nowrap;
  138. }
  139. @media (max-width: @screen-xs-max) {
  140. .fat-footer-sections {
  141. grid-template-columns: repeat(2, 1fr);
  142. grid-template-rows: repeat(4, auto);
  143. }
  144. .fat-footer-base {
  145. display: flex;
  146. flex-direction: column;
  147. align-items: center;
  148. margin: @margin-md auto 0;
  149. .fat-footer-base-section {
  150. display: flex;
  151. align-items: center;
  152. }
  153. .fat-footer-base-social {
  154. order: 1;
  155. }
  156. .fat-footer-base-meta {
  157. display: flex;
  158. flex-direction: column-reverse;
  159. align-items: center;
  160. order: 2;
  161. }
  162. .fat-footer-base-item {
  163. padding: @padding-xs;
  164. margin: @margin-lg / 2;
  165. }
  166. .fat-footer-base-meta .fat-footer-base-item {
  167. gap: @margin-lg;
  168. }
  169. .fat-footer-base-social .fat-footer-base-item {
  170. gap: @margin-md;
  171. }
  172. .fat-footer-social {
  173. font-size: @fat-footer-social-font-size;
  174. }
  175. .fat-footer-base-copyright {
  176. order: 2;
  177. }
  178. }
  179. }
  180. @media (min-width: @screen-sm-min) {
  181. .fat-footer-container {
  182. width: (@screen-sm - (@padding-sm * 2));
  183. }
  184. #footer-brand {
  185. grid-column: auto;
  186. grid-row: ~'1/-1';
  187. }
  188. .fat-footer-sections {
  189. grid-template-columns: repeat(4, 1fr);
  190. grid-template-rows: repeat(2, auto);
  191. }
  192. .footer-section:last-of-type {
  193. grid-column: 4;
  194. }
  195. .footer-section ul {
  196. line-height: 20px;
  197. }
  198. .fat-footer-base {
  199. display: flex;
  200. justify-content: space-between;
  201. margin: @margin-md auto;
  202. .fat-footer-base-section {
  203. display: flex;
  204. align-items: center;
  205. }
  206. .fat-footer-base-item {
  207. padding: @padding-xs;
  208. margin: @margin-xs;
  209. }
  210. .fat-footer-base-meta .fat-footer-base-item {
  211. gap: @margin-md;
  212. }
  213. .fat-footer-social {
  214. margin: 0 @margin-xs;
  215. font-size: @fat-footer-social-font-size;
  216. }
  217. }
  218. }
  219. @media (min-width: @screen-md-min) {
  220. .fat-footer-container {
  221. width: (@screen-md - @padding-md);
  222. }
  223. .fat-footer-sections {
  224. grid-template-columns: repeat(4, 1fr);
  225. }
  226. }
  227. @media (min-width: @screen-lg-min) {
  228. .fat-footer-container {
  229. width: (@screen-lg - @padding-lg);
  230. }
  231. .fat-footer-sections {
  232. grid-template-columns: repeat(7, 1fr);
  233. grid-template-rows: auto;
  234. }
  235. .footer-section:last-of-type {
  236. grid-column: 7;
  237. }
  238. }
  239. }
  240. .cookie-banner {
  241. padding: 10px 20px;
  242. font-size: 0.9rem;
  243. line-height: 1;
  244. position: fixed;
  245. bottom: 0px;
  246. left: 0;
  247. right: 0;
  248. z-index: 100;
  249. color: @text-color;
  250. background: @ol-blue-gray-0;
  251. box-shadow: 0px -5px 8px 0px #0000001a;
  252. .cookie-banner-actions {
  253. padding-top: 10px;
  254. }
  255. @media (min-width: @screen-sm-min) {
  256. align-items: center;
  257. display: flex;
  258. flex-wrap: wrap;
  259. .cookie-banner-content {
  260. flex: 1;
  261. }
  262. .cookie-banner-actions {
  263. flex-shrink: 0;
  264. white-space: nowrap;
  265. padding-top: 0;
  266. }
  267. }
  268. }
  269. .website-redesign-fat-footer {
  270. .fat-footer-container {
  271. @media (max-width: @screen-xs-max) {
  272. margin: @margin-xxl 0px;
  273. }
  274. }
  275. &.fat-footer {
  276. background: @white;
  277. color: @neutral-90;
  278. a {
  279. color: @neutral-90;
  280. }
  281. .footer-section-heading {
  282. color: @neutral-90;
  283. }
  284. h2 {
  285. font-weight: 400;
  286. }
  287. .fat-footer-base {
  288. color: @neutral-90;
  289. }
  290. // This is duplication of fill colours in the SVGs themselves. This could be avoided by using :has() but that's not
  291. // supported in older versions of browsers and these logos need to be correct.
  292. .fat-footer-social {
  293. &.x-logo svg path {
  294. fill: #0f1419;
  295. }
  296. &.facebook-logo svg,
  297. &.linkedin-logo svg {
  298. path.text {
  299. fill: #fff;
  300. }
  301. }
  302. &.facebook-logo svg {
  303. path.background {
  304. fill: #0866ff;
  305. }
  306. }
  307. &.linkedin-logo svg {
  308. path.background {
  309. fill: #0b66c3;
  310. }
  311. }
  312. }
  313. }
  314. .footer-brand {
  315. background-image: @navbar-brand-image-url-website-redesign;
  316. }
  317. @media (max-width: @screen-xs-max) {
  318. .fat-footer-sections {
  319. grid-template-columns: repeat(1, 1fr);
  320. grid-template-rows: repeat(6, auto);
  321. }
  322. }
  323. }