footer.scss 6.9 KB

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