husstanden/static/css/calendar.css

246 lines
5.7 KiB
CSS
Raw Normal View History

.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clearfix {
display: inline-block;
}
html[xmlns] .clearfix {
display: block;
}
* html .clearfix {
height: 1%;
}
.noselect {
-webkit-user-select: none;
/* Chrome/Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* IE10+ */
}
.calendar h4 {
width: 75%;
text-align: center;
font-weight: normal;
color: white;
font-size: 14px;
margin: 0 auto 1em auto;
padding: 1em;
background: #b63642;
}
.calendar h5 {
font-size: 1em;
font-weight: bold;
}
.calendar p {
text-align: center;
margin: 3em auto 1em auto;
padding-top: 0.5em;
padding-bottom: 0.5em;
border-bottom: 2px solid #414141;
background: #f4f4f4;
}
.left-align {
text-align: left;
}
.right-align {
text-align: right;
}
.calendar {
margin: 30px auto;
max-width: 600px;
font-size: 14px;
}
.calendar .clndr .clndr-controls {
display: inline-block;
width: 100%;
position: relative;
margin-bottom: 10px;
}
.calendar .clndr .clndr-controls .month {
float: left;
width: 33%;
text-align: center;
}
.calendar .clndr .clndr-controls .clndr-control-button {
float: left;
width: 33%;
}
.calendar .clndr .clndr-controls .clndr-control-button.rightalign {
text-align: right;
width: 34%;
}
.calendar .clndr .clndr-controls .clndr-control-button .clndr-next-button {
cursor: pointer;
-webkit-user-select: none;
/* Chrome/Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* IE10+ */
}
.calendar .clndr .clndr-controls .clndr-control-button .clndr-next-button:hover {
background: #ddd;
}
.calendar .clndr .clndr-controls .clndr-control-button .clndr-next-button.inactive {
opacity: 0.5;
}
.calendar .clndr .clndr-controls .clndr-control-button .clndr-next-button.inactive:hover {
background: none;
cursor: default;
}
.calendar .clndr .clndr-controls .clndr-control-button .clndr-previous-button {
cursor: pointer;
-webkit-user-select: none;
/* Chrome/Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* IE10+ */
}
.calendar .clndr .clndr-controls .clndr-control-button .clndr-previous-button:hover {
background: #ddd;
}
.calendar .clndr .clndr-controls .clndr-control-button .clndr-previous-button.inactive {
opacity: 0.5;
}
.calendar .clndr .clndr-controls .clndr-control-button .clndr-previous-button.inactive:hover {
background: none;
cursor: default;
}
.calendar .clndr .clndr-table {
table-layout: fixed;
width: 100%;
}
.calendar .clndr .clndr-table .header-days {
height: 30px;
font-size: 10px;
2019-05-10 08:24:13 +02:00
background: #506EE4;
}
.calendar .clndr .clndr-table .header-days .header-day {
vertical-align: middle;
text-align: center;
border-left: 1px solid #000000;
border-top: 1px solid #000000;
color: #fff;
}
.calendar .clndr .clndr-table .header-days .header-day:last-child {
border-right: 1px solid #000000;
}
.calendar .clndr .clndr-table tr {
height: 85px;
}
.calendar .clndr .clndr-table tr td {
vertical-align: top;
}
.calendar .clndr .clndr-table tr .day {
2019-05-10 08:24:13 +02:00
border: 1px solid #000000;
width: 100%;
height: inherit;
}
.calendar .clndr .clndr-table tr .day:hover {
background: #eee;
}
.calendar .clndr .clndr-table tr .day.today,
.calendar .clndr .clndr-table tr .day.my-today {
2019-05-10 08:24:13 +02:00
box-shadow: inset 0 0 0 2px black;
}
.calendar .clndr .clndr-table tr .day.event,
.calendar .clndr .clndr-table tr .day.my-event {
2019-05-10 08:24:13 +02:00
background: #a0b3ff;
}
.calendar .clndr .clndr-table tr .day.event:hover,
.calendar .clndr .clndr-table tr .day.my-event:hover {
2019-05-10 08:24:13 +02:00
background: #91a3eb;
}
.calendar .clndr .clndr-table tr .day.inactive,
.calendar .clndr .clndr-table tr .day.my-inactive {
background: #ddd;
}
.calendar .clndr .clndr-table tr .day:last-child {
border-right: 1px solid #000000;
}
.calendar .clndr .clndr-table tr .day .day-contents {
box-sizing: border-box;
padding: 8px;
font-size: 12px;
text-align: right;
}
.calendar .clndr .clndr-table tr .empty,
.calendar .clndr .clndr-table tr .adjacent-month,
.calendar .clndr .clndr-table tr .my-empty,
.calendar .clndr .clndr-table tr .my-adjacent-month {
border-left: 1px solid #000000;
border-top: 1px solid #000000;
width: 100%;
height: inherit;
background: #eee;
}
.calendar .clndr .clndr-table tr .empty:hover,
.calendar .clndr .clndr-table tr .adjacent-month:hover,
.calendar .clndr .clndr-table tr .my-empty:hover,
.calendar .clndr .clndr-table tr .my-adjacent-month:hover {
background: #ddd;
}
.calendar .clndr .clndr-table tr .empty:last-child,
.calendar .clndr .clndr-table tr .adjacent-month:last-child,
.calendar .clndr .clndr-table tr .my-empty:last-child,
.calendar .clndr .clndr-table tr .my-adjacent-month:last-child {
border-right: 1px solid #000000;
}
.calendar .clndr .clndr-table tr:last-child .day,
.calendar .clndr .clndr-table tr:last-child .my-day {
border-bottom: 1px solid #000000;
}
.calendar .clndr .clndr-table tr:last-child .empty,
.calendar .clndr .clndr-table tr:last-child .my-empty {
border-bottom: 1px solid #000000;
}
.clndr-next-button,
.clndr-previous-button,
.clndr-next-year-button,
.clndr-previous-year-button {
-webkit-user-select: none;
/* Chrome/Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* IE10+ */
}
.clndr-next-button.inactive,
.clndr-previous-button.inactive,
.clndr-next-year-button.inactive,
.clndr-previous-year-button.inactive {
opacity: 0.5;
cursor: default;
}
2019-05-10 08:24:13 +02:00
/*
.calendar .clndr .clndr-table tr .day.selected {
outline: 2px dotted black;
outline-offset: -4px;
}
*/
.calendar {
height: 578px;
overflow: hidden;
}
.clndr > .clndr-main > .events {
display: none;
position: relative;
top: -541px;
height: 541px;
background: #fff;
}
.clndr > .clndr-main.show-event-menu > .events {
display: block;
}