Skip to content

Commit d50c2d1

Browse files
committed
Some styling to the schedule page, courtesy of Bedrizzle.
1 parent 98f5062 commit d50c2d1

File tree

2 files changed

+39
-13
lines changed

2 files changed

+39
-13
lines changed

css/style.css

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -401,33 +401,59 @@ div#schedule.section {
401401
padding: 0;
402402
}
403403

404-
table.schedule td.hour {
405-
border-right: 0;
406-
vertical-align: top;
404+
table.schedule{
405+
background: #fff;
406+
border-collapse: collapse;
407+
border: 2px solid #363636;
408+
border-bottom: none;
409+
border-right: none;
410+
text-align: center;
411+
}
407412

413+
table.schedule tr{
414+
border-bottom: 2px solid #363636;
408415
}
409416

410-
table.schedule {
411-
text-align: center;
417+
table.schedule th,
418+
table.schedule td{
419+
border-right: 2px solid #363636;
420+
padding: 10px;
421+
}
422+
423+
table.schedule td{
424+
background: #eee;
425+
padding: 5px 10px;
426+
}
427+
428+
table.schedule td.hour,
429+
table.schedule td.minute{
430+
background: transparent;
431+
}
432+
433+
table.schedule td.hour {
434+
border-right: 0;
435+
vertical-align: top;
436+
padding-right: 5px;
412437
}
413438

414439
table.schedule td.minute {
415440
border-left: 0;
441+
padding-left: 0;
416442
}
417443

418444
table.schedule td.lunch {
419-
background-color: green;
445+
background-color: #81bde8;
420446
}
421447

422448
table.schedule td.break {
423-
background-color: red;
449+
background-color: #f48899;
424450
}
425451

426452
table.schedule td.registration {
427-
background-color: yellow;
453+
background-color: #fff48e;
428454
}
429455

430-
table, table * {
431-
border: solid 1px #666;
432-
border-collapse: collapse;
456+
table.schedule tbody tr.highlight {
457+
background-color: #99ffcc;
433458
}
459+

resources/schedule.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h1>PHP Community
4545
<tr>
4646
<td class="minute">45</td>
4747
</tr>
48-
<tr>
48+
<tr class="highlight">
4949
<td rowspan="4" class="hour">10</td>
5050
<td class="minute">00</td>
5151
<td rowspan="12">Lorna Mitchell - Web Services</td>
@@ -94,7 +94,7 @@ <h1>PHP Community
9494
<tr>
9595
<td class="minute">45</td>
9696
</tr>
97-
<tr>
97+
<tr class="highlight">
9898
<td rowspan="4" class="hour">13</td>
9999
<td class="minute">00</td>
100100
<td rowspan="4" colspan="2" class="lunch">Lunch</td>

0 commit comments

Comments
 (0)