Skip to content

Commit bb995df

Browse files
committed
fix navigation on mobile
Signed-off-by: Arhell <[email protected]>
1 parent 89b93a0 commit bb995df

File tree

6 files changed

+56
-45
lines changed

6 files changed

+56
-45
lines changed

docs/resources/_gen/assets/scss/sass/styles.scss_b95b077eb505d5c0aff8055eaced30ad.content

+1-1
Large diffs are not rendered by default.

docs/resources/_gen/assets/scss/sass/styles.scss_f300667da4f5b5f84e1a9e0702b2fdde.content

+34-32
Original file line numberDiff line numberDiff line change
@@ -7837,7 +7837,7 @@ body {
78377837
text-align: left; }
78387838
@media only screen and (max-width: 60em) {
78397839
.home #helm .billboard {
7840-
padding: 200px 23px 100px 20px; } }
7840+
padding: 0 23px 100px 20px; } }
78417841
.home #helm .billboard .helm-logo {
78427842
max-width: 120px; }
78437843
.home #helm .billboard #underline1 {
@@ -8353,37 +8353,39 @@ body {
83538353
left: 50%;
83548354
margin: 0.25rem auto 0 -25%;
83558355
display: block !important; }
8356-
nav.home-nav ul {
8357-
margin-left: auto;
8358-
margin-right: auto; }
8359-
nav.home-nav ul li {
8360-
padding: 0;
8361-
margin: 0; }
8362-
nav.home-nav ul li a {
8363-
background-color: #cfedfa;
8364-
padding: 0.25rem 1rem;
8365-
margin: 0 0.333rem 0.75rem;
8366-
font-size: 1rem;
8367-
border-radius: 0.35em;
8368-
min-width: 15vw; }
8369-
nav.home-nav h1 {
8370-
position: absolute;
8371-
left: 7%;
8372-
top: 0.5rem;
8373-
margin-left: -3.5%;
8374-
min-width: 86%;
8375-
text-align: center; }
8376-
nav.home-nav h1 img {
8377-
max-width: 45%;
8378-
min-height: auto !important;
8379-
margin: 0 auto; }
8380-
nav.home-nav ul {
8381-
position: absolute;
8382-
top: 7.5rem;
8383-
left: 0%;
8384-
width: 100%;
8385-
right: 0%;
8386-
text-align: center; }
8356+
nav.home-nav {
8357+
position: relative; }
8358+
nav.home-nav ul {
8359+
margin-left: auto;
8360+
margin-right: auto; }
8361+
nav.home-nav ul li {
8362+
padding: 0;
8363+
margin: 0; }
8364+
nav.home-nav ul li a {
8365+
background-color: #cfedfa;
8366+
padding: 0.25rem 1rem;
8367+
margin: 0 0.333rem 0.75rem;
8368+
font-size: 1rem;
8369+
border-radius: 0.35em;
8370+
min-width: 15vw; }
8371+
nav.home-nav ul li a img {
8372+
margin: -0.8rem 0rem 0rem 0rem;
8373+
max-height: 2rem; }
8374+
nav.home-nav h1 {
8375+
position: relative;
8376+
min-width: 86%;
8377+
text-align: center; }
8378+
nav.home-nav h1 img {
8379+
max-width: 45%;
8380+
min-height: auto !important;
8381+
margin: 0 auto; }
8382+
nav.home-nav ul {
8383+
position: relative;
8384+
top: 2.25rem;
8385+
right: 0;
8386+
padding-right: 2rem;
8387+
width: 100%;
8388+
text-align: center; }
83878389
.home #helm .billboard h1 {
83888390
font-size: 5.755vw;
83898391
margin: 3rem 3.5vw 1.5em;

docs/themes/porter/assets/sass/docs-home.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
text-align:left;
5757

5858
@include mobile{
59-
padding: 200px 23px 100px 20px;
59+
padding: 0 23px 100px 20px;
6060
}
6161

6262
.helm-logo {

docs/themes/porter/assets/sass/docs-responsive.scss

+11-8
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
}
7676

7777
nav.home-nav {
78+
position: relative;
7879
ul {
7980
margin-left: auto;
8081
margin-right: auto;
@@ -90,15 +91,17 @@
9091
font-size: 1rem;
9192
border-radius: 0.35em;
9293
min-width: 15vw;
94+
95+
img {
96+
margin: -0.8rem 0rem 0rem 0rem;
97+
max-height: 2rem;
98+
}
9399
}
94100
}
95101
}
96102

97103
h1 {
98-
position: absolute;
99-
left: 7%;
100-
top: 0.5rem;
101-
margin-left: -3.5%;
104+
position: relative;
102105
min-width: 86%;
103106
text-align: center;
104107

@@ -110,11 +113,11 @@
110113
}
111114

112115
ul {
113-
position: absolute;
114-
top: 7.5rem;
115-
left: 0%;
116+
position: relative;
117+
top: 2.25rem;
118+
right: 0;
119+
padding-right: 2rem;
116120
width: 100%;
117-
right: 0%;
118121
text-align: center;
119122
}
120123
}

docs/themes/porter/layouts/partials/nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
<li><a href="/community" title="Connect with Other Users">Community</a></li>
55
<li><a href="/learning" title="Videos and Tutorials">Learning</a></li>
66
<li><a href="/docs" title="Porter Documentation">Docs</a></li>
7-
<li><a href="https://github.com/getporter/porter" target="_blank" class="hide-for-small-only" title="Porter on Github"><img src="{{ .Site.BaseURL }}img/github.svg" alt="Github" /></a></li>
7+
<li><a href="https://github.com/getporter/porter" target="_blank" title="Porter on Github"><img src="{{ .Site.BaseURL }}img/github.svg" alt="Github" /></a></li>

public/sitemap.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
33
xmlns:xhtml="http://www.w3.org/1999/xhtml">
4+
45
<url>
56
<loc>/</loc>
6-
</url><url>
7+
</url>
8+
9+
<url>
710
<loc>/categories/</loc>
8-
</url><url>
11+
</url>
12+
13+
<url>
914
<loc>/tags/</loc>
1015
</url>
16+
1117
</urlset>

0 commit comments

Comments
 (0)