128 lines
1.7 KiB
CSS
128 lines
1.7 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;
|
|
}
|
|
|
|
.Sat {
|
|
/* opacity: 30%; */
|
|
/* background-color: lightsteelblue; */
|
|
border-left: solid 1px lightsteelblue;
|
|
}
|
|
|
|
.Sun {
|
|
border-right: solid 1px lightsteelblue;
|
|
|
|
}
|
|
|
|
.bank-holiday {
|
|
border: solid 1px blue;
|
|
|
|
}
|
|
|
|
th.worker {
|
|
max-width: 100%;
|
|
width: 200px;
|
|
/* width: 100px; */
|
|
}
|
|
|
|
.plymouth {
|
|
color: #9169FF;
|
|
}
|
|
.exeter {
|
|
color: #5F60E8;
|
|
}
|
|
.truro {
|
|
color: #0074D9;
|
|
}
|
|
.torquay {
|
|
color: #5FA8E8;
|
|
}
|
|
.unavailable {
|
|
color: lightgray;
|
|
}
|
|
.shift-requested {
|
|
color: green;
|
|
}
|
|
|
|
.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;
|
|
}
|