epicyon/epicyon-calendar.css

375 lines
8.1 KiB
CSS
Raw Permalink Normal View History

2019-10-10 19:19:47 +00:00
:root {
2022-04-05 19:26:10 +00:00
--main-bg-color: #282c37;
--calendar-bg-color: #282c37;
--lines-color: grey;
--day-number: #dddddd;
--day-number2: #bbbbbb;
--time-color: #aaa;
2022-06-16 10:43:03 +00:00
--place-color: lightblue;
2022-04-05 19:26:10 +00:00
--event-color: grey;
--event-public-color: #282c37;
2022-04-05 19:26:10 +00:00
--today-foreground: black;
--today-circle: grey;
--event-background: black;
--event-background-private: #222;
2021-11-18 21:52:17 +00:00
--event-foreground: white;
--title-text: white;
2022-04-05 19:26:10 +00:00
--title-background: grey;
--focus-color: white;
2022-05-29 16:57:01 +00:00
--banner-height: 20vh;
--banner-height-mobile: 10vh;
--banner-height-tiny: 10vh;
2020-11-07 23:18:09 +00:00
--calendar-horizontal-padding: 0;
2020-11-11 13:06:47 +00:00
--calendar-cell-size: 1.5vw;
--calendar-cell-size-mobile: 1.5vw;
2021-11-18 21:52:17 +00:00
--calendar-cell-size-tiny: 1.5vw;
2021-11-03 16:50:22 +00:00
--font-size-calendar: 20px;
--font-size-calendar-mobile: 30px;
2021-11-18 21:52:17 +00:00
--font-size-calendar-tiny: 15px;
2020-11-07 23:18:09 +00:00
--font-size-calendar-header: 3rem;
--font-size-calendar-day: 1rem;
2020-11-11 12:46:33 +00:00
--font-size-calendar-cell: 2rem;
--font-size-calendar-cell-mobile: 4rem;
2021-11-18 21:52:17 +00:00
--font-size-calendar-cell-tiny: 2rem;
2020-11-16 19:53:02 +00:00
--calendar-header-font: 'Montserrat';
--calendar-header-font-style: italic;
2022-04-05 19:26:10 +00:00
--main-link-color-hover: #bbb;
2021-02-18 13:23:33 +00:00
--rendering: normal;
2022-02-21 11:08:48 +00:00
--ical-icon-size: 32px;
--ical-icon-size-mobile: 80px;
--ical-icon-size-tiny: 80px;
2019-10-10 19:19:47 +00:00
}
2020-09-14 14:00:49 +00:00
@font-face {
2021-11-18 21:52:17 +00:00
font-family: 'NimbusSanL';
2021-02-03 14:41:01 +00:00
font-style: italic;
2020-09-14 14:00:49 +00:00
font-weight: normal;
font-display: block;
2021-11-18 21:52:17 +00:00
src: url('./fonts/NimbusSanL-italic.otf') format('opentype');
2020-09-14 14:00:49 +00:00
}
2020-05-28 20:04:37 +00:00
@font-face {
2021-11-18 21:52:17 +00:00
font-family: 'NimbusSanL';
2020-05-28 20:04:37 +00:00
font-style: normal;
font-weight: normal;
2020-07-12 19:36:29 +00:00
font-display: block;
2021-11-18 21:52:17 +00:00
src: url('./fonts/NimbusSanL.otf') format('opentype');
2020-05-28 20:04:37 +00:00
}
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);
2021-11-18 21:52:17 +00:00
font-family: 'NimbusSanL';
2019-10-10 19:19:47 +00:00
font-weight: 700;
2021-02-18 13:23:33 +00:00
image-rendering: var(--rendering);
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
}
2022-05-25 16:06:05 +00:00
.imageAnchor {
font-family: var(--calendar-header-font);
}
.imageAnchor:focus img{
border: 2px solid var(--focus-color);
}
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;
2020-11-24 18:00:29 +00:00
font-weight: normal;
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;
2020-11-24 18:00:29 +00:00
font-weight: normal;
}
a:link:hover {
color: var(--main-link-color-hover);
}
a:visited:hover {
color: var(--main-link-color-hover);
2019-10-11 19:19:09 +00:00
}
2020-08-14 20:14:26 +00:00
a:focus {
border: 2px solid var(--focus-color);
}
2023-01-20 14:08:30 +00:00
.emoji {
float: none;
width: 50px;
margin-left: 0px;
margin-right: 0px;
padding-right: 0px;
border-radius: 0px;
vertical-align: middle;
}
2021-02-12 15:15:26 +00:00
.transparent {
color: transparent;
background: transparent;
font-size: 0px;
line-height: 0px;
height: 0px;
}
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__banner--month {
2019-10-10 19:19:47 +00:00
text-align: center;
padding: .75rem;
2019-10-10 14:43:21 +00:00
}
2022-05-25 18:00:33 +00:00
.calheader {
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;
2021-11-18 21:52:17 +00:00
font-family: var(--calendar-header-font);
2020-11-07 23:18:09 +00:00
font-size: var(--font-size-calendar-header);
2019-10-10 19:19:47 +00:00
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 {
2020-11-07 23:18:09 +00:00
font-size: var(--font-size-calendar-day);
2019-10-10 19:19:47 +00:00
letter-spacing: 0.1em;
text-transform: uppercase;
2019-10-10 14:43:21 +00:00
}
2019-10-11 21:14:44 +00:00
.year {
font-size: 30px;
}
.calItem {
background-color: var(--event-background-private);
}
.calItemPublic {
background-color: var(--event-background);
}
2019-10-11 20:45:46 +00:00
.calendar__day__event {
2019-10-11 21:26:03 +00:00
color: var(--event-color);
background-color: var(--event-background-private);
float: left;
font-size: 28px;
position: relative;
padding: 20px;
2022-12-17 13:49:01 +00:00
direction: ltr;
}
2022-12-17 13:49:01 +00:00
.calendar__day__event__rtl {
color: var(--event-color);
background-color: var(--event-background-private);
float: left;
font-size: 28px;
position: relative;
padding: 20px;
direction: rtl;
}
2021-03-07 15:34:29 +00:00
.calendar__day__event__public {
color: var(--event-public-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;
2022-12-17 13:49:01 +00:00
direction: ltr;
}
.calendar__day__event__public__rtl {
color: var(--event-public-color);
float: left;
font-size: 28px;
position: relative;
padding: 20px;
direction: rtl;
2019-10-11 21:21:58 +00:00
}
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: 8%;
2019-10-11 14:34:06 +00:00
-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: 8%;
2019-10-11 14:34:06 +00:00
-ms-transform: translateY(30%) scaleX(-1);
transform: translateY(30%) scaleX(-1);
2019-10-11 14:23:23 +00:00
}
2020-11-11 12:46:33 +00:00
@media screen and (min-width: 400px) {
2022-05-29 16:57:01 +00:00
.timeline-banner {
vertical-align: top;
object-fit: cover;
width: 100%;
max-height: var(--banner-height);
}
2020-11-11 12:46:33 +00:00
.calendar {
table-display: fixed;
margin: 0 20%;
width: 60%;
padding: 0 var(--calendar-horizontal-padding);
}
.calendar__day__cell {
font-size: var(--font-size-calendar-cell);
position: relative;
}
2020-11-11 12:57:12 +00:00
.calendar__day__header,
.calendar__day__cell {
2020-11-11 13:14:52 +00:00
padding: var(--calendar-cell-size) 0 var(--calendar-cell-size);
2020-11-11 12:57:12 +00:00
}
2021-11-03 16:50:22 +00:00
body {
2021-11-18 21:52:17 +00:00
font-size: var(--font-size-calendar);
2021-11-03 16:50:22 +00:00
}
2022-02-21 11:37:18 +00:00
body img.ical {
2022-02-21 11:08:48 +00:00
width: var(--ical-icon-size);
float: right;
}
2020-11-11 12:46:33 +00:00
}
@media screen and (max-width: 1000px) {
2022-05-29 16:57:01 +00:00
.timeline-banner {
vertical-align: top;
object-fit: cover;
width: 98vw;
max-height: var(--banner-height-mobile);
}
2020-11-11 12:46:33 +00:00
.calendar {
table-display: fixed;
margin: 0 0;
width: 100%;
padding: 0 var(--calendar-horizontal-padding);
}
.calendar__day__cell {
font-size: var(--font-size-calendar-cell-mobile);
position: relative;
}
2020-11-11 12:57:12 +00:00
.calendar__day__header,
.calendar__day__cell {
2020-11-11 13:14:52 +00:00
padding: var(--calendar-cell-size-mobile) 0 var(--calendar-cell-size-mobile);
2020-11-11 12:57:12 +00:00
}
2021-11-03 16:50:22 +00:00
body {
2021-11-18 21:52:17 +00:00
font-size: var(--font-size-calendar-mobile);
}
2022-02-21 11:37:18 +00:00
body img.ical {
2022-02-21 11:08:48 +00:00
width: var(--ical-icon-size-mobile);
float: right;
}
2021-11-18 21:52:17 +00:00
}
@media screen and (max-width: 480px) {
2022-05-29 16:57:01 +00:00
.timeline-banner {
vertical-align: top;
object-fit: cover;
width: 98vw;
max-height: var(--banner-height-tiny);
}
2021-11-18 21:52:17 +00:00
.calendar {
table-display: fixed;
margin: 0 0;
width: 100%;
padding: 0 var(--calendar-horizontal-padding);
}
.calendar__day__cell {
font-size: var(--font-size-calendar-cell-tiny);
position: relative;
}
.calendar__day__header,
.calendar__day__cell {
padding: var(--calendar-cell-size-tiny) 0 var(--calendar-cell-size-tiny);
}
body {
font-size: var(--font-size-calendar-tiny);
2021-11-03 16:50:22 +00:00
}
2022-02-21 11:37:18 +00:00
body img.ical {
2022-02-21 11:08:48 +00:00
width: var(--ical-icon-size-tiny);
float: right;
}
2020-11-11 12:46:33 +00:00
}