|
| 1 | +@import '../../../styles/common/mixins/addScrollbar.css'; |
| 2 | + |
1 | 3 | .footer {
|
2 | 4 | align-items: center;
|
3 | 5 | background-color: var(--footer-background-color);
|
|
10 | 12 | width: 100%;
|
11 | 13 | }
|
12 | 14 |
|
| 15 | +.footer--nowrap { |
| 16 | + flex-wrap: nowrap; |
| 17 | +} |
| 18 | + |
13 | 19 | /**
|
14 | 20 | * 1. Use a pseudo element rather than a border so that
|
15 | 21 | * it doesn't add height to the box element.
|
|
35 | 41 | .footer--primary {
|
36 | 42 | @mixin themed .footer {
|
37 | 43 | --footer-border-color: $theme-primary-palette-border-color;
|
| 44 | + --footer-focused-outline-color: $theme-primary-palette-text-color; |
| 45 | + --footer-scrollbar-thumb-color: $theme-primary-scrollbar-thumb-color; |
| 46 | + --footer-background-color: $theme-primary-palette-background-color; |
| 47 | + --footer-text-color: $theme-primary-palette-text-color; |
38 | 48 |
|
39 | 49 | &.footer--quiet {
|
40 | 50 | --footer-border-color: $theme-primary-palette-quiet-border-color;
|
|
43 | 53 | &.footer--transparent {
|
44 | 54 | background-color: transparent;
|
45 | 55 | }
|
46 |
| - |
47 |
| - background-color: $theme-primary-palette-background-color; |
48 |
| - color: $theme-primary-palette-text-color; |
49 | 56 | }
|
50 | 57 | }
|
51 | 58 |
|
52 | 59 | .footer--secondary {
|
53 | 60 | @mixin themed .footer {
|
54 | 61 | --footer-border-color: $theme-secondary-palette-border-color;
|
| 62 | + --footer-focused-outline-color: $theme-secondary-palette-text-color; |
| 63 | + --footer-scrollbar-thumb-color: $theme-primary-scrollbar-thumb-color; |
| 64 | + --footer-background-color: $theme-secondary-palette-background-color; |
| 65 | + --footer-text-color: $theme-secondary-palette-text-color; |
55 | 66 |
|
56 | 67 | &.footer--quiet {
|
57 | 68 | --footer-border-color: $theme-secondary-palette-quiet-border-color;
|
|
60 | 71 | &.footer--transparent {
|
61 | 72 | background-color: transparent;
|
62 | 73 | }
|
63 |
| - |
64 |
| - background-color: $theme-secondary-palette-background-color; |
65 |
| - color: $theme-secondary-palette-text-color; |
66 | 74 | }
|
67 | 75 | }
|
68 | 76 |
|
69 | 77 | .footer--tertiary {
|
70 | 78 | @mixin themed .footer {
|
71 | 79 | --footer-border-color: $theme-tertiary-palette-border-color;
|
| 80 | + --footer-focused-outline-color: $theme-tertiary-palette-text-color; |
| 81 | + --footer-scrollbar-thumb-color: $theme-primary-scrollbar-thumb-color; |
| 82 | + --footer-background-color: $theme-tertiary-palette-background-color; |
| 83 | + --footer-textcolor: $theme-tertiary-palette-text-color; |
72 | 84 |
|
73 | 85 | &.footer--quiet {
|
74 | 86 | --footer-border-color: $theme-tertiary-palette-quiet-border-color;
|
|
77 | 89 | &.footer--transparent {
|
78 | 90 | background-color: transparent;
|
79 | 91 | }
|
80 |
| - |
81 |
| - background-color: $theme-tertiary-palette-background-color; |
82 |
| - color: $theme-tertiary-palette-text-color; |
83 | 92 | }
|
84 | 93 | }
|
85 | 94 |
|
86 | 95 | .footer--contrast {
|
87 | 96 | @mixin themed .footer {
|
88 | 97 | --footer-border-color: $theme-contrast-palette-border-color;
|
| 98 | + --footer-focused-outline-color: $theme-contrast-palette-text-color; |
| 99 | + --footer-scrollbar-thumb-color: $theme-contrast-scrollbar-thumb-color; |
| 100 | + --footer-background-color: var(--phork-contrast-color, $theme-contrast-palette-background-color); |
| 101 | + --footer-text-color: $theme-contrast-palette-text-color; |
89 | 102 |
|
90 | 103 | &.footer--quiet {
|
91 | 104 | --footer-border-color: $theme-contrast-palette-quiet-border-color;
|
|
94 | 107 | &.footer--transparent {
|
95 | 108 | background-color: transparent;
|
96 | 109 | }
|
97 |
| - |
98 |
| - background-color: var(--phork-contrast-color, $theme-contrast-palette-background-color); |
99 |
| - color: $theme-contrast-palette-text-color; |
100 | 110 | }
|
101 | 111 | }
|
102 | 112 |
|
103 | 113 | .footer--full {
|
104 | 114 | height: 100%;
|
105 | 115 | width: 100%;
|
106 | 116 | }
|
| 117 | + |
| 118 | +.footer--scrollable { |
| 119 | + &.footer--medium-scrollbar { |
| 120 | + @mixin addScrollbar var(--footer-scrollbar-thumb-color); |
| 121 | + } |
| 122 | + |
| 123 | + &.footer--small-scrollbar { |
| 124 | + @mixin addSmallScrollbar var(--footer-scrollbar-thumb-color); |
| 125 | + } |
| 126 | + |
| 127 | + &.footer--xsmall-scrollbar { |
| 128 | + @mixin addXSmallScrollbar var(--footer-scrollbar-thumb-color); |
| 129 | + } |
| 130 | + |
| 131 | + &:focus { |
| 132 | + outline: none; |
| 133 | + } |
| 134 | + |
| 135 | + &.is-accessible:focus { |
| 136 | + outline: 1px solid var(--footer-focused-outline-color); |
| 137 | + outline-offset: -1px; |
| 138 | + } |
| 139 | + |
| 140 | + overflow: auto; |
| 141 | +} |
0 commit comments