epicyon/epicyon-calendar.css

204 lines
3.9 KiB
CSS
Raw Normal View History

2019-10-10 19:19:47 +00:00
:root {
--main-bg-color: #282c37;
2019-10-11 11:31:29 +00:00
--calendar-bg-color: #eee;
--lines-color: black;
--day-number: black;
2019-10-11 16:00:54 +00:00
--day-number2: #282c37;
2019-10-11 21:26:03 +00:00
--time-color: black;
--place-color: black;
--event-color: #282c37;
2019-10-10 20:56:23 +00:00
--today-foreground: white;
2019-10-11 11:31:29 +00:00
--today-circle: red;
--event-background: orange;
--event-foreground:white;
2019-10-11 11:42:09 +00:00
--title-text: #282c37;
2019-10-11 11:47:48 +00:00
--title-background: #ccc;
2020-08-14 20:14:26 +00:00
--focus-color: white;
2019-10-10 19:19:47 +00:00
}
2020-05-28 20:04:37 +00:00
@font-face {
font-family: 'Bedstead';
font-style: normal;
font-weight: normal;
2020-07-12 19:36:29 +00:00
font-display: block;
2020-05-28 20:04:37 +00:00
src: url('./fonts/bedstead.otf') format('opentype');
}
2019-10-10 18:25:42 +00:00
body {
2019-10-10 19:19:47 +00:00
background-color: var(--main-bg-color);
2019-10-10 20:43:43 +00:00
color: var(--day-number2);
2019-10-10 19:19:47 +00:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
font-family: 'Montserrat';
font-weight: 700;
min-height: 100vh;
2019-10-10 18:25:42 +00:00
}
main {
2019-10-10 20:43:43 +00:00
background-color: var(--calendar-bg-color);
2019-10-10 19:19:47 +00:00
-ms-flex-preferred-size: 980px;
flex-basis: 980px;
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar {
2019-10-10 19:19:47 +00:00
table-display: fixed;
width: 100%;
2019-10-10 14:43:21 +00:00
}
2019-10-11 19:19:09 +00:00
a:visited{
color: var(--day-number);
text-decoration: none;
2019-10-11 20:12:24 +00:00
z-index: 1;
2019-10-11 20:20:23 +00:00
padding: 1rem;
margin: -1rem;
2019-10-11 19:19:09 +00:00
}
a:link {
color: var(--day-number);
text-decoration: none;
2019-10-11 20:12:24 +00:00
z-index: 1;
2019-10-11 20:20:23 +00:00
padding: 1rem;
margin: -1rem;
2019-10-11 19:19:09 +00:00
}
2020-08-14 20:14:26 +00:00
a:focus {
border: 2px solid var(--focus-color);
}
2019-10-10 18:25:42 +00:00
.calendar__day__header,
.calendar__day__cell {
2019-10-10 19:19:47 +00:00
border: 2px solid var(--lines-color);
text-align: center;
width: 100% / 7;
vertical-align: middle;
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__day__header:first-child,
.calendar__day__cell:first-child {
2019-10-10 19:19:47 +00:00
border-left: none;
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__day__header:last-child,
.calendar__day__cell:last-child {
2019-10-10 19:19:47 +00:00
border-right: none;
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__day__header,
.calendar__day__cell {
2019-10-10 19:19:47 +00:00
padding: .75rem 0 1.5rem;
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__banner--month {
2019-10-10 19:19:47 +00:00
text-align: center;
padding: .75rem;
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__banner--month h1 {
2019-10-11 10:54:06 +00:00
background-color: var(--title-background);
color: var(--title-text);
2019-10-10 19:19:47 +00:00
display: inline-block;
font-size: 3rem;
font-weight: 400;
letter-spacing: 0.1em;
padding: .5rem 2rem;
text-transform: uppercase;
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__day__header {
2019-10-10 19:19:47 +00:00
font-size: 1rem;
letter-spacing: 0.1em;
text-transform: uppercase;
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__day__cell {
2019-10-10 19:19:47 +00:00
font-size: 4rem;
position: relative;
2019-10-10 14:43:21 +00:00
}
2019-10-11 21:14:44 +00:00
.year {
font-size: 30px;
}
2019-10-11 20:45:46 +00:00
.calendar__day__event {
2019-10-11 21:26:03 +00:00
color: var(--event-color);
2019-10-11 21:03:04 +00:00
float: left;
2019-10-11 21:21:58 +00:00
font-size: 28px;
position: relative;
padding: 20px;
}
2019-10-11 21:24:00 +00:00
.place {
2019-10-11 21:26:03 +00:00
color: var(--place-color);
2019-10-11 21:21:58 +00:00
float: left;
2019-10-11 21:24:00 +00:00
font-size: 38px;
2019-10-11 21:03:04 +00:00
position: relative;
}
2020-02-23 11:47:07 +00:00
2019-10-11 21:03:04 +00:00
.calendar__day__time {
2019-10-11 21:26:03 +00:00
color: var(--time-color);
2019-10-11 21:03:04 +00:00
float: left;
2019-10-11 21:21:58 +00:00
font-size: 38px;
2019-10-11 20:45:46 +00:00
position: relative;
2019-10-11 21:07:30 +00:00
padding: 20px;
2019-10-11 20:45:46 +00:00
}
2020-02-23 11:47:07 +00:00
.calendar__day__icons {
2020-02-23 11:48:51 +00:00
width: 10%;
2020-02-23 11:47:07 +00:00
position: relative;
padding: 20px;
}
2019-10-11 21:12:51 +00:00
tr { border: none; }
td {
border-left: solid 2px var(--lines-color);
}
2019-10-10 18:25:42 +00:00
tr:nth-child(odd) > .calendar__day__cell:nth-child(odd) {
2019-10-10 19:19:47 +00:00
color: var(--day-number);
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
tr:nth-child(even) > .calendar__day__cell:nth-child(even) {
2019-10-10 19:19:47 +00:00
color: var(--day-number);
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__day__cell[data-event] {
2019-10-11 11:31:29 +00:00
background-color: var(--event-background);
2019-10-11 10:30:44 +00:00
color: var(--event-foreground);
2019-10-10 14:43:21 +00:00
}
2019-10-10 18:25:42 +00:00
.calendar__day__cell[data-today] {
2019-10-11 09:02:20 +00:00
border-radius: 50%;
border: 4px solid var(--today-circle);
color: var(--today-circle);
text-align: center;
2019-10-10 14:43:21 +00:00
}
2019-10-11 10:28:28 +00:00
.calendar__day__cell[data-today-event] {
border-radius: 50%;
2019-10-11 11:42:09 +00:00
background-color: var(--event-background);
border: 4px solid var(--today-circle);
2019-10-11 10:30:44 +00:00
color: var(--event-foreground);
2019-10-11 10:28:28 +00:00
text-align: center;
}
2019-10-11 14:34:06 +00:00
2020-02-23 11:29:44 +00:00
.calendardayicon {
2020-02-23 11:48:51 +00:00
width: 100%
2020-02-23 11:29:44 +00:00
}
2019-10-11 14:23:23 +00:00
.buttonprev {
2019-10-11 14:34:06 +00:00
float: left;
width: 10%;
-ms-transform: translateY(30%);
transform: translateY(30%);
2019-10-11 14:23:23 +00:00
}
2019-10-11 14:34:06 +00:00
2019-10-11 14:23:23 +00:00
.buttonnext {
2019-10-11 14:34:06 +00:00
float: right;
width: 10%;
-ms-transform: translateY(30%) scaleX(-1);
transform: translateY(30%) scaleX(-1);
2019-10-11 14:23:23 +00:00
}