Skip to content

Commit cd49b15

Browse files
authoredOct 1, 2021
fix(responsive): Fix footer layout (#299)
Signed-off-by: Tomas Coufal <[email protected]>
1 parent 2b51445 commit cd49b15

File tree

2 files changed

+30
-33
lines changed

2 files changed

+30
-33
lines changed
 

‎src/components/Layout/Footer.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import redhatLogo from './RHLogo.png';
44
import './Footer.scss';
55

66
export const Footer = () => (
7-
<footer
8-
key="footer-2"
9-
style={{ minHeight: '50px', paddingTop: '10px' }}
10-
className="ws-org-pfsite-l-footer-dark pf-m-no-fill"
11-
>
7+
<footer key="footer-2" className="ws-org-pfsite-l-footer-dark pf-m-no-fill">
128
<Grid className="pf-u-py-xl-on-sm pf-u-py-0-on-md pf-u-align-items-center">
139
<GridItem md={2} mdOffset={1}>
1410
<Text
@@ -20,10 +16,10 @@ export const Footer = () => (
2016
<img src={redhatLogo} alt="Red Hat logo" width="100px" />
2117
</Text>
2218
</GridItem>
23-
<GridItem md={4} lg={3} xl={2}>
19+
<GridItem md={3}>
2420
<span className="ws-org-pfsite-site-copyright">Operate First is a Red Hat Initiative.</span>
2521
</GridItem>
26-
<GridItem md={4} lg={5} className="pf-u-ml-xl-on-xl">
22+
<GridItem md={6}>
2723
<Text
2824
component={TextVariants.a}
2925
href="//www.redhat.com/en/about/privacy-policy"

‎src/components/Layout/Footer.scss

+27-26
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
.ws-org-pfsite-l-footer-dark {
2-
background: #151515 !important;
3-
}
4-
.pf-c-page__main-section.ws-org-pfsite-l-footer-dark > * {
5-
color: #d2d2d2;
6-
}
7-
.ws-org-pfsite-l-footer-dark a {
8-
padding-right: var(--pf-global--spacer--sm);
9-
padding-left: var(--pf-global--spacer--sm);
10-
border-right: var(--pf-global--BorderWidth--sm) solid #d2d2d2;
11-
font-weight: 100;
12-
font-size: 10px;
13-
color: #d2d2d2;
14-
text-decoration: underline;
15-
}
16-
.ws-org-pfsite-l-footer-dark a:first-of-type {
17-
padding-left: 0;
18-
}
19-
.ws-org-pfsite-l-footer-dark a:last-of-type {
20-
padding-right: 0;
21-
border: none;
22-
}
23-
.ws-org-pfsite-site-copyright {
24-
white-space: nowrap;
25-
color: #d2d2d2;
26-
font-size: 10px;
27-
}
2+
background: #151515 !important;
3+
padding: 10px;
4+
}
5+
.pf-c-page__main-section.ws-org-pfsite-l-footer-dark > * {
6+
color: #d2d2d2;
7+
}
8+
.ws-org-pfsite-l-footer-dark a {
9+
padding-right: var(--pf-global--spacer--sm);
10+
padding-left: var(--pf-global--spacer--sm);
11+
border-right: var(--pf-global--BorderWidth--sm) solid #d2d2d2;
12+
font-weight: 100;
13+
font-size: 10px;
14+
color: #d2d2d2;
15+
text-decoration: underline;
16+
}
17+
.ws-org-pfsite-l-footer-dark a:first-of-type {
18+
padding-left: 0;
19+
}
20+
.ws-org-pfsite-l-footer-dark a:last-of-type {
21+
padding-right: 0;
22+
border: none;
23+
}
24+
.ws-org-pfsite-site-copyright {
25+
white-space: nowrap;
26+
color: #d2d2d2;
27+
font-size: 10px;
28+
}

0 commit comments

Comments
 (0)