Skip to content

Commit

Permalink
Adding regular and wide versions of single-column layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbum committed Dec 21, 2023
1 parent b3b59b0 commit 27c1327
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pages/how-to-use.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: How to use the Hub
description: Recommendations for how to use each resource on the Innovation Hub
layout: single-column
layout: single-column-wide
---

<p class="text-lead">The Innovation Hub collects resources made and found by the Office of Data and Innovation (ODI). We share them to help state departments better serve Californians.</p>
Expand Down
26 changes: 26 additions & 0 deletions docs/site/_includes/layouts/single-column-wide.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% extends "layouts/index.njk" %}
{% block content %}
<div id="page-container" class="page-container-ds">
<div class="breadcrumb" aria-label="Breadcrumb" role="region">
<a class="crumb" href="https://ca.gov" title="CA.gov">CA.gov</a>
<span class="crumb separator">/</span>
<a class="crumb" href="/" title="Office of Data and Innovation">Office of Data and Innovation</a>
{% if parentid %}
<span class="crumb separator">/</span>
<span class="crumb">{{ fileids[parentid] | safe }}</span>
{% endif %}
<span class="crumb separator">/</span>
<span class="crumb current">{{ title | safe }}</span>
</div>
<main id="body-content" class="cagov-main">
<article id="post-{{ page.fileSlug }}" class="cagov-article with-single-column-wide">
<h1 class="page-title">
{{ title | safe }}
</h1>
<div class="cagov-content">
{{ content | safe }}
</div>
</article>
</main>
</div>
{% endblock %}
1 change: 1 addition & 0 deletions docs/src/css/sass/ds-site-global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ div.checklist-copy-icon span {
font-size: 14px;
vertical-align: middle;
}

div.checklist-copy-icon.icon-green {
background-image: url(/img/green-circle-check-icon.png);
background-color: #E5F1E7;
Expand Down
8 changes: 7 additions & 1 deletion docs/src/css/sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ body {
}

.cagov-article.with-single-column {
max-width: 1176px; // var(--w-page-content, 1176px);
max-width: 876px; // var(--w-page-content, 1176px);
margin-left: auto;
margin-right: auto;
}

.cagov-article.with-single-column-wide {
max-width: 1176px;
margin-left: auto;
margin-right: auto;
}
Expand Down

0 comments on commit 27c1327

Please sign in to comment.