footer.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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. cursor: pointer;
  111. text-decoration: none;
  112. &::after {
  113. display: none;
  114. }
  115. &:hover {
  116. text-decoration: underline;
  117. }
  118. }
  119. .fat-footer-base-meta a:not(.dropdown-toggle) {
  120. color: inherit;
  121. }
  122. .language-picker .dropdown-menu {
  123. .dropdown-header {
  124. display: none; /* hiding rather than removing as still needed in the thin footer */
  125. }
  126. .dropdown-item {
  127. &.active {
  128. color: var(--green-70);
  129. }
  130. &:hover {
  131. text-decoration: none;
  132. }
  133. }
  134. }
  135. }
  136. .fat-footer-base-item {
  137. display: flex;
  138. white-space: nowrap;
  139. }
  140. @include media-breakpoint-down(md) {
  141. .fat-footer-sections {
  142. grid-template-columns: repeat(2, 1fr);
  143. grid-template-rows: repeat(4, auto);
  144. }
  145. .fat-footer-base {
  146. display: flex;
  147. flex-direction: column;
  148. align-items: center;
  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. flex-wrap: wrap;
  164. padding: var(--spacing-02);
  165. margin: var(--spacing-06);
  166. }
  167. .fat-footer-base-meta .fat-footer-base-item {
  168. gap: var(--spacing-09);
  169. justify-content: center;
  170. @include media-breakpoint-down(sm) {
  171. gap: var(--spacing-06);
  172. }
  173. }
  174. .fat-footer-base-social .fat-footer-base-item {
  175. gap: var(--spacing-07);
  176. margin-top: var(--spacing-00);
  177. }
  178. .fat-footer-social {
  179. @include heading-lg;
  180. }
  181. .fat-footer-base-copyright {
  182. order: 2;
  183. }
  184. }
  185. }
  186. @include media-breakpoint-up(md) {
  187. .fat-footer-container {
  188. width: (map.get($grid-breakpoints, 'md') - ($spacing-04 * 2));
  189. }
  190. #footer-brand {
  191. grid-column: auto;
  192. grid-row: 1/-1;
  193. }
  194. .fat-footer-sections {
  195. grid-template-columns: repeat(4, 1fr);
  196. grid-template-rows: repeat(2, auto);
  197. }
  198. .footer-section:last-of-type {
  199. grid-column: 4;
  200. }
  201. .fat-footer-base {
  202. display: flex;
  203. justify-content: space-between;
  204. margin: var(--spacing-07) auto;
  205. .fat-footer-base-section {
  206. display: flex;
  207. align-items: center;
  208. }
  209. .fat-footer-base-item {
  210. padding: var(--spacing-02);
  211. margin: var(--spacing-02);
  212. }
  213. .fat-footer-base-meta .fat-footer-base-item {
  214. gap: var(--spacing-07);
  215. }
  216. .fat-footer-social {
  217. margin: var(--spacing-07) var(--spacing-02);
  218. @include heading-lg;
  219. }
  220. }
  221. }
  222. @include media-breakpoint-up(lg) {
  223. .fat-footer-container {
  224. width: (map.get($grid-breakpoints, 'lg') - $spacing-07);
  225. }
  226. .fat-footer-sections {
  227. grid-template-columns: repeat(4, 1fr);
  228. }
  229. }
  230. @include media-breakpoint-up(xl) {
  231. .fat-footer-container {
  232. width: (map.get($grid-breakpoints, 'xl') - $spacing-09);
  233. }
  234. .fat-footer-sections {
  235. grid-template-columns: repeat(6, 1fr);
  236. grid-template-rows: auto;
  237. }
  238. .footer-section:last-of-type {
  239. grid-column: 6;
  240. }
  241. }
  242. }
  243. .cookie-banner {
  244. @include body-sm;
  245. padding: var(--spacing-05) var(--spacing-07);
  246. position: fixed;
  247. bottom: 0;
  248. left: 0;
  249. right: 0;
  250. z-index: 100;
  251. color: var(--content-secondary);
  252. background: var(--bg-light-secondary);
  253. box-shadow: 0 -5px 8px 0 #0000001a;
  254. .cookie-banner-actions {
  255. padding-top: var(--spacing-04);
  256. }
  257. @include media-breakpoint-up(md) {
  258. align-items: center;
  259. display: flex;
  260. flex-wrap: wrap;
  261. .cookie-banner-content {
  262. flex: 1;
  263. }
  264. .cookie-banner-actions {
  265. flex-shrink: 0;
  266. white-space: nowrap;
  267. padding-top: var(--spacing-00);
  268. }
  269. }
  270. }
  271. .website-redesign-fat-footer {
  272. .fat-footer-container {
  273. @include media-breakpoint-down(sm) {
  274. margin: var(--spacing-11) 0;
  275. }
  276. }
  277. &.fat-footer {
  278. background: var(--content-primary-dark);
  279. color: var(--content-primary);
  280. a {
  281. color: var(--content-primary);
  282. &:visited {
  283. color: var(--content-primary);
  284. }
  285. }
  286. .footer-section-heading {
  287. color: var(--content-primary);
  288. }
  289. h2 {
  290. font-weight: 400;
  291. }
  292. .fat-footer-base {
  293. color: var(--content-primary);
  294. #language-picker-toggle {
  295. color: inherit;
  296. }
  297. }
  298. }
  299. .footer-brand {
  300. background-image: url('../../../../public/img/ol-brand/overleaf-black.svg');
  301. }
  302. @include media-breakpoint-down(sm) {
  303. .fat-footer-sections {
  304. grid-template-columns: repeat(1, 1fr);
  305. grid-template-rows: repeat(6, auto);
  306. }
  307. }
  308. }