Skip to content

Commit f4ae2ba

Browse files
committed
update
1 parent bf6b48a commit f4ae2ba

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

assets/css/styles.css

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
/*
20-
! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com
20+
! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com
2121
*/
2222

2323
/*
@@ -460,7 +460,7 @@ video {
460460

461461
/* Make elements with the HTML hidden attribute stay hidden by default */
462462

463-
[hidden] {
463+
[hidden]:where(:not([hidden="until-found"])) {
464464
display: none;
465465
}
466466

@@ -676,10 +676,6 @@ video {
676676
gap: 0.5rem;
677677
}
678678

679-
.gap-3 {
680-
gap: 0.75rem;
681-
}
682-
683679
.gap-4 {
684680
gap: 1rem;
685681
}
@@ -751,6 +747,10 @@ video {
751747
border-bottom-width: 1px;
752748
}
753749

750+
.border-l {
751+
border-left-width: 1px;
752+
}
753+
754754
.border-t {
755755
border-top-width: 1px;
756756
}
@@ -1549,10 +1549,18 @@ video {
15491549
border-bottom-width: 0px;
15501550
}
15511551

1552+
.\[\&\>\.active\]\:bg-gray-100>.active {
1553+
background-color: #f3f4f6;
1554+
}
1555+
15521556
.\[\&\>\.active\]\:text-gray-600>.active {
15531557
color: #4b5563;
15541558
}
15551559

1560+
.dark\:\[\&\>\.active\]\:bg-gray-600>.active:is(.dark *) {
1561+
background-color: #4b5563;
1562+
}
1563+
15561564
.dark\:\[\&\>\.active\]\:text-gray-300>.active:is(.dark *) {
15571565
color: #d1d5db;
15581566
}

templates/layout.twig

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@
4242
<a class="text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100" href="{{ logout_url }}" title="Logout" target="_blank" rel="noopener">{{ svg('logout', 32) }}</a>
4343
{% endif %}
4444

45-
<div class="flex gap-3 [&>.active]:text-gray-600 dark:[&>.active]:text-gray-300">
46-
<button class="flex items-center justify-center text-gray-400 dark:text-gray-500" type="button" data-theme="light" title="Light">{{ svg('sun', 28) }}</button>
47-
<button class="flex items-center justify-center text-gray-400 dark:text-gray-500" type="button" data-theme="dark" title="Dark">{{ svg('moon', 28) }}</button>
48-
<button class="flex items-center justify-center text-gray-400 dark:text-gray-500" type="button" data-theme="system" title="System">{{ svg('system', 28) }}</button>
45+
<div class="flex border rounded overflow-hidden border-gray-300 dark:border-gray-600 [&>.active]:text-gray-600 dark:[&>.active]:text-gray-300 [&>.active]:bg-gray-100 dark:[&>.active]:bg-gray-600">
46+
<button class="flex items-center justify-center px-3 py-2 text-gray-400 dark:text-gray-500" type="button" data-theme="light" title="Light">
47+
{{ svg('sun', 18) }}
48+
</button>
49+
<button class="flex items-center justify-center px-3 py-2 text-gray-400 dark:text-gray-500 border-l border-gray-300 dark:border-gray-600" type="button" data-theme="dark" title="Dark">
50+
{{ svg('moon', 18) }}
51+
</button>
52+
<button class="flex items-center justify-center px-3 py-2 text-gray-400 dark:text-gray-500 border-l border-gray-300 dark:border-gray-600" type="button" data-theme="system" title="System">
53+
{{ svg('system', 18) }}
54+
</button>
4955
</div>
5056

5157
<a class="text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100" href="{{ repo }}" title="GitHub" target="_blank" rel="noopener">{{ svg('github', 28) }}</a>

0 commit comments

Comments
 (0)