Skip to content

Commit

Permalink
fix: fix ul ol bug
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Sep 12, 2023
1 parent 11b6113 commit 995f5cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
@tailwind components;
@tailwind utilities;

@layer base {
ul, ol {
list-style: revert;
}
}

.post-content {
line-height: 1.625;
color: #424242;
Expand Down Expand Up @@ -52,7 +58,6 @@

.post-content ul,
.post-content ol {
list-style-type: initial;
padding: 0.5rem 0 1rem 1.5rem;
}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>

<div class="w-full flex-grow lg:flex lg:items-center lg:w-auto hidden mt-2 lg:mt-0 bg-gray-100 dark:bg-gray-800 md:bg-transparent z-20" id="nav-content">
<ul class="list-reset lg:flex justify-end flex-1 items-center">
<ul class="list-none lg:flex justify-end flex-1 items-center">
{{- range $item := $.Site.Params.NavItems }}
<li class="mr-3">
<a href="{{ index $item 1 }}" class="inline-block py-2 px-2 text-gray-700 dark:text-gray-300 font-bold no-underline">{{ index $item 0 }}</a>
Expand Down

0 comments on commit 995f5cd

Please sign in to comment.