Skip to content

Commit 281c2c9

Browse files
authored
Merge pull request #1795 from VirajSalaka/PE-home-menu-fix
Fix expanding navigation when on menu icon in home page
2 parents 4b7d405 + c0909fb commit 281c2c9

File tree

6 files changed

+27
-35
lines changed

6 files changed

+27
-35
lines changed

Diff for: en/developer-docs/docs/index.md

-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
---
22
template: templates/home-page-2.html
33
---
4-
5-
<div class="container cHeaderTop cHomeContainer">
6-
<div class="row">
7-
<div class="col-sm-12 col-md-12 col-lg-12">
8-
<h1>Welcome to the Choreo Learning Portal</h1>
9-
</div>
10-
<div class="col-sm-12 col-md-6 col-lg-6">
11-
<p><b>Note</b><br/>The Home page will be designed to provide a guided experience to any user coming to docs with a valid Choreo use case.<br/> We intend to <b>ONLY INCLUDE</b> conceptual information in the documentation for the relevant topics and **NOT INCLUDE** any how to guides, or instructions with the exception of Tutorials.</p>
12-
</div>
13-
<div class="col-sm-12 col-md-6 col-lg-6">
14-
<iframe width="800" height="250" src="https://www.youtube.com/embed/65cXAAyeJX0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
15-
</div>
16-
</div>
17-
</div>
18-

Diff for: en/developer-docs/mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ site_dir: site/developer
2424
# Repository
2525
repo_name: wso2/docs-choreo-dev
2626
repo_url: https://github.com/wso2/docs-choreo-dev/
27-
edit_uri: https://github.com/wso2/docs-choreo-dev/edit/PE/en/developer-docs/docs
27+
edit_uri: ""
2828
dev_addr: localhost:8000
2929

3030
# Copyright

Diff for: en/pe-docs/docs/index.md

-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
---
22
template: templates/pe-home-page.html
33
---
4-
5-
<div class="container cHeaderTop cHomeContainer">
6-
<div class="row">
7-
<div class="col-sm-12 col-md-12 col-lg-12">
8-
<h1>Welcome to the Choreo Learning Portal</h1>
9-
</div>
10-
<div class="col-sm-12 col-md-6 col-lg-6">
11-
<p><b>Note</b><br/>The Home page will be designed to provide a guided experience to any user coming to docs with a valid Choreo use case.<br/> We intend to <b>ONLY INCLUDE</b> conceptual information in the documentation for the relevant topics and **NOT INCLUDE** any how to guides, or instructions with the exception of Tutorials.</p>
12-
</div>
13-
<div class="col-sm-12 col-md-6 col-lg-6">
14-
<iframe width="800" height="250" src="https://www.youtube.com/embed/65cXAAyeJX0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
15-
</div>
16-
</div>
17-
</div>
18-

Diff for: en/pe-docs/mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ site_dir: site/platform-engineer
2424
# Repository
2525
repo_name: wso2/docs-choreo-dev
2626
repo_url: https://github.com/wso2/docs-choreo-dev/
27-
edit_uri: https://github.com/wso2/docs-choreo-dev/edit/PE/en/pe-docs/docs
27+
edit_uri: ""
2828
dev_addr: localhost:8000
2929

3030
# Copyright

Diff for: en/theme/material/templates/home-page-2.html

+13-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
{% endif %}
7676
<section class="md-section">
7777
<div class="md-grid md-typeset">
78-
<div class="section01" style="display: block; text-align: center; width: 70%; flex-shrink: 0;min-width: 40%; max-height: 280px; max-width:100%; margin-left:10px; padding-top: 0.5rem; text-align: -webkit-center; margin:auto; margin-top: 1rem;margin-bottom: 1rem; ">
78+
<div class="section01" style="display: block; text-align: center; width: 70%; flex-shrink: 0;min-width: 40%; max-height: 280px; max-width:100%; margin-left:10px; padding-top: 0.5rem; text-align: -webkit-center; margin:auto; margin-top: 1rem;margin-bottom: 1rem; ">
7979
<h1 style="font-weight: 700; font-size: 43px; line-height: 48px; padding-top: 2.5rem;">How can we help?</h1>
8080
</div>
8181
<div class="md-search" data-md-component="search" role="dialog" style="align-items:center; width: 100%; height: 100%;">
@@ -185,6 +185,13 @@ <h1 style="font-weight: 700; font-size: 43px; line-height: 48px; padding-top: 2.
185185
background-image: url('assets/img/home/background.svg') !important;
186186
background-position-y: -24rem;
187187
}
188+
189+
@media screen and (min-width: 1220px) {
190+
.md-main__inner {
191+
display: none;
192+
}
193+
}
194+
188195
</style>
189196
</header>
190197
{% endblock %}
@@ -198,7 +205,11 @@ <h1 style="font-weight: 700; font-size: 43px; line-height: 48px; padding-top: 2.
198205
{% block palette%}
199206
{% endblock %}
200207
<main class="md-main" data-md-component="main">
201-
208+
<div class="md-main__inner md-grid">
209+
{% block site_nav %}
210+
{{super()}}
211+
{% endblock %}
212+
</div>
202213
<div class="md-container-home data-md-component="container">
203214
<div style="height: 5rem;"></div>
204215
<div class="row md_home_link_container_row">

Diff for: en/theme/material/templates/pe-home-page.html

+12-1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ <h1 style="font-weight: 700; font-size: 43px; line-height: 48px; padding-top: 2.
185185
background-image: url('assets/img/home/background.svg') !important;
186186
background-position-y: -24rem;
187187
}
188+
189+
@media screen and (min-width: 1220px) {
190+
.md-main__inner {
191+
display: none;
192+
}
193+
}
194+
188195
</style>
189196
</header>
190197
{% endblock %}
@@ -198,7 +205,11 @@ <h1 style="font-weight: 700; font-size: 43px; line-height: 48px; padding-top: 2.
198205
{% block palette%}
199206
{% endblock %}
200207
<main class="md-main" data-md-component="main">
201-
208+
<div class="md-main__inner md-grid">
209+
{% block site_nav %}
210+
{{super()}}
211+
{% endblock %}
212+
</div>
202213
<div class="md-container-home data-md-component="container">
203214
<div style="height: 5rem;"></div>
204215
<div class="row md_home_link_container_row">

0 commit comments

Comments
 (0)