interq.ens.fr/www/css/calendar.css

339 lines
6.6 KiB
CSS
Raw Normal View History

2024-01-05 17:05:23 +01:00
/* Calendar */
2024-02-19 20:18:10 +01:00
.cal-container {
2024-03-05 10:58:39 +01:00
position: relative;
2024-01-05 17:05:23 +01:00
2024-03-05 10:58:39 +01:00
width: 100%;
/* height: 1200px; */
padding: 0;
2024-01-05 17:05:23 +01:00
2024-03-05 10:58:39 +01:00
font-size: 0.8rem;
line-height: 100%;
2024-01-05 17:05:23 +01:00
}
2024-02-19 20:18:10 +01:00
.cal-container,
.cal-container * {
2024-01-05 17:05:23 +01:00
box-sizing: border-box;
}
2024-03-05 10:58:39 +01:00
2024-01-05 17:05:23 +01:00
/* Time slots */
2024-02-19 20:18:10 +01:00
.cal-container .cal-time-slot-container {
2024-01-05 17:05:23 +01:00
display: grid;
/* grid-template-columns: repeat(24, 1fr); */
grid-template-rows: 30px auto;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: calc(100% + 30px);
padding: 0;
2024-02-19 20:18:10 +01:00
border-bottom: 0px solid rgba(0, 0, 0, 0.5);
2024-01-05 17:05:23 +01:00
z-index: 10;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-time-slot {
2024-01-05 17:05:23 +01:00
border-right: 1px solid rgba(0, 0, 0, 0.5);
background-color: rgba(255, 255, 255, 0.8);
}
2024-02-19 20:18:10 +01:00
/* .cal-container .cal-time-slot:hover {
2024-01-05 17:05:23 +01:00
background-color: red;
} */
2024-02-19 20:18:10 +01:00
.cal-container .cal-time-slot:nth-child(even) {
background-color: rgba(71, 19, 43, 0);
2024-01-05 17:05:23 +01:00
}
2024-02-19 20:18:10 +01:00
/* .cal-container .cal-time-slot:nth-child(even):hover {
2024-01-05 17:05:23 +01:00
background-color: #D9D9D9;
} */
2024-02-19 20:18:10 +01:00
.cal-container .cal-time-slot:last-child {
2024-01-05 17:05:23 +01:00
border-right: 0;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-time-slot-hour {
2024-01-05 17:05:23 +01:00
padding: 0 0 0 calc(100% - 0.9rem + 7px);
background-color: none; /* rgba(255, 223, 165, 0.08); */
2024-02-19 20:18:10 +01:00
border-bottom: 0px solid rgba(71, 19, 43, 0.25);
font-size: 1rem;
2024-01-05 17:05:23 +01:00
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-time-slot-hour:nth-child(even) {
2024-03-05 10:58:39 +01:00
background-color: none;/* rgba(255, 223, 165, 0.05);*/
2024-01-05 17:05:23 +01:00
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-time-slot-hour:first-child {
2024-01-05 17:05:23 +01:00
color: transparent;
border-right: 0;
}
/* Events */
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-container {
2024-01-05 17:05:23 +01:00
display: grid;
/* grid-template-columns: repeat(24, 1fr); */
/* grid-template-rows: repeat(12, auto); */
position: absolute;
top: 40px;
left: 0;
width: 100%;
/* height: 100%; */
padding: 0;
z-index: 100;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event {
2024-01-05 17:05:23 +01:00
position: relative;
height: 42px;
margin: 2px 0;
padding: 5px;
/* background-color: #EFEFEF; */
border-radius: 3px;
/* border: 1px solid #CCC; */
border-width: 1px;
border-style: solid;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
/* z-index: 500; */
transition: 50ms ease-in;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event > * {
2024-01-05 17:05:23 +01:00
display: none;
margin: 5px;
overflow: hidden;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event > .cal-event-name,
.cal-container .cal-event > .cal-event-location,
.cal-container .cal-event > .cal-event-perm-count {
2024-01-05 17:05:23 +01:00
display: block;
margin: 0;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event > .cal-event-name {
2024-01-05 17:05:23 +01:00
font-weight: 700;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event > .cal-event-location {
font-weight: 300;
2024-01-05 17:05:23 +01:00
font-style: italic;
}
2024-02-19 20:18:10 +01:00
/*.cal-container .cal-event > .cal-event-location::before {
2024-01-05 17:05:23 +01:00
content: " · ";
}*/
2024-02-19 20:18:10 +01:00
.cal-container .cal-event > .cal-event-perm-count {
2024-01-05 17:05:23 +01:00
position: absolute;
bottom: 0;
right: 0;
}
2024-03-05 10:58:39 +01:00
.cal-container .cal-event:not(.cal-event-subscribed) > .cal-event-perm-count.cal-perms-missing {
2024-01-05 17:05:23 +01:00
width: calc(100% - 10px);
right: auto;
margin: 5px;
padding: 5px;
2024-03-05 10:58:39 +01:00
background-color: #FFF;
border: 2px solid #E44;
color: #E44;
2024-01-05 17:05:23 +01:00
font-weight: bold;
border-radius: 3px;
overflow: hidden;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event.cal-event-subscribed {
2024-01-05 17:05:23 +01:00
border-width: 3px;
border-color: #000;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event.cal-event-subscribed::after {
2024-01-05 17:05:23 +01:00
content: "✔";
position: absolute;
left: 0;
bottom: 0;
width: 16px;
height: 16px;
padding: 1px;
color: #fff;
background-color: #000;
border-top-right-radius: 3px;
}
2024-03-05 10:58:39 +01:00
2024-01-05 17:05:23 +01:00
/* Event details popup */
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details {
2024-01-05 17:05:23 +01:00
position: absolute;
min-height: 100px;
/* min-width: 40%; */
max-width: 80%;
padding: 20px;
background-color: #333;
2024-03-05 10:58:39 +01:00
color: #FFF;
2024-01-05 17:05:23 +01:00
border-radius: 4px;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
z-index: 1000;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details:after {
2024-03-05 10:58:39 +01:00
bottom: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-bottom-color: #333;
border-width: 20px;
margin-left: -20px;
2024-01-05 17:05:23 +01:00
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details.above-event:after {
2024-01-05 17:05:23 +01:00
top: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-top-color: #333;
border-width: 20px;
margin-left: -20px;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details * {
2024-01-05 17:05:23 +01:00
z-index: 1000;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-close-button {
2024-01-05 17:05:23 +01:00
width: 35px;
height: 35px;
position: absolute;
top: 10px;
right: 10px;
margin: 0;
padding: 5px;
background: transparent;
border: none;
border-radius: 50%;
font-size: 1.2rem;
2024-03-05 10:58:39 +01:00
color: #BBB;
2024-01-05 17:05:23 +01:00
transition: 100ms ease-out;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-close-button:hover {
2024-01-05 17:05:23 +01:00
background-color: #484848;
2024-03-05 10:58:39 +01:00
color: #EFEFEF;
2024-01-05 17:05:23 +01:00
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details a,
.cal-container .cal-event-details a:hover {
2024-03-05 10:58:39 +01:00
color: #FFF;
2024-01-05 17:05:23 +01:00
text-decoration: none;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-name {
2024-01-05 17:05:23 +01:00
padding: 10px;
border-radius: 4px;
font-size: 1rem;
2024-03-05 10:58:39 +01:00
color: #FFF;
2024-01-05 17:05:23 +01:00
text-transform: uppercase;
text-align: center;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-name h3 {
2024-01-05 17:05:23 +01:00
margin: 0 20px 20px 20px;
2024-03-05 10:58:39 +01:00
line-height: 150%;
2024-01-05 17:05:23 +01:00
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details table {
2024-01-05 17:05:23 +01:00
margin: 0 auto;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details td.cal-detail-label {
2024-01-05 17:05:23 +01:00
padding: 0 10px 10px 0;
font-weight: bold;
text-align: right;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details td.cal-detail-value {
2024-01-05 17:05:23 +01:00
padding: 0 0 10px 10px;
text-align: left;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-perm-area {
2024-01-05 17:05:23 +01:00
margin: 10px 0;
padding: 10px;
2024-03-05 10:58:39 +01:00
background-color: #DFDFDF;
2024-01-05 17:05:23 +01:00
color: #333;
text-align: center;
border-radius: 4px;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-perm-title {
2024-01-05 17:05:23 +01:00
margin: 0 0 10px 0;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-perm-area .cal-detail-perm-count {
2024-01-05 17:05:23 +01:00
margin: 0 10px 0 0;
font-size: 1.7rem;
vertical-align: middle;
}
2024-03-05 10:58:39 +01:00
.cal-container .cal-event-details .cal-detail-perm-area .cal-detail-perm-count.cal-perms-missing {
color: #E44;
2024-01-05 17:05:23 +01:00
}
2024-03-05 10:58:39 +01:00
.cal-container .cal-event-details .cal-detail-perm-area .cal-detail-perm-count.cal-perms-full {
2024-01-05 17:05:23 +01:00
color: #393;
}
2024-03-05 10:58:39 +01:00
.cal-container .cal-event-details .cal-detail-perm-area .cal-detail-perm-subscription-switch {
2024-01-05 17:05:23 +01:00
margin: 0 0 0 10px;
padding: 10px;
font-size: 1.35rem;
vertical-align: middle;
}
2024-03-05 10:58:39 +01:00
.cal-container .cal-event-details .cal-detail-perm-area .cal-detail-perm-nb-missing-perms {
2024-01-05 17:05:23 +01:00
margin: 20px 0 0 0;
padding: 5px;
2024-03-05 10:58:39 +01:00
background-color: #FFF;
2024-01-05 17:05:23 +01:00
border-radius: 4px;
text-align: center;
font-size: 1.1rem;
2024-03-05 10:58:39 +01:00
color: #E44;
2024-01-05 17:05:23 +01:00
font-weight: bold;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-description {
2024-01-05 17:05:23 +01:00
margin: 20px 0 0 0;
2024-03-05 10:58:39 +01:00
color: #DDD;
2024-01-05 17:05:23 +01:00
font-size: 0.9rem;
font-style: italic;
text-align: justify;
line-height: 130%;
}
2024-02-19 20:18:10 +01:00
.cal-container .cal-event-details .cal-detail-tag {
2024-01-05 17:05:23 +01:00
display: inline-block;
margin: 5px;
padding: 5px;
2024-03-05 10:58:39 +01:00
border: 1px solid #DDD;
2024-01-05 17:05:23 +01:00
}
2024-03-05 10:58:39 +01:00