Skip to content

Commit 1d80750

Browse files
ISSUE-46: Remove references to dark mode
1 parent e199661 commit 1d80750

File tree

49 files changed

+1751
-1751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1751
-1751
lines changed

public/assets/flowbite/tailwind.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/html/activity.html.twig

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{{ activity.getStartDate().format(' j, Y') }}
2222
</span>
2323
<button type="button"
24-
class="close text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white">
24+
class="close text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center">
2525
<svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
2626
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
2727
d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
@@ -38,37 +38,37 @@
3838
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
3939
<div>
4040
<div class="mb-4 grid grid-cols-6 gap-2">
41-
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600">
41+
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow">
4242
<div class="text-center">
4343
<dd class="text-xs text-gray-500">Distance</dd>
4444
<dt class="font-extrabold">{{ renderComponent('measurement', {'measurement': activity.getDistance(), 'precision': 0}) }}</dt>
4545
</div>
4646
</div>
47-
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600">
47+
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow">
4848
<div class="text-center">
4949
<dd class="text-xs text-gray-500">Moving time</dd>
5050
<dt class="font-extrabold">{{ activity.getMovingTimeFormatted() }}</dt>
5151
</div>
5252
</div>
53-
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600">
53+
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow">
5454
<div class="text-center">
5555
<dd class="text-xs text-gray-500">Elevation</dd>
5656
<dt class="font-extrabold">{{ renderComponent('measurement', {'measurement': activity.getElevation(), 'precision': 0}) }}</dt>
5757
</div>
5858
</div>
59-
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600">
59+
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-2 border border-gray-200 rounded-lg shadow">
6060
<div class="text-center">
6161
<dd class="text-xs text-gray-500">Calories</dd>
6262
<dt class="font-extrabold">{{ activity.getCalories() }}</dt>
6363
</div>
6464
</div>
65-
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-4 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600">
65+
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-4 border border-gray-200 rounded-lg shadow">
6666
<div class="text-center">
6767
<dd class="text-xs text-gray-500">Gear</dd>
6868
<dt class="text-xs font-extrabold">{{ activity.getGearName() ?: 'Other' }}</dt>
6969
</div>
7070
</div>
71-
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-4 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600">
71+
<div class="flex flex-col items-center justify-center overflow-hidden px-2 py-4 border border-gray-200 rounded-lg shadow">
7272
<div class="text-center">
7373
<dd class="text-xs text-gray-500">Device</dd>
7474
<dt class="text-xs font-extrabold">{{ activity.getDeviceName() ?: 'None' }}</dt>
@@ -95,15 +95,15 @@
9595
</a>
9696
</div>
9797
<div data-popover id="popover-image-{{ loop.index }}" role="tooltip"
98-
class="z-[1000] w-[35rem] absolute invisible inline-block text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0 dark:bg-gray-800 dark:border-gray-600">
98+
class="z-[1000] w-[35rem] absolute invisible inline-block text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0">
9999
<img class="h-auto max-w-full rounded-lg lazy"
100100
src="{{ renderComponent('placeholder-image') }}" data-src="{{ imagePath }}"
101101
alt="Activity image"/>
102102
</div>
103103
{% endfor %}
104104
</div>
105105
{% endif %}
106-
<div class="mb-4 relative overflow-x-auto px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600">
106+
<div class="mb-4 relative overflow-x-auto px-2 py-2 border border-gray-200 rounded-lg shadow">
107107
<table class="w-full text-sm text-center text-gray-500">
108108
<thead class="text-xs text-gray-700 uppercase">
109109
<tr>
@@ -125,7 +125,7 @@
125125
</tr>
126126
</thead>
127127
<tbody>
128-
<tr class="border-b dark:border-gray-600">
128+
<tr class="border-b">
129129
<th class="px-2 py-2">
130130
Avg
131131
</th>
@@ -195,7 +195,7 @@
195195
</table>
196196
</div>
197197
{% if activity.hasDetailedPowerData() %}
198-
<div class="relative overflow-x-auto px-2 py-2 border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-600">
198+
<div class="relative overflow-x-auto px-2 py-2 border border-gray-200 rounded-lg shadow">
199199
<table class="w-full text-sm text-center text-gray-500">
200200
<thead class="text-xs text-gray-700 uppercase">
201201
{% set timeIntervals = [5, 60, 300, 1200] %}
@@ -216,10 +216,10 @@
216216
{% for timeInterval in timeIntervals %}
217217
{% set powerOutput = activity.getBestAveragePowerForTimeInterval(timeInterval) %}
218218
{% if powerOutput %}
219-
<td class="px-2 py-2 first:border-l-0 border-l dark:border-gray-600">
219+
<td class="px-2 py-2 first:border-l-0 border-l">
220220
{{ powerOutput.getPower() }}<span class="text-xs">w</span>
221221
</td>
222-
<td class="px-2 py-2 last:border-r-0 border-r dark:border-gray-600">
222+
<td class="px-2 py-2 last:border-r-0 border-r">
223223
{{ powerOutput.getRelativePower() }}<span class="text-xs">w/kg</span>
224224
</td>
225225
{% endif %}
@@ -252,11 +252,11 @@
252252
{% if segmentEfforts|length > 0 %}
253253
<div class="grid grid-cols-1 gap-4">
254254
<div id="accordion-segments" data-accordion="collapse"
255-
data-active-classes="text-gray-900 dark:text-white"
256-
data-inactive-classes="text-gray-900 dark:text-white">
255+
data-active-classes="text-gray-900"
256+
data-inactive-classes="text-gray-900">
257257
<a id="accordion-segments-heading" data-accordion-target="#accordion-segments-body" aria-expanded="false"
258258
aria-controls="accordion-segments-body"
259-
class="hover:underline cursor-pointer flex items-center gap-3 justify-between w-full px-2 py-3 font-medium rtl:text-right text-gray-900 dark:text-white">
259+
class="hover:underline cursor-pointer flex items-center gap-3 justify-between w-full px-2 py-3 font-medium rtl:text-right text-gray-900">
260260
<span>Segments ({{ segmentEfforts|length }})</span>
261261
<svg data-accordion-icon class="w-3 h-3 shrink-0" aria-hidden="true"
262262
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
@@ -267,7 +267,7 @@
267267
<div id="accordion-segments-body" class="hidden relative overflow-x-auto"
268268
aria-labelledby="accordion-segments-heading">
269269
<table class="w-full text-sm text-center text-gray-500">
270-
<thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-800">
270+
<thead class="text-xs text-gray-700 uppercase bg-gray-50">
271271
<tr>
272272
<th scope="col" class="px-2 py-3 text-left">
273273

@@ -296,10 +296,10 @@
296296
</thead>
297297
<tbody>
298298
{% for segmentEffort in segmentEfforts %}
299-
<tr class="{{ cycle(['bg-white border-b dark:bg-gray-900 dark:border-gray-700', 'border-b bg-gray-50 dark:bg-gray-800 dark:border-gray-700'], loop.index0) }}">
299+
<tr class="{{ cycle(['bg-white border-b', 'border-b bg-gray-50'], loop.index0) }}">
300300
<td class="px-2 py-2 text-left">
301301
<a href="#" data-model-content-url="segment/{{ segmentEffort.getSegmentId() }}.html"
302-
class="flex items-center gap-x-1 font-medium text-blue-600 dark:text-blue-500 hover:underline"
302+
class="flex items-center gap-x-1 font-medium text-blue-600 hover:underline"
303303
rel="nofollow">
304304
<span class="truncate">{{ segmentEffort.getName()|ellipses(50) }}</span>
305305
</a>

0 commit comments

Comments
 (0)