Fix light theme colors

This commit is contained in:
2023-02-23 21:25:02 +01:00
parent ad3f736e52
commit 3bc18ed704
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<div class="flex justify-center w-full h-full" v-if="month_offset > 0 && min_date && max_date">
<!-- Left side -->
<ol class="relative border-r text-right w-1/2 border-zinc-200 dark:border-zinc-700">
<ol class="relative border-r text-right w-1/2 border-zinc-300 dark:border-zinc-700">
<li class="mr-4 absolute right-0" v-for="event in left_events" :key="props.left[event.index].title" :style="`top: ${event.offset*month_offset}px`">
<div class="relative">
<!-- Start point -->
@ -29,7 +29,7 @@
<div class="w-4"></div>
<!-- Right side -->
<ol class="relative w-1/2 border-l border-zinc-200 dark:border-zinc-700">
<ol class="relative w-1/2 border-l border-zinc-300 dark:border-zinc-700">
<li class="ml-4 absolute left-0" v-for="event in right_events" :key="props.right[event.index].title" :style="`top: ${event.offset*month_offset}px`">
<div class="relative">
<!-- Start point -->
@ -90,7 +90,7 @@
}
function updateTimelineSize():void {
const available_space:number = container_timeline.value.clientHeight ?? 0;
const available_space:number = container_timeline.value?.clientHeight ?? 0;
let events_min_date:Date = new Date(),
events_max_date:Date = new Date(0);

View File

@ -1,5 +1,5 @@
<template>
<div class="border rounded-md p-3 mx-auto w-full lg:w-2/3 xl:w-1/2">
<div class="border border-gray-500 dark:border-gray-300 rounded-md p-3 mx-auto w-full lg:w-2/3 xl:w-1/2">
<h3 class="text-2xl font-semibold text-center text-gray-900 dark:text-white">{{ props.title }}</h3>
<div class="text-center mb-2">
<a v-for="link in props.links" :href="link.url" class="font-mono inline-block hover:underline mx-2">{{ link.label }}</a>