Skip to content

Commit

Permalink
fix sidebar navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Feb 1, 2024
1 parent 4254f66 commit 1027d42
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 32 deletions.
23 changes: 0 additions & 23 deletions assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1176,10 +1176,6 @@ video {
margin-top: 1.25rem;
}

.mt-6 {
margin-top: 1.5rem;
}

.mt-8 {
margin-top: 2rem;
}
Expand Down Expand Up @@ -1386,11 +1382,6 @@ video {
border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

.divide-blue-200 > :not([hidden]) ~ :not([hidden]) {
--tw-divide-opacity: 1;
border-color: rgb(191 219 254 / var(--tw-divide-opacity));
}

.divide-secondary-400 > :not([hidden]) ~ :not([hidden]) {
--tw-divide-opacity: 1;
border-color: rgb(148 163 184 / var(--tw-divide-opacity));
Expand Down Expand Up @@ -1436,10 +1427,6 @@ video {
border-width: 0px;
}

.border-b {
border-bottom-width: 1px;
}

.border-t {
border-top-width: 1px;
}
Expand All @@ -1458,21 +1445,11 @@ video {
border-color: rgb(148 163 184 / var(--tw-border-opacity));
}

.border-b-secondary-400 {
--tw-border-opacity: 1;
border-bottom-color: rgb(148 163 184 / var(--tw-border-opacity));
}

.border-t-secondary-300 {
--tw-border-opacity: 1;
border-top-color: rgb(203 213 225 / var(--tw-border-opacity));
}

.border-t-secondary-400 {
--tw-border-opacity: 1;
border-top-color: rgb(148 163 184 / var(--tw-border-opacity));
}

.bg-black {
--tw-bg-opacity: 1;
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions themes/docs/layouts/partials/sidebar.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
<nav class="px-4 py-3 divide-y divide-secondary-400 lg:divide-y-0">
{%- block navigation ~%}
{#- navigation menu ~#}
<div class="lg:hidden flex flex-col space-y-2 pb-4">
<div class="lg:hidden flex flex-col space-y-2 pb-4 font-semibold">
{{- include('partials/navigation.html.twig') ~}}
</div>
{#- sidebar groups ~#}
{#- docs groups ~#}
{%- if page.section == 'docs' ~%}
<div class="pt-4">
{%- for group in site.sidebar ~%}
{%- if site.page('docs/' ~ group|slugify) ~%}
Expand All @@ -29,7 +30,8 @@
</ul>
{%- endfor ~%}
</div>
{%- endblock ~%}
{%- endif ~%}
{%- endblock navigation ~%}
<div class="lg:hidden mt-4 pt-4 flex flex-col space-y-1">
{{- include('partials/theme-selector.html.twig', {'label': true}) ~}}
{{- include('partials/language-selector.html.twig', {'label': true}) ~}}
Expand Down

0 comments on commit 1027d42

Please sign in to comment.