Collapse two-pixel borders inside the table
It's a hack, but it works http://people.freedesktop.org/~david/calendar-table-collapse-hack.png Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
505b9047d7
commit
bbd2b89df3
@ -771,9 +771,18 @@ StTooltip StLabel {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Hack used in lieu of border-collapse - see calendar.js */
|
||||
.calendar-day {
|
||||
border: 1px solid #333333;
|
||||
color: #cccccc;
|
||||
border-top-width: 0;
|
||||
border-left-width: 0;
|
||||
}
|
||||
.calendar-day-top {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
.calendar-day-left {
|
||||
border-left-width: 1px;
|
||||
}
|
||||
|
||||
.calendar-work-day {
|
||||
|
@ -553,6 +553,12 @@ Calendar.prototype = {
|
||||
else
|
||||
styleClass += ' calendar-nonwork-day'
|
||||
|
||||
// Hack used in lieu of border-collapse - see gnome-shell.css
|
||||
if (row == 2)
|
||||
styleClass = 'calendar-day-top ' + styleClass;
|
||||
if (iter.getDay() == 0)
|
||||
styleClass = 'calendar-day-left ' + styleClass;
|
||||
|
||||
if (_sameDay(now, iter))
|
||||
styleClass += ' calendar-today';
|
||||
else if (iter.getMonth() != this.selectedDate.getMonth())
|
||||
|
Loading…
Reference in New Issue
Block a user