Skip to content

Commit 7986b03

Browse files
Merge pull request #15 from php-debugger/navbar-and-hero-spacing
fix navbar links and mobile layout issues
2 parents 6d5f120 + 47cf25d commit 7986b03

4 files changed

Lines changed: 23 additions & 6 deletions

File tree

docusaurus.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const config = {
118118
position: 'left',
119119
},
120120
{
121-
to: '/user-guide/breakpoints',
121+
to: '/user-guide/starting-the-debugger',
122122
label: 'Guide',
123123
position: 'left',
124124
},
@@ -128,8 +128,8 @@ const config = {
128128
position: 'left',
129129
},
130130
{
131-
to: '/reference/debug-protocol',
132-
label: 'API',
131+
to: '/integrations/ide-support',
132+
label: 'Integrations',
133133
position: 'left',
134134
},
135135
{

src/components/HomeHero/styles.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
44
gap: 3rem;
55
align-items: center;
6-
padding: 2rem 0 3rem;
6+
padding: 0 0 3rem;
77
}
88

99
.heroText {
@@ -121,7 +121,6 @@
121121
.hero {
122122
grid-template-columns: minmax(0, 1fr);
123123
gap: 2rem;
124-
padding-top: 1rem;
125124
}
126125

127126
.title {

src/components/InstallCommand/styles.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.tabs {
66
display: flex;
7+
flex-wrap: wrap;
78
gap: 0.25rem;
89
}
910

@@ -34,7 +35,8 @@
3435
display: flex;
3536
align-items: center;
3637
justify-content: space-between;
37-
gap: 1rem;
38+
flex-wrap: wrap;
39+
gap: 0.5rem 1rem;
3840
margin-bottom: 0.5rem;
3941
}
4042

src/css/custom.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@
7575
margin-right: 2rem;
7676
}
7777

78+
/* The lockup is 4.5:1, so a fixed 4rem height makes it 288px wide -- wider than
79+
the room left beside the hamburger and search on a small phone, which pushed
80+
the whole document sideways. Below the navbar's own breakpoint let the width
81+
lead and the height follow, so it shrinks to fit instead of overflowing. */
82+
@media (max-width: 996px) {
83+
.navbar__brand {
84+
margin-right: 0.5rem;
85+
}
86+
87+
.navbar__logo {
88+
height: auto;
89+
max-height: 4rem;
90+
max-width: 55vw;
91+
}
92+
}
93+
7894

7995
.navbar__link {
8096
font-weight: 500;

0 commit comments

Comments
 (0)