Files
proc-rota/timetable.css
T
2020-05-28 09:41:41 +01:00

108 lines
1.4 KiB
CSS

html {
/* color: red; */
}
table {
/* margin-top: 50px; */
padding-top: 100px;
text-align:center;
table-layout : fixed;
/* width:150px */
width: 200%;
overflow-x: auto;
display: block;
position: relative;
}
#table-div {
overflow-x: auto;
}
th {
text-align:center;
white-space:nowrap;
transform: rotate(90deg) translateX(-100px);
position: sticky;
top:0;
}
th p {
margin:0 -100% ;
display:inline-block;
}
th p:before{
content:'';
width:0;
padding-top:110%;/* takes width as reference, + 10% for faking some extra padding */
display:inline-block;
vertical-align:middle;
}
td, th {
max-width: 10px;
padding: 0px;
}
tr {
padding: 0px;
}
tr:hover {
background-color: lightblue;
}
tr:hover .unavailable{
background-color: lightgray;
}
th.worker {
max-width: 100%;
width: 200px;
/* width: 100px; */
}
.plymouth {
color: #9169FF;
}
.exeter {
color: #5F60E8;
}
.truro {
color: #0074D9;
}
.torquay {
color: #5FA8E8;
}
.unavailable {
color: lightgray;
}
.worker-summary {
position: absolute;
display: none;
}
.site-summary {
display: inline-flex;
}
.site-summary .site {
border: 1px solid black;
padding: 5px;
margin: 20px;
}
.site-name {
font-weight: bold;
}
.worker-summary span {
min-width: 160px;
display: inline-flex;
}
.training-days-lost {
padding-top: 5px;
}