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

added padding in examples header #632

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
modefied padding for h2
mohankumarhr committed Nov 19, 2024
commit a01dcc753264b6052ab6e406dbd9371f26157ae0
6 changes: 3 additions & 3 deletions src/layouts/CommunityLayout.astro
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ setJumpToState({

<BaseLayout title="Community">
<section>
<h2>{t("Sketches")}<a id="sketches"></a></h2>
<h2 class="mb-gutter-md mt-0">{t("Sketches")}<a id="sketches"></a></h2>
<ul class="content-grid-simple">
{
sketches.map((sk, i) => (
@@ -74,7 +74,7 @@ setJumpToState({
</section>

<section>
<h2>{t("Libraries")}<a id="libraries"></a></h2>
<h2 class="mb-gutter-md mt-0">{t("Libraries")}<a id="libraries"></a></h2>
<ul class="content-grid-simple">
{
libraries.map((lib) => (
@@ -94,7 +94,7 @@ setJumpToState({
</section>

<section>
<h2>{t("Events")}<a id="events"></a></h2>
<h2 class="mb-gutter-md mt-0">{t("Events")}<a id="events"></a></h2>
<ul class="content-grid-simple">
{
events.map((event, i) => (
4 changes: 2 additions & 2 deletions src/layouts/ContributeLayout.astro
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ setJumpToState({

<BaseLayout title="Contribute">
<section>
<h2 id="docs">{t("Contributor Docs")}</h2>
<h2 id="docs" class="mb-gutter-md mt-0">{t("Contributor Docs")}</h2>
<div
class="mb-md grid grid-cols-1 gap-x-gutter-sm md:gap-x-gutter-md lg:grid-cols-2"
>
@@ -81,7 +81,7 @@ setJumpToState({
</ul>
</section>
<section>
<h2 id="donate">{t("Donate")}</h2>
<h2 id="donate" class="mb-gutter-md mt-0">{t("Donate")}</h2>
<ul class="content-grid-simple">
{
// This is the same markup as in ContributorDocItem
2 changes: 1 addition & 1 deletion src/layouts/ExamplesLayout.astro
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ setJumpToState(jumpToState);
{
examplesByCategory.map((category, i) => (
<section class="grid">
<h2 class="col-span-full">
<h2 class="col-span-full mb-gutter-md mt-0"">
{category.name} <a id={category.name.toLowerCase()} />
</h2>
<ul class="col-span-full content-grid-simple">
2 changes: 1 addition & 1 deletion styles/global.scss
Original file line number Diff line number Diff line change
@@ -230,7 +230,7 @@ section,
h2,
.text-h2 {
margin-top: var(--gutter-md);
margin-bottom: var(--gutter-md);
margin-bottom: 0;
}

h2,