Skip to content

Commit 2f66050

Browse files
authored
fix: Fix layout responsiveness (#187)
1 parent 7bae390 commit 2f66050

File tree

12 files changed

+48
-31
lines changed

12 files changed

+48
-31
lines changed

.editorconfig

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,30 @@
33
root = true
44

55
[*]
6-
indent_style = space
7-
indent_size = 2
8-
trim_trailing_whitespace = true
9-
insert_final_newline = true
106
charset = utf-8
117
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
1210

13-
[*.py]
11+
[*.{py,rst,ini}]
1412
indent_style = space
1513
indent_size = 4
1614

17-
[*.bat]
18-
indent_style = tab
19-
end_of_line = crlf
15+
[*.{html,css,scss,json,yml,yaml,xml,toml}]
16+
indent_style = space
17+
indent_size = 2
2018

21-
["LICENSE"]
22-
insert_final_newline = true
19+
[*.md]
20+
trim_trailing_whitespace = false
21+
indent_style = space
22+
indent_size = 2
23+
24+
[default.conf]
25+
indent_style = space
26+
indent_size = 2
2327

2428
["Makefile"]
2529
indent_style = tab
30+
31+
[*.{diff,patch}]
32+
trim_trailing_whitespace = false

bkp/programs/mentoring/mentors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors: ["OSL Team"]
1313
apoya, alienta a sus aprendices y conservando apertura a preguntas y a escuchar.
1414
Se trata de ayudarse mutuamente a expandirse y crecer para que todas las
1515
personas aprendan. Para más informaciones, ingrese a la
16-
<a href="/guidelines/mentoring/">Guía de Mentorías</a>.
16+
<a href="/about/guidelines/mentoring/">Guía de Mentorías</a>.
1717

1818
¡Encuentre aquí tu mentora o mentor! </small>
1919

mkdocs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ nav:
4040
- Mentors Guide: "opportunities/os-internship/guides/mentors/index.md"
4141
- "TEMPLATE: Projects Ideas": "opportunities/os-internship/templates/projects-ideas.md"
4242
- "TEMPLATE: Intern Project Proposal": "opportunities/os-internship/templates/intern-proposal.md"
43-
- GSoC:
43+
- Google Summer of Code:
4444
- index: "opportunities/gsoc/index.md"
4545
- Project Ideas: "opportunities/gsoc/project-ideas/index.md"
4646
- Contributor Guide: "opportunities/gsoc/guides/contributor/index.md"
@@ -51,11 +51,6 @@ nav:
5151
- Partners: "partnership/partners/index.md"
5252
- Events:
5353
- index: events/index.md
54-
- Guidelines:
55-
- index: guidelines/index.md
56-
- Articles: guidelines/articles/index.md
57-
- DEI: guidelines/dei/index.md
58-
- Mentoring: guidelines/mentoring/index.md
5954
- About:
6055
- index: "about/index.md"
6156
- About OSL: "about/index.md"
@@ -65,6 +60,11 @@ nav:
6560
- CoC: about/coc/index.md
6661
- Roadmap: about/roadmap/index.md
6762
- Governance: about/governance/index.md
63+
- Guidelines:
64+
- index: about/guidelines/index.md
65+
- Articles: about/guidelines/articles/index.md
66+
- DEI: about/guidelines/dei/index.md
67+
- Mentoring: about/guidelines/mentoring/index.md
6868
- Donate: "donate/index.md"
6969

7070
markdown_extensions:

pages/guidelines/articles/index.md renamed to pages/about/guidelines/articles/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "Editorial Guidelines for Article Creation"
33
date: 2019-04-08
44
authors: ["Mariangela Petrizzo"]
5+
template: single-sidebar.html
56
---
67

78
# Articles

pages/guidelines/dei/index.md renamed to pages/about/guidelines/dei/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ date: 2019-04-08
44
authors: ["Mariangela Petrizzo"]
55
featured: true
66
tags: ["DEI"]
7+
template: single-sidebar.html
78
---
89

910
# Statement on Diversity, Equity and Inclusion

pages/guidelines/index.md renamed to pages/about/guidelines/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Guidelines
33
authors: ["OSL Team"]
4+
template: single-sidebar.html
45
---
56

67
# Guidelines
@@ -14,7 +15,7 @@ In this section, there are the guideline about how to write the blog posts for
1415
Open Science Labs. OSL Blogs can be accessed [here](/blog/).
1516

1617
<ul>
17-
<li><a href="/guidelines/articles/">Article Guideline</a></li>
18+
<li><a href="/about/guidelines/articles/">Article Guideline</a></li>
1819
</ul>
1920

2021
## Diversity, Equity and Inclusion (DEI)
@@ -28,7 +29,7 @@ DEI is a very important aspect of our community and we really care about that.
2829
In this section we can find our initial DEI declaration.
2930

3031
<ul>
31-
<li><a href="/guidelines/dei/">Statement on Diversity, Equity and Inclusion</a></li>
32+
<li><a href="/about/guidelines/dei/">Statement on Diversity, Equity and Inclusion</a></li>
3233
</ul>
3334

3435
## Mentoring
@@ -42,5 +43,5 @@ to reach someone outside.
4243
Another way that the mentoring can happen is inside the internship program.
4344

4445
<ul>
45-
<li><a href="/guidelines/mentoring">Mentoring Guideline</a></li>
46+
<li><a href="/about/guidelines/mentoring">Mentoring Guideline</a></li>
4647
</ul>

pages/guidelines/mentoring/index.md renamed to pages/about/guidelines/mentoring/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ date: 2019-04-08
44
authors: ["Ingrid Bianka Garcia"]
55
tags: ["mentoring"]
66
category: ["mentoring"]
7+
template: single-sidebar.html
78
---
89

910
# Mentoring Guideline

theme/base.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,16 @@
143143
footer.citation *{margin-top:20px;font-size:10px!important;font-style:italic!important}
144144
</style>
145145
<div class=container>
146-
<section class="wrap content">
146+
<section class="content-inner">
147147
{% if page.parent.children %}
148+
<!--
148149
<div class="d-none d-sm-none d-md-block" style="margin-top:80px"></div>
149150
<div class="d-block d-sm-block d-md-none" style="margin-top:50px"></div>
151+
-->
150152
{% endif %}
151153
{% block content %}
152154
<section>
153-
{% if page.parent.children %}
154-
<div class="row pt-2">
155-
{% else %}
156155
<div class="row pt-0">
157-
{% endif %}
158156
<div class="col-md-12 mx-auto">
159157
{% block content_inner %}
160158
{{ page.content }}

theme/blog-list-base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h3 class="blog-post-title">
118118
{%- endmacro %}
119119
{% endif %}
120120

121-
<section class="mt-5">
121+
<section>
122122
<h1>Blog</h1>
123123

124124
<div class = "md-typeset">

theme/blog-post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
{% block content_inner %}
44

5-
<div class="mt-5">
5+
<div>
66
<h3><a href="{{ url }}" title="{{ title }}" target="_self">{{ page.meta["title"] }}</a></h3>
7-
<div class=>
7+
<div>
88
<span>
99
<svg class="icon">
1010
<title>author</title>

theme/css/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,21 @@ picture{
449449
display:flex;
450450
flex:1
451451
}
452+
/*
452453
.nav_header{
453454
background-color:#374955;
454455
padding:0 1.5rem;
455456
position:fixed;
456457
width:100%;
457458
z-index:99;
458459
left:0
460+
}
461+
*/
462+
.nav_header {
463+
position: sticky;
464+
top: 0;
465+
z-index: 1030; /* Ensure it's above content */
466+
background-color:#374955;
459467
}
460468
.nav_item{
461469
padding:0.5rem 1rem;

theme/js/index.json

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)