Skip to content

Commit c87d083

Browse files
committed
Replaced the “Portal” link with an icon.
1 parent 31e7f1b commit c87d083

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

FrontEnd/styles/header_footer.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ footer {
3636
display: flex;
3737
flex-direction: row;
3838
flex-wrap: wrap;
39+
align-items: center;
3940
justify-content: center;
4041
margin: 0;
4142
padding: 0;
@@ -91,6 +92,13 @@ header {
9192
border-color: var(--header-link-highlight);
9293
}
9394
}
95+
96+
li.portal {
97+
display: flex;
98+
align-items: center;
99+
justify-content: center;
100+
height: 100%;
101+
}
94102
}
95103

96104
@media screen and (max-width: $mobile-breakpoint) {

FrontEnd/styles/search.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ section.search {
111111

112112
nav > ul > li.search > form {
113113
grid-template-columns: auto 30px;
114-
max-width: 160px;
114+
max-width: 140px;
115115

116116
input[type='search'] {
117117
padding: 5px;

Public/images/portal.svg

Lines changed: 1 addition & 0 deletions
Loading

Sources/App/Views/NavMenuItems.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ enum NavMenuItem {
3737
return .li(
3838
.a(
3939
.href(SiteURL.addAPackage.relativeURL()),
40-
"Add a Package"
40+
"Add Package"
4141
)
4242
)
4343
case .blog:
@@ -68,9 +68,14 @@ enum NavMenuItem {
6868
)
6969
case .portal:
7070
return .li(
71+
.class("portal"),
7172
.a(
7273
.href(SiteURL.portal.relativeURL()),
73-
"Portal"
74+
.img(
75+
.alt("Portal"),
76+
.src(SiteURL.images("portal.svg").relativeURL()),
77+
.width(20)
78+
)
7479
)
7580
)
7681
}

0 commit comments

Comments
 (0)