Skip to content

Commit e201c95

Browse files
committed
chore: updated calendar style
1 parent 01f909c commit e201c95

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

src/assets/calendar/css/calendar.module.css

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,24 @@
1616
.calendar_holder ul {
1717
display: grid;
1818
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
19+
column-gap: 1.21rem;
20+
row-gap: 0.11em;
1921
flex-wrap: wrap;
2022
list-style: none;
23+
overflow: hidden;
24+
position: relative;
25+
left: -0.8em;
2126
}
2227
.calendar_holder ul li {
2328
display: flex;
2429
width: 7rem;
2530
height: 7rem;
26-
margin: 0.25rem;
31+
margin: 0.1rem;
2732
flex-flow: column;
2833
border-radius: 0.2rem;
29-
padding: 1rem;
34+
padding: 0.01rem;
3035
font-weight: 300;
31-
font-size: 0.8rem;
36+
font-size: 1.08rem;
3237
box-sizing: border-box;
3338
background: rgba(255, 255, 255, 0.25);
3439
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
@@ -37,14 +42,36 @@
3742
border-radius: 10px;
3843
border: 1px solid rgba(255, 255, 255, 0.18);
3944
}
45+
46+
.calendar_holder ul li span:first-of-type{
47+
margin-top:0 !important;
48+
padding-top: 0 !important;
49+
position: relative;
50+
bottom:1.4em;
51+
}
52+
53+
.calendar_holder ul li > *{
54+
position:relative;
55+
padding: 0.01rem;
56+
margin: 0.01rem;
57+
padding-top: 0 !important;
58+
}
59+
4060
.calendar_holder ul li time {
4161
font-size: 2rem;
42-
margin: 0 0 1rem 0;
62+
margin: 0.8rem 0 0.01rem 0;
4363
font-weight: 500;
4464
}
65+
66+
.calendar_holder ul li sub{
67+
position:relative;
68+
top: -3.6rem;
69+
}
70+
4571
.calendar_holder ul .today {
4672
background: #ffffff70;
4773
}
74+
4875
.calendar_holder ul .today time {
4976
font-weight: 800;
5077
}

src/components/calendar/ListItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function ListItem(props){
66
const feasts = feast && feast.map((e,i)=>(<span key={i}>{`${e.name.slice(0, 20)}...`}</span>))
77
return (
88
<>
9-
<sub style={{color: "red", "fontStyle":"italic", "textTransform":"capitalize", "top":"-7em", position:"relative"}}>{week_day}</sub>
9+
<sub style={{color: "red", "fontStyle":"italic", "textTransform":"capitalize"}}>{week_day}</sub>
1010
{saints}
1111
{feasts}
1212
</>

0 commit comments

Comments
 (0)