Compare commits

..

2 Commits

Author SHA1 Message Date
5db97ebd0c
- modified calendar 2022-07-08 14:08:28 +02:00
d863422103
- improved colours 2022-07-08 13:40:50 +02:00
2 changed files with 14 additions and 14 deletions

View File

@ -13,8 +13,8 @@
} }
], ],
day.isHoliday && 'font-bold cursor-default', day.isHoliday && 'font-bold cursor-default',
(day.isPendingVacation) && `border-b-4 border-dashed ${day.getVacationType.border}`, (day.isPendingVacation) && `pb-0 border-b-[3px] border-dashed ${day.getVacationType.border}`,
(day.isVacation) && `border-b-4 ${day.getVacationType.border}` (day.isVacation) && `pb-0 border-b-[3px] ${day.getVacationType.border}`
]" ]"
> >
<Popper <Popper

View File

@ -91,13 +91,13 @@
</transition> </transition>
</Menu> </Menu>
</div> </div>
<div class="ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col"> <div class="border border-gray-300 lg:flex lg:flex-auto lg:flex-col">
<div <div
v-if="calendarState.viewMode.isMonth" v-if="calendarState.viewMode.isMonth"
class="grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none" class="grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-300 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none"
> >
<div class="py-2 bg-white"> <div class="py-2 bg-white">
Pn Pon
</div> </div>
<div class="py-2 bg-white"> <div class="py-2 bg-white">
Wt Wt
@ -106,19 +106,19 @@
Śr Śr
</div> </div>
<div class="py-2 bg-white"> <div class="py-2 bg-white">
Cz Czw
</div> </div>
<div class="py-2 bg-white"> <div class="py-2 bg-white">
Pt Pt
</div> </div>
<div class="py-2 bg-red-100 text-red-800"> <div class="py-2 bg-red-100 text-red-800">
Sb Sob
</div> </div>
<div class="py-2 bg-red-100 text-red-800"> <div class="py-2 bg-red-100 text-red-800">
Nd Ndz
</div> </div>
</div> </div>
<div class="flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto"> <div class="flex bg-gray-300 text-xs leading-6 text-gray-700 lg:flex-auto">
<div <div
class="w-full grid grid-cols-7 gap-px" class="w-full grid grid-cols-7 gap-px"
:class="{ 'grid-rows-1': calendarState.viewMode.isWeek }" :class="{ 'grid-rows-1': calendarState.viewMode.isWeek }"
@ -127,7 +127,7 @@
v-for="(day, index) in days" v-for="(day, index) in days"
:key="index" :key="index"
:day="day" :day="day"
class="flex flex-col relative py-2 px-3" class="flex flex-col relative py-3 px-3"
:class="{ 'day': calendarState.viewMode.isWeek }" :class="{ 'day': calendarState.viewMode.isWeek }"
/> />
</div> </div>
@ -378,7 +378,7 @@ function getVacationInfo(day) {
<style lang="css"> <style lang="css">
.day:nth-of-type(7n - 6):before { .day:nth-of-type(7n - 6):before {
content: "Pn"; content: "Pon";
} }
.day:nth-of-type(7n - 5):before { .day:nth-of-type(7n - 5):before {
@ -390,7 +390,7 @@ function getVacationInfo(day) {
} }
.day:nth-of-type(7n - 3):before { .day:nth-of-type(7n - 3):before {
content: "Cz"; content: "Czw";
} }
.day:nth-of-type(7n - 2):before { .day:nth-of-type(7n - 2):before {
@ -398,10 +398,10 @@ function getVacationInfo(day) {
} }
.day:nth-of-type(7n - 1):before { .day:nth-of-type(7n - 1):before {
content: "Sb"; content: "Sob";
} }
.day:nth-of-type(7n):before { .day:nth-of-type(7n):before {
content: "Nd"; content: "Ndz";
} }
</style> </style>