Skip to content

Commit 5dc533b

Browse files
Merge pull request #2358 from insectengine/CommonhausFoundation_footer
refactored CF bar to use flexbox instead of columns. This should clea…
2 parents 0a85258 + b4b690c commit 5dc533b

File tree

2 files changed

+53
-72
lines changed

2 files changed

+53
-72
lines changed

_includes/CF-footerband.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<div class="content cf-footer">
2-
<div class="grid-wrapper">
2+
<div class="flexcontainer">
33
<span class="cf-logo">
44
<img src="https://raw.githubusercontent.com/commonhaus/artwork/main/foundation/brand/svg/CF_logo_horizontal_single_reverse.svg"/>
55
</span>
66
<span class="license">
77
Copyright © Quarkus. All rights reserved. For details on our trademarks, please visit our <a href="https://www.commonhaus.org/policies/trademark-policy/">Trademark Policy</a> and <a href="https://www.commonhaus.org/trademarks/">Trademark List</a>. Trademarks of third parties are owned by their respective holders and their mention here does not suggest any endorsement or association.
88
</span>
9-
<span class="sponsor">
10-
Sponsored by
11-
</span>
12-
<span class="sponsor-logo">
13-
<a href="https://www.redhat.com/" target="_blank"><img src="{{site.baseurl}}/assets/images/redhat_reversed.svg"></a>
9+
<span class="sponsorcontainer">
10+
<span class="sponsor">
11+
Sponsored by
12+
</span>
13+
<span class="sponsor-logo">
14+
<a href="https://www.redhat.com/" target="_blank"><img src="{{site.baseurl}}/assets/images/redhat_reversed.svg"></a>
15+
</span>
1416
</span>
1517
</div>
1618
</div>

_sass/includes/cf-footer.scss

Lines changed: 45 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,90 +3,69 @@
33
font-size: .75rem;
44
font-weight: 200;
55

6-
.grid-wrapper { padding: 1rem 0;
6+
.flexcontainer {
7+
display: flex;
8+
padding: 1rem 0;
9+
align-items: center;
710

811
@media screen and (max-width: 1024px) {
9-
padding: 1.25rem 0;
10-
}
11-
12-
@media screen and (max-width: 480px) {
13-
padding: 1.5rem 0;
14-
}
12+
flex-direction: column;
13+
align-items: start;
14+
padding: 1.5rem 0;
1515
}
1616

17-
.cf-logo {
18-
grid-column: 1/4;
19-
align-self: center;
17+
.cf-logo {
2018
padding-right: 2rem;
19+
align-items: center;
20+
img {min-width: 350px;
2121

22-
img {min-width: 200px;}
23-
24-
@media screen and (max-width: 1024px) {
25-
grid-column: 1/6;
26-
}
27-
28-
@media screen and (max-width: 480px) {
29-
grid-column: 1/13;
30-
justify-self: normal;
31-
order: 1;
22+
@media screen and (max-width: 1024px) {
23+
min-width: 300px;
24+
}
25+
}
3226
}
33-
}
3427

28+
.license {
29+
color: $grey-1;
3530

31+
i {
32+
color: $grey-1;
33+
}
3634

37-
.license {
38-
grid-column: 4/11;
39-
align-self: center;
40-
color: $grey-1;
35+
a {
36+
color: $grey-1;
37+
font-size: .75rem;
38+
font-weight: 200;
39+
}
4140

42-
i {
43-
color: $grey-1;
41+
@media screen and (max-width: 1024px) {
42+
justify-self: left;
43+
padding: 1rem 0;
44+
}
4445
}
4546

46-
a {
47-
color: $grey-1;
48-
font-size: .75rem;
49-
font-weight: 200;
50-
}
47+
.sponsorcontainer {
48+
display: flex;
49+
flex-direction: row;
50+
padding-left: 2rem;
51+
5152

5253
@media screen and (max-width: 1024px) {
53-
grid-column: 1/13;
54-
justify-self: left;
55-
}
56-
57-
@media screen and (max-width: 480px) {
58-
grid-column: 1/13;
59-
justify-self: center;
60-
order: 2;
54+
padding-left: 0;
6155
}
62-
}
6356

64-
.sponsor {
65-
grid-column: 11/12;
66-
align-self: center;
67-
justify-self: end;
68-
color: $grey-1;
57+
.sponsor {
58+
justify-self: end;
59+
color: $grey-1;
60+
white-space: nowrap;
61+
padding-right: .75rem;
62+
}
6963

70-
71-
@media screen and (max-width: 1024px) {
72-
grid-column: 5/12;
73-
justify-self: right;
74-
}
75-
@media screen and (max-width: 480px) {
76-
grid-column: 1/6;
77-
justify-self: right;
78-
order: 3;
79-
}
80-
}
81-
.sponsor-logo {
82-
grid-column: 12/13;
83-
justify-self: end;
84-
align-self: center;
85-
img { width: 6rem; max-width: none !important;}
86-
@media screen and (max-width: 480px) {
87-
grid-column: 6/13;
88-
justify-self: left;
89-
order: 4;
64+
.sponsor-logo {
65+
justify-self: end;
66+
img { width: 6rem; max-width: none !important;
67+
}
68+
}
9069
}
9170
}
9271
}

0 commit comments

Comments
 (0)