1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | @import '../../globals/scss/vars';
|
13 | @import '../../globals/scss/css--reset';
|
14 | @import '../../globals/scss/css--typography';
|
15 | @import '../button/button';
|
16 | @import '../link/link';
|
17 |
|
18 | @mixin footer {
|
19 | @include deprecate(
|
20 | 'The `footer` component in `carbon-components` has been deprecated. ' +
|
21 | 'It will be removed in the next major release.'
|
22 | ) {
|
23 | .#{$prefix}--footer--bottom-fixed {
|
24 | position: fixed;
|
25 | bottom: 0;
|
26 | left: 0;
|
27 | }
|
28 |
|
29 | .#{$prefix}--footer {
|
30 | @include reset;
|
31 | @include font-family;
|
32 | box-sizing: border-box;
|
33 | display: flex;
|
34 | align-items: center;
|
35 | border-top: 2px solid $brand-01;
|
36 | background-color: $ui-01;
|
37 | min-height: 3.5rem;
|
38 | z-index: z('footer');
|
39 | padding: rem(20px) 5%;
|
40 | width: 100%;
|
41 | }
|
42 |
|
43 | .#{$prefix}--footer-info {
|
44 | display: flex;
|
45 |
|
46 | @media screen and (max-width: 600px) {
|
47 | flex-direction: column;
|
48 | }
|
49 | }
|
50 |
|
51 | .#{$prefix}--footer-info__item {
|
52 | @include typescale('delta');
|
53 | @include line-height('body');
|
54 | display: flex;
|
55 | flex-direction: column;
|
56 | margin: 0;
|
57 | margin-right: rem(64px);
|
58 | }
|
59 |
|
60 | .#{$prefix}--footer-info__item > .#{$prefix}--link {
|
61 | font-weight: 600;
|
62 | }
|
63 |
|
64 | .#{$prefix}--footer-info__item > .#{$prefix}--footer-label {
|
65 | @include typescale('zeta');
|
66 | @include line-height('body');
|
67 | margin: 0;
|
68 |
|
69 | @media screen and (max-width: 600px) {
|
70 | display: none;
|
71 | }
|
72 | }
|
73 |
|
74 | .#{$prefix}--footer-cta {
|
75 | margin-left: auto;
|
76 | }
|
77 | }
|
78 | }
|
79 |
|
80 | @include exports('footer') {
|
81 | @if not(feature-flag-enabled('breaking-changes-x')) {
|
82 | @include footer;
|
83 | }
|
84 | }
|