scss: add common agenda tables styles (#26003)

This commit is contained in:
Serghei Mihai 2018-08-31 18:21:22 +02:00
parent 2fdf730c05
commit 0a9286c591
1 changed files with 8 additions and 8 deletions

View File

@ -91,23 +91,23 @@ a.timeperiod-exception-all {
min-width: 24ex;
}
.dayview table {
table.agenda-table {
border-collapse: collapse;
}
.dayview thead th {
.agenda-table thead th {
width: 14vw;
padding-bottom: 1ex;
}
@for $i from 1 through 7 {
.dayview .desks-#{$i} {
.agenda-table.desks-#{$i} {
width: 100%;
thead th { width: (100%/$i)-1%; }
}
}
.dayview tbody th {
.agenda-table tbody th {
box-sizing: border-box;
text-align: left;
padding: 1ex 2ex;
@ -115,15 +115,15 @@ a.timeperiod-exception-all {
width: 8ex;
}
.dayview tbody tr:nth-child(2n+1) th,
.dayview tbody tr:nth-child(2n+1) td {
.agenda-table tbody tr:nth-child(2n+1) th,
.agenda-table tbody tr:nth-child(2n+1) td {
background: #f0f0f0;
@media print {
border-top: 1px solid #aaa;
}
}
.dayview tbody td {
.agenda-table tbody td {
padding: 0 1ex;
vertical-align: top;
position: relative;
@ -135,7 +135,7 @@ a.timeperiod-exception-all {
}
}
.dayview tbody td div {
.agenda-table tbody td div {
box-sizing: border-box;
padding: 1ex;
position: absolute;