Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make wider content on docs pages #1314

Merged
merged 1 commit into from
Apr 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/src/includes/components/docs-aside.njk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</li>
{% endmacro %}

<aside class="flex-shrink-0 top-24 md:top-0 md:relative w-full md:w-1/4">
<aside class="flex-shrink-0 top-24 md:top-0 md:relative w-full md:w-1/4 max-w-[260px]">
<input id="menu-toggle" type="checkbox" class="menu-state absolute invisible h-0 w-0 md:hidden"/>
<label for="menu-toggle" aria-title="Open Menu" class="flex items-center md:hidden py-2 border-t border-b border-gray-100 dark:border-gray-800 text-gray-500 dark:text-gray-300 mb-8 font-medium">
<div class="burger-icon" role="icon">
Expand Down
2 changes: 1 addition & 1 deletion site/src/layouts/docs.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ layout: base.njk
#}
<div class="order-1 max-w-full flex-grow">
<h1 class="text-2xl md:text-4xl font-bold mb-6 md:mb-8 text-brand-900 dark:text-brand-100">{{ title }}</h1>
<div class="prose dark:prose-dark">{{ layoutContent | safe }}</div>
<div class="prose dark:prose-dark max-w-full">{{ layoutContent | safe }}</div>
</div>
<footer class="order-3 min-w-full flex mt-4 justify-end mr-1 text-sm text-gray-500 dark:text-gray-300 space-x-3 leading-5">
<span>
Expand Down
4 changes: 2 additions & 2 deletions site/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module.exports = {
padding: spacing[4],
screens: {
sm: '100%',
md: '860px',
lg: '940px',
md: '1024px',
lg: '1200px',
xl: false,
},
},
Expand Down