footer.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. @use 'sass:map';
  2. footer.site-footer {
  3. background-color: var(--bg-light-primary);
  4. border-top: 1px solid var(--border-primary-dark);
  5. position: absolute;
  6. bottom: 0;
  7. width: 100%;
  8. @include body-sm;
  9. height: $footer-height;
  10. ul {
  11. list-style: none;
  12. margin: var(--spacing-00);
  13. li {
  14. display: inline-block;
  15. margin: var(--spacing-07) var(--spacing-04);
  16. }
  17. i {
  18. font-size: var(--font-size-05);
  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: var(--content-primary-dark);
  30. &:visited {
  31. color: var(--content-primary-dark);
  32. }
  33. }
  34. }
  35. a {
  36. color: var(--content-secondary-dark);
  37. &:hover,
  38. &:focus {
  39. color: var(--content-secondary-dark);
  40. }
  41. }
  42. }
  43. .site-footer-content {
  44. @extend .container-fluid;
  45. }
  46. .sprite-icon-lang {
  47. display: inline-block;
  48. vertical-align: middle;
  49. }
  50. .fat-footer {
  51. background: var(--bg-dark-primary);
  52. color: var(--content-secondary-dark);
  53. display: flex;
  54. flex-direction: column;
  55. .fat-footer-container {
  56. margin: var(--spacing-11) auto;
  57. @include media-breakpoint-down(sm) {
  58. margin: var(--spacing-11) 0;
  59. }
  60. }
  61. a {
  62. color: var(--content-secondary-dark);
  63. text-decoration: none;
  64. &:hover {
  65. color: var(--content-secondary-dark);
  66. text-decoration: underline;
  67. }
  68. &:visited {
  69. color: var(--content-secondary-dark);
  70. }
  71. }
  72. .footer-brand-container {
  73. flex: 1;
  74. }
  75. .fat-footer-sections {
  76. display: grid;
  77. column-gap: var(--spacing-07);
  78. padding: 0 var(--spacing-07) var(--spacing-07);
  79. }
  80. .footer-brand {
  81. display: block;
  82. height: 37px;
  83. width: 130px;
  84. background-image: url('../../../../public/img/ol-brand/overleaf-white.svg');
  85. background-size: contain;
  86. background-repeat: no-repeat;
  87. background-position: left center;
  88. }
  89. .footer-section-heading {
  90. color: var(--content-secondary-dark);
  91. @include heading-sm;
  92. margin-bottom: var(--spacing-07);
  93. margin-top: var(--spacing-07);
  94. }
  95. .footer-section ul {
  96. @include body-sm;
  97. }
  98. .footer-section li {
  99. padding-bottom: var(--spacing-04);
  100. }
  101. #footer-brand {
  102. grid-column: 1/-1;
  103. margin-top: var(--spacing-07);
  104. }
  105. .fat-footer-base {
  106. color: var(--content-disabled);
  107. @include body-sm;
  108. #language-picker-toggle {
  109. color: var(--content-secondary-dark);
  110. }
  111. .fat-footer-base-meta a:not(.dropdown-toggle) {
  112. color: inherit;
  113. }
  114. .language-picker .dropdown-menu {
  115. .dropdown-header {
  116. display: none; /* hiding rather than removing as still needed in the thin footer */
  117. }
  118. .dropdown-item {
  119. &.active {
  120. color: var(--green-70);
  121. }
  122. &:hover {
  123. text-decoration: none;
  124. }
  125. }
  126. }
  127. }
  128. .fat-footer-base-item {
  129. display: flex;
  130. white-space: nowrap;
  131. }
  132. @include media-breakpoint-down(md) {
  133. .fat-footer-sections {
  134. grid-template-columns: repeat(2, 1fr);
  135. grid-template-rows: repeat(4, auto);
  136. }
  137. .fat-footer-base {
  138. display: flex;
  139. flex-direction: column;
  140. align-items: center;
  141. .fat-footer-base-section {
  142. display: flex;
  143. align-items: center;
  144. }
  145. .fat-footer-base-social {
  146. order: 1;
  147. }
  148. .fat-footer-base-meta {
  149. display: flex;
  150. flex-direction: column-reverse;
  151. align-items: center;
  152. order: 2;
  153. }
  154. .fat-footer-base-item {
  155. flex-wrap: wrap;
  156. padding: var(--spacing-02);
  157. margin: var(--spacing-06);
  158. }
  159. .fat-footer-base-meta .fat-footer-base-item {
  160. gap: var(--spacing-09);
  161. justify-content: center;
  162. @include media-breakpoint-down(sm) {
  163. gap: var(--spacing-06);
  164. }
  165. }
  166. .fat-footer-base-social .fat-footer-base-item {
  167. gap: var(--spacing-07);
  168. margin-top: var(--spacing-00);
  169. }
  170. .fat-footer-social {
  171. @include heading-lg;
  172. }
  173. .fat-footer-base-copyright {
  174. order: 2;
  175. }
  176. }
  177. }
  178. @include media-breakpoint-up(md) {
  179. .fat-footer-container {
  180. width: (map.get($grid-breakpoints, 'md') - ($spacing-04 * 2));
  181. }
  182. #footer-brand {
  183. grid-column: auto;
  184. grid-row: 1/-1;
  185. }
  186. .fat-footer-sections {
  187. grid-template-columns: repeat(4, 1fr);
  188. grid-template-rows: repeat(2, auto);
  189. }
  190. .footer-section:last-of-type {
  191. grid-column: 4;
  192. }
  193. .fat-footer-base {
  194. display: flex;
  195. justify-content: space-between;
  196. margin: var(--spacing-07) auto;
  197. .fat-footer-base-section {
  198. display: flex;
  199. align-items: center;
  200. }
  201. .fat-footer-base-item {
  202. padding: var(--spacing-02);
  203. margin: var(--spacing-02);
  204. }
  205. .fat-footer-base-meta .fat-footer-base-item {
  206. gap: var(--spacing-07);
  207. }
  208. .fat-footer-social {
  209. margin: var(--spacing-07) var(--spacing-02);
  210. @include heading-lg;
  211. }
  212. }
  213. }
  214. @include media-breakpoint-up(lg) {
  215. .fat-footer-container {
  216. width: (map.get($grid-breakpoints, 'lg') - $spacing-07);
  217. }
  218. .fat-footer-sections {
  219. grid-template-columns: repeat(4, 1fr);
  220. }
  221. }
  222. @include media-breakpoint-up(xl) {
  223. .fat-footer-container {
  224. width: (map.get($grid-breakpoints, 'xl') - $spacing-09);
  225. }
  226. .fat-footer-sections {
  227. grid-template-columns: repeat(6, 1fr);
  228. grid-template-rows: auto;
  229. }
  230. .footer-section:last-of-type {
  231. grid-column: 6;
  232. }
  233. }
  234. }
  235. .cookie-banner {
  236. @include body-sm;
  237. padding: var(--spacing-05) var(--spacing-07);
  238. position: fixed;
  239. bottom: 0;
  240. left: 0;
  241. right: 0;
  242. z-index: 100;
  243. color: var(--content-secondary);
  244. background: var(--bg-light-secondary);
  245. box-shadow: 0 -5px 8px 0 #0000001a;
  246. .cookie-banner-actions {
  247. padding-top: var(--spacing-04);
  248. }
  249. @include media-breakpoint-up(md) {
  250. align-items: center;
  251. display: flex;
  252. flex-wrap: wrap;
  253. .cookie-banner-content {
  254. flex: 1;
  255. }
  256. .cookie-banner-actions {
  257. flex-shrink: 0;
  258. white-space: nowrap;
  259. padding-top: var(--spacing-00);
  260. }
  261. }
  262. }
  263. .website-redesign-fat-footer {
  264. .fat-footer-container {
  265. @include media-breakpoint-down(sm) {
  266. margin: var(--spacing-11) 0;
  267. }
  268. }
  269. &.fat-footer {
  270. background: var(--content-primary-dark);
  271. color: var(--content-primary);
  272. a {
  273. color: var(--content-primary);
  274. &:visited {
  275. color: var(--content-primary);
  276. }
  277. }
  278. .footer-section-heading {
  279. color: var(--content-primary);
  280. }
  281. h2 {
  282. font-weight: 400;
  283. }
  284. .fat-footer-base {
  285. color: var(--content-primary);
  286. }
  287. }
  288. .footer-brand {
  289. background-image: url('../../../../public/img/ol-brand/overleaf-black.svg');
  290. }
  291. @include media-breakpoint-down(sm) {
  292. .fat-footer-sections {
  293. grid-template-columns: repeat(1, 1fr);
  294. grid-template-rows: repeat(6, auto);
  295. }
  296. }
  297. }