Skip to content

Dark mode improvements #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
}

.h1 {
@apply mb-4 text-2xl font-semibold text-[#86858B] dark:text-gray-300;
@apply mb-4 text-2xl font-semibold text-gray-900 dark:text-gray-300;
}

.h2 {
@apply mb-4 text-xl font-semibold text-[#86858B] dark:text-gray-300;
@apply mb-4 text-xl font-semibold text-gray-900 dark:text-gray-300;
}

.h3 {
Expand Down
6 changes: 5 additions & 1 deletion src/components/ArrivalDeparture.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
const scheduledDiff = scheduled - now;

if (predictedTime == 0) {
return { status: 'scheduled', text: 'Scheduled/not real-time', color: 'text-gray-500' };
return {
status: 'scheduled',
text: 'Scheduled/not real-time',
color: 'text-gray-500 dark:text-gray-400'
};
} else if (predictedDiff <= 0) {
return {
status: 'early',
Expand Down
12 changes: 5 additions & 7 deletions src/components/map/StopMarker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,23 @@
</span>
</button>

<style>
<style lang="postcss">
.custom-marker {
width: 40px;
height: 40px;
border-radius: 5px;
@apply h-8 w-8 rounded-md;
@apply bg-white/80 dark:bg-neutral-200;
@apply border border-2 border-gray-400;
display: flex;
justify-content: center;
align-items: center;
position: relative;
background-color: rgba(255, 255, 255, 0.8);
border: 2px solid #444;
}

.custom-marker:hover {
cursor: pointer;
}

.bus-icon {
font-size: 24px;
font-size: 20px;
color: #000;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/ModalPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<style lang="postcss">
.modal-pane {
@apply absolute bottom-0 left-0 max-h-[40rem] w-[25em] overflow-y-scroll bg-transparent px-2 shadow-lg md:w-full md:max-w-prose lg:w-full;
@apply rounded-lg border-b-[1px] border-[#C6C6C8] bg-[#F3F2F8] dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15 dark:bg-black;
@apply rounded-lg border-b-[1px] border-[#C6C6C8] bg-[#F3F2F8] dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15 dark:bg-neutral-800;
}

.modal-content {
Expand Down
8 changes: 4 additions & 4 deletions src/components/oba/StopPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@
{#if arrivalsAndDepartures}
<div>
<div>
<div class="h-36 rounded-lg bg-[#1C1C1E] bg-opacity-80 p-4">
<h1 class="h1 mb-1">{stop.name}</h1>
<h2 class="h2 mb-1">Stop #{stop.id}</h2>
<div class="flex flex-col gap-y-1 rounded-lg bg-[#1C1C1E] bg-opacity-80 p-4">
<h1 class="h1 mb-0 text-white">{stop.name}</h1>
<h2 class="h2 mb-0 text-white">Stop #{stop.id}</h2>
{#if routeShortNames()}
<h2 class="h2">Routes: {routeShortNames().join(', ')}</h2>
<h2 class="h2 mb-0 text-white">Routes: {routeShortNames().join(', ')}</h2>
{/if}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/oba/TripDetailsPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
{#each tripDetails.schedule.stopTimes as tripStop, index}
<div class="relative mb-4 flex items-center">
<div
class="relative z-10 flex size-8 items-center justify-center rounded-md border border-neutral-400 bg-white"
class="relative z-10 flex size-8 items-center justify-center rounded-md border border-neutral-400 bg-white dark:bg-neutral-800"
>
{#if index === busPosition}
<FontAwesomeIcon
Expand Down
Loading