Skip to content

Commit

Permalink
unnecessary html classes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanelad committed Jan 26, 2025
1 parent 25baedf commit 861dd3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
2 changes: 0 additions & 2 deletions loco-gen/src/templates/scaffold/html/base.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ message: "Base template was added successfully."
<body class="min-h-screen bg-background font-sans antialiased">
<div class="relative flex min-h-screen flex-col bg-background">
<div class="themes-wrapper bg-background">
<div style="--sidebar-width:16rem;--sidebar-width-icon:3rem" class="group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar">
<main class="relative flex min-h-svh flex-1 flex-col bg-background peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow">
<div class="flex flex-1 flex-col gap-4 p-5 pt-5">
<h1 class="scroll-m-20 text-3xl font-bold tracking-tight">
Expand All @@ -29,7 +28,6 @@ message: "Base template was added successfully."
{% endblock content %}{% endraw %}
</div>
</main>
</div>
</div>
</div>
{% raw %}{% block js %}
Expand Down
22 changes: 9 additions & 13 deletions loco-gen/src/templates/scaffold/htmx/base.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,15 @@ message: "Base template was added successfully."
<body class="min-h-screen bg-background font-sans antialiased">
<div class="relative flex min-h-screen flex-col bg-background">
<div class="themes-wrapper bg-background">
<div style="--sidebar-width:16rem;--sidebar-width-icon:3rem" class="group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar">
<main class="relative flex min-h-svh flex-1 flex-col bg-background peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow">
<div class="flex flex-1 flex-col gap-4 p-5 pt-5">
<h1 class="scroll-m-20 text-3xl font-bold tracking-tight">
{% raw %}{% block page_title %}{% endblock page_title %}{% endraw %}
</h1>
{% raw %}{% block content %}
{% endblock content %}{% endraw %}
</div>
</main>

</div>

<main>
<div class="flex flex-1 flex-col gap-4 p-5 pt-5">
<h1 class="scroll-m-20 text-3xl font-bold tracking-tight">
{% raw %}{% block page_title %}{% endblock page_title %}{% endraw %}
</h1>
{% raw %}{% block content %}
{% endblock content %}{% endraw %}
</div>
</main>
</div>
</div>
{% raw %}{% block js %}
Expand Down
1 change: 0 additions & 1 deletion loco-gen/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
mod db;
mod templates;

0 comments on commit 861dd3f

Please sign in to comment.