Skip to content

Commit 1e86796

Browse files
BaseMaxjbampton
andauthored
Working on tailwindcss issues brisbanesocialchess#680 (brisbanesocialchess#681)
* handling [data-theme='light'] .role:hover img * set white color for table head * move css transition * set color text text-white always * change color-role-coordinator * run pre-commit * Update frontend/assets/tailwind.css Co-authored-by: John Bampton <[email protected]> --------- Co-authored-by: John Bampton <[email protected]>
1 parent c30d8df commit 1e86796

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

frontend/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ title: About Us
3333
<div class="overflow-x-auto">
3434
<table class="w-full table-auto border-collapse">
3535
<thead>
36-
<tr class="bg-table-header text-center">
36+
<tr class="bg-table-header text-center text-white">
3737
<th class="border px-4 py-2 w-[40px]">Role</th>
3838
<th class="border px-4 py-2">Name</th>
3939
</tr>

frontend/assets/styles/custom.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
--text-color: #ffffff;
77
--reverse-text-color: #111111;
88
--card-bg: rgba(255, 255, 255, 0.1);
9+
--role-shadow-rgb: 255, 255, 255;
910
}
1011
[data-theme='light'] {
1112
--toggle-icon-color: #111111;
@@ -15,6 +16,7 @@
1516
--text-color: #111111;
1617
--reverse-text-color: #ffffff;
1718
--card-bg: rgba(255, 255, 255, 0.85);
19+
--role-shadow-rgb: 0, 0, 0;
1820
}
1921

2022
/* Theme */
@@ -70,10 +72,10 @@
7072
}
7173
.role img {
7274
border: var(--role-border) var(--role-color);
75+
transition: filter 0.3s ease;
7376
}
7477
.role:hover img {
75-
filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
76-
transition: filter 0.3s ease;
78+
filter: drop-shadow(0 0 10px rgba(var(--role-shadow-rgb), 0.4)) drop-shadow(0 0 20px rgba(var(--role-shadow-rgb), 0.2));
7779
}
7880
.role span {
7981
color: var(--role-color);

frontend/assets/tailwind.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
--color-role-moderator: #ec9c11;
1818
--color-role-board: purple;
1919
--color-role-leader: orange;
20-
--color-role-coordinator: #3498db;
20+
--color-role-coordinator: #1d4ed8;
2121
--color-role-co-organizers: blue;
2222
--color-role-event-organizers: lime;
2323
--color-role-assistant-organizers: #c35339;
24+
--role-shadow-rgb: 255, 255, 255; /* default for dark theme */
2425
}

frontend/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ title: Play, Learn & Compete in Brisbane
5555
</p>
5656
<div class="overflow-x-auto mb-6">
5757
<table class="min-w-full border border-gray-300 text-left">
58-
<thead class="bg-indigo-900 text-center">
58+
<thead class="bg-indigo-900 text-center text-white">
5959
<tr>
6060
<th class="px-4 py-2">Day</th>
6161
<th class="px-4 py-2">Time</th>

frontend/meetup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Chess Meetups & Locations
1414
Click on a day to view detailed meetup information:
1515
</p>
1616
<!-- Button group -->
17-
<div class="flex flex-col text-[var(--reverse-text-color)] md:flex-row flex-wrap gap-3 mt-4 w-full max-w-lg justify-center">
17+
<div class="flex flex-col text-white md:flex-row flex-wrap gap-3 mt-4 w-full max-w-lg justify-center">
1818
<a href="{{ '/meetup/wednesday/' | url }}" class="px-6 py-3 bg-indigo-900 hover:bg-indigo-500 rounded-full font-bold shadow-md transition">Wednesday</a>
1919
<a href="{{ '/meetup/thursday/' | url }}" class="px-6 py-3 bg-indigo-900 hover:bg-indigo-500 rounded-full font-bold shadow-md transition">Thursday</a>
2020
<a href="{{ '/meetup/friday/' | url }}" class="px-6 py-3 bg-indigo-900 hover:bg-indigo-500 rounded-full font-bold shadow-md transition">Friday</a>

0 commit comments

Comments
 (0)