Skip to content

Commit 5d6e8c5

Browse files
committed
perf: improve the responsive design for ultrawide screens (#540)
Resolves #540
1 parent 20caace commit 5d6e8c5

File tree

7 files changed

+73
-208
lines changed

7 files changed

+73
-208
lines changed

_includes/footer.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<!--
2-
The Footer
3-
-->
1+
<!-- The Footer -->
42

5-
<footer class="d-flex w-100 justify-content-center">
6-
<div class="d-flex justify-content-between align-items-center text-muted">
3+
<footer class="row">
4+
<div class="col-12 d-flex justify-content-between align-items-center text-muted pl-0 pr-0">
75
<div class="footer-left">
86
<p class="mb-0">
97
© {{ 'now' | date: "%Y" }}
@@ -33,5 +31,6 @@
3331
</p>
3432
</div>
3533

36-
</div> <!-- div.d-flex -->
34+
</div>
35+
3736
</footer>

_includes/post-paginator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
The paginator for post list on HomgPage.
33
-->
44

5-
<ul class="pagination align-items-center mt-4 mb-0 pl-lg-2">
5+
<ul class="pagination align-items-center mt-4 mb-5 pl-lg-2">
66
<!-- left arrow -->
77
{% if paginator.previous_page %}
88
{% assign prev_url = paginator.previous_page_path | relative_url %}

_includes/topbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
The Top Bar
33
-->
44

5-
<div id="topbar-wrapper" class="row justify-content-center">
6-
<div id="topbar" class="col-11 d-flex h-100 align-items-center justify-content-between">
5+
<div id="topbar-wrapper">
6+
<div id="topbar" class="container d-flex align-items-center justify-content-between h-100 pl-3 pr-3 pl-md-4 pr-md-4">
77
<span id="breadcrumb">
88

99
{% assign paths = page.url | split: '/' %}

_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
{% include topbar.html %}
2727

28-
<div id="main-wrapper">
29-
<div id="main">
28+
<div id="main-wrapper" class="d-flex justify-content-center">
29+
<div id="main" class="container">
3030

3131
{{ content }}
3232

_layouts/page.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<div class="row">
1010

1111
<!-- core -->
12-
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-8">
13-
<div class="post pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
12+
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pr-xl-5">
13+
<div class="post pl-1 pr-1 pl-md-2 pr-md-2">
1414

1515
{% capture _content %}
1616
{% if layout.refactor or page.layout == 'page' %}
@@ -54,13 +54,11 @@ <h1 class="dynamic-title">
5454
<!-- tail -->
5555
{% if layout.tail_includes %}
5656
<div class="row">
57-
<div class="col-12 col-lg-11 col-xl-8">
58-
<div id="tail-wrapper" class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
59-
{% for _include in layout.tail_includes %}
60-
{% assign _include_path = _include | append: '.html' %}
61-
{% include {{ _include_path }} %}
62-
{% endfor %}
63-
</div>
57+
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 pl-4 pr-4 pr-xl-5">
58+
{% for _include in layout.tail_includes %}
59+
{% assign _include_path = _include | append: '.html' %}
60+
{% include {{ _include_path }} %}
61+
{% endfor %}
6462
</div>
65-
</div> <!-- .row -->
63+
</div>
6664
{% endif %}

0 commit comments

Comments
 (0)