Skip to content

Commit 29f19fb

Browse files
committed
Add responsive breakpoints to column layout
1 parent f2b1688 commit 29f19fb

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/_includes/reference_sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<aside class="col-3 pl-4 pt-1 bg-gray">
1+
<aside class="col-lg-3 pl-4 pt-1 pb-1 bg-gray">
22
<nav>
33
<ul class="f3-light ml-4">
44
{% for item in sidebarItems %}

docs/_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<aside class="col-3 pl-4 pt-1 bg-gray">
1+
<aside class="col-lg-3 pl-4 pt-1 pb-1 bg-gray">
22
<nav>
33
<ol class="f3-light ml-4">
44
{% for item in sidebarItems %}

docs/_layouts/default.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,29 @@
2222
<link rel="icon" href="{{ site.baseurl }}/icons/icon-48x48.png">
2323
</head>
2424
<body class="d-flex flex-column height-full">
25-
<header class="position-sticky top-0 d-flex"
25+
<header class="position-sticky top-0 d-md-flex"
2626
style="z-index: 1; background-image: linear-gradient(to top, var(--color-bg-canvas-shadow), var(--color-bg-canvas) 25%)">
27-
<div class="flex-1 pl-3 pb-6 col-3 {% if page.layout != "default" %}bg-gray{% endif %}">
28-
<h1 class="m-0 mt-2">Catalyst</h1>
27+
<div class="flex-1 pl-3 pb-6 col-md-3 {% if page.layout != "default" %}bg-gray{% endif %}">
28+
<h1 class="m-0 mt-md-2">Catalyst</h1>
2929
</div>
30-
<nav class="f3 col-9 d-flex flex-justify-end">
31-
<ul class="d-flex list-style-none mr-6">
32-
<li class="m-3">
30+
<nav class="f3 col-md-9 d-flex flex-md-justify-end">
31+
<ul class="d-flex list-style-none mr-md-6">
32+
<li class="ml-3 mt-3 mb-3">
3333
<a href="{{ site.baseurl }}/">
3434
Home
3535
</a>
3636
</li>
37-
<li class="m-3">
37+
<li class="ml-3 mt-3 mb-3">
3838
<a href="{{ site.baseurl }}/guide/introduction">
3939
Guide
4040
</a>
4141
</li>
42-
<li class="m-3">
42+
<li class="ml-3 mt-3 mb-3">
4343
<a href="{{ site.baseurl }}/reference">
4444
Reference
4545
</a>
4646
</li>
47-
<li class="m-3">
47+
<li class="ml-3 mt-3 mb-3">
4848
<a href="https://github.com/github/catalyst">
4949
Source Code
5050
</a>

docs/_layouts/guide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
layout: default
33
---
44

5-
<div class="d-flex flex-1">
5+
<div class="d-md-flex flex-1">
66
{% assign sidebarItems = site.guide | sort: 'chapter' %}
77
{% include sidebar.html %}
88

9-
<section class="col-9 px-5 f4">
9+
<section class="col-lg-9 px-5 f4">
1010
<div class="container-md markdown-body mb-5">
1111
<h1 class="mb-4 f0-light">{{ page.title }}</h1>
1212
{{ content }}

docs/_layouts/reference.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
layout: default
33
---
44

5-
<div class="d-flex flex-1">
5+
<div class="d-md-flex flex-1">
66
{% assign sidebarItems = site.data.reference.children %}
77
{% include reference_sidebar.html %}
88

9-
<section class="col-9 px-5 f4">
9+
<section class="col-lg-9 px-5 f4">
1010
<div class="container-md markdown-body">
1111
<h1 class="mb-4 f0-light">{{ page.title }}</h1>
1212
{{ content }}

0 commit comments

Comments
 (0)