Skip to content

Commit

Permalink
increase width of stripes and border
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidOpDeBeeck committed May 1, 2024
1 parent fff7c77 commit 2ba9121
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rcaas-ui/src/calendar/Day.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ function dayBg(day: DayTO): string {
if (day.today) {
return singleColor("blue.500");
}
if (day.weekend && day.otherMonth) {
return striped("blackAlpha.400", "whiteAlpha.50");
}
if (day.weekend) {
if (day.otherMonth) {
return striped("blackAlpha.400", "whiteAlpha.50");
}
return singleColor("blackAlpha.400");
}
if (day.otherMonth) {
Expand All @@ -27,7 +27,7 @@ function singleColor(color: string) {
}

function striped(color: string, stripes: string) {
return `linear-gradient(45deg, ${stripes} 12.50%, ${color} 12.50%, ${color} 50%, ${stripes} 50%, ${stripes} 62.50%, ${color} 62.50%, ${color} 100%)`;
return `linear-gradient(45deg, ${color} 25%, ${stripes} 25%, ${stripes} 50%, ${color} 50%, ${color} 75%, ${stripes} 75%, ${stripes} 100%)`;
}

interface Props {
Expand Down Expand Up @@ -55,9 +55,9 @@ export default function Day({day, dayIndex, showDayName}: Props) {
h="100%"
p={2}
bgGradient={dayBg(day)}
bgSize='5.66px 5.66px'
bgSize='14.14px 14.14px'
border="1px"
borderColor="blackAlpha.100"
borderColor="blackAlpha.200"
borderRadius={5}
onMouseOver={() => setIsHovering(true)}
onMouseOut={() => setIsHovering(false)}>
Expand Down

0 comments on commit 2ba9121

Please sign in to comment.