mirror of https://gitlab.com/bashrc2/epicyon
Calendar style
parent
5a04f407d3
commit
7e50140f71
|
@ -1,6 +1,12 @@
|
|||
:root {
|
||||
--main-bg-color: #282c37;
|
||||
--lines-color: darkgray;
|
||||
--day-number: lightgray;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #e66053;
|
||||
color: #4E4F4A;
|
||||
background-color: var(--main-bg-color);
|
||||
color: gray;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
|
@ -28,7 +34,7 @@ main {
|
|||
|
||||
.calendar__day__header,
|
||||
.calendar__day__cell {
|
||||
border: 2px solid #e66053;
|
||||
border: 2px solid var(--lines-color);
|
||||
text-align: center;
|
||||
width: 100% / 7;
|
||||
vertical-align: middle;
|
||||
|
@ -74,16 +80,16 @@ main {
|
|||
}
|
||||
|
||||
tr:nth-child(odd) > .calendar__day__cell:nth-child(odd) {
|
||||
color: #e66053;
|
||||
color: var(--day-number);
|
||||
}
|
||||
|
||||
tr:nth-child(even) > .calendar__day__cell:nth-child(even) {
|
||||
color: #e66053;
|
||||
color: var(--day-number);
|
||||
}
|
||||
|
||||
.calendar__day__cell[data-event] {
|
||||
background-color: #e66053;
|
||||
color: #4E4F4A;
|
||||
background-color: blue;
|
||||
color: blue;
|
||||
}
|
||||
.calendar__day__cell[data-event]:after {
|
||||
content: attr(data-event);
|
||||
|
|
Loading…
Reference in New Issue