Skip to content

Commit ce9696b

Browse files
committed
Fix docs on mobile
1 parent 240d2e6 commit ce9696b

File tree

2 files changed

+31
-29
lines changed

2 files changed

+31
-29
lines changed

docs/news.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Subscribe below to receive updates about improvements and new features on Webhoo
2828

2929
* Added support for [Webhook.site Databases](/databases.html) in JavaScript. [More info here](/custom-actions/action-types.html#webhooksite-database-functions).
3030
* Fixed an error when adding invalid header data to the Modify Response action.
31+
* Fix Docs navigation/sidebar on Mobile.
3132

3233
## 8 October 2025
3334

docs/stylesheets/extra.css

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ body, input {
2727
box-shadow: none;
2828
}
2929

30-
/* NAV */
31-
32-
.md-sidebar--primary .md-nav__title {
33-
display: none;
34-
}
35-
36-
.md-nav__link--active {
37-
font-weight: bold;
38-
}
39-
40-
4130
/* BODY */
4231

4332
.md-typeset a {
@@ -82,27 +71,39 @@ body, input {
8271
margin-top: 1.2rem;
8372
}
8473

85-
.md-nav__item--section>.md-nav__link[for] {
86-
text-transform: uppercase;
87-
font-size: 0.55rem;
88-
padding-bottom: 4px;
89-
margin-bottom: 15px;
90-
border-bottom: 1px solid #eee;
91-
margin-top: 3em;
92-
}
74+
@media screen and (min-width:76.1875em) {
75+
76+
.md-sidebar--primary .md-nav__title {
77+
display: none;
78+
}
9379

94-
.md-nav--primary > .md-nav__list > .md-nav__item:first-of-type {
95-
margin-bottom: 60px;
96-
opacity: .6;
97-
}
80+
.md-nav__link--active {
81+
font-weight: bold;
82+
}
9883

99-
.md-nav__item--nested>.md-nav__link {
100-
cursor: default;
101-
color: #999;
102-
}
84+
.md-nav__item--section>.md-nav__link[for] {
85+
text-transform: uppercase;
86+
font-size: 0.55rem;
87+
padding-bottom: 4px;
88+
margin-bottom: 15px;
89+
border-bottom: 1px solid #eee;
90+
margin-top: 3em;
91+
}
92+
93+
.md-nav--primary > .md-nav__list > .md-nav__item:first-of-type {
94+
margin-bottom: 60px;
95+
opacity: .6;
96+
}
97+
98+
.md-nav__item--nested>.md-nav__link {
99+
cursor: default;
100+
color: #999;
101+
}
102+
103+
.md-nav__item--nested>.md-nav__link:hover {
104+
color: #999;
105+
}
103106

104-
.md-nav__item--nested>.md-nav__link:hover {
105-
color: #999;
106107
}
107108

108109
/* Figure */

0 commit comments

Comments
 (0)