kobo-wall-calendar/static/style.css

97 lines
1.5 KiB
CSS
Raw Normal View History

2023-09-17 16:06:20 +00:00
* {
box-sizing: border-box;
margin: 0;
}
.week-counter {
width: 2%;
text-align: center;
border-right: 1px lightgray solid;
display: inline-block;
font-size: 0.5rem;
}
.calendar-grid {
font-size: 0;
width: 100%;
}
.calendar-weekday-header {
text-align: center;
font-weight: bold;
border-bottom: 1px black solid;
font-size: 0.5rem;
}
.calendar-day {
border-bottom: 1px lightgray solid;
border-right: 1px lightgray solid;
min-height: 100px;
font-size: 0.5rem;
height: 18vh;
}
.crossed-out {
position: relative;
overflow: hidden;
}
.crossed-out:before, .crossed-out:after {
position: absolute;
content: '';
background: grey;
display: block;
width: 100%;
height: 10px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}
.crossed-out:after {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.calendar-day.weekend-day {
background: yellow;
}
.calendar-day .day-num {
text-align: right;
margin: 5px;
}
.day-num.today {
background-color: red;
color: white;
padding-right: 4px;
border-radius: 7px;
margin: 5px 1px;
font-weight: bold;
}
.event {
background: pink;
padding: 1px 5px;
border-radius: 7px;
margin: 5px;
}
.calendar-day,.calendar-weekday-header {
width: 14%;
display: inline-block;
}
.month-header {
text-align: center;
}