shit calendar update

This commit is contained in:
devin 2012-10-17 17:35:30 +08:00 committed by chris
parent c29955d9e3
commit 98ef582e17
5 changed files with 256 additions and 218 deletions

View File

@ -163,7 +163,7 @@ var calendarAPI = function(){
if($('#calendar_month').length > 0){
var $c_table = $('#calendar_month');
var sum_h = 0;
var context_h = $('#main-sidebar').outerHeight();
var context_h = $(window).height() - $('#orbit-bar').height();
$('#main-wrap > *').not('#orbit_calendar, .modal').each(function(){
sum_h += $(this).outerHeight();
});

View File

@ -36,18 +36,21 @@
-webkit-box-shadow: inset 0 0 1px black;
-moz-box-shadow: inset 0 0 1px black;
}
.event_list_wrapper {
position: relative;
}
.event_list .cell {
height: 38px;
height: 39px;
border: solid 1px #ddd;
border-top: 0;
}
.event_list .divide {
height: 18px;
height: 19px;
margin-bottom: 18px;
border-bottom: solid 1px #eee;
}
.event_list .day_time {
height: 30px;
height: 31px;
border-bottom: solid 1px #ddd;
border-left: solid 1px #ddd;
text-align: right;
@ -189,7 +192,7 @@
}
#calendar_day .all_day_event {
background: #eee;
border: solid 1px #ddd
border: solid 1px #ddd;
}
#calendar_day .event_list .table {
border-top: solid 1px #ddd;
@ -223,14 +226,14 @@
}
#calendar_week .header td {
border: solid 1px #ddd;
background-color: #eee;
/*background-color: #eee;*/
}
#calendar_week .week_day {
padding: 0 2px;
border: solid 1px #ddd;
}
#calendar_week .header .week_day {
padding: 1px 2px 10px 2px;
padding: 2px 4px 0px 2px;
}
#calendar_week .event_list .event {
position: absolute;
@ -250,7 +253,18 @@
#calendar_week .event_holder .inner {
margin: 0 8px 0 0;
}
#calendar_week .all_day_event_holder {
position: relative;
width: 100%;
table-layout: fixed;
}
#calendar_week .all_day_event_holder td {
border: 0;
background-color: transparent;
}
#calendar_week .all_day_event {
background: #eee;
}

View File

@ -59,36 +59,55 @@
<th>Sat 9/17</th>
</tr>
<tr>
<td style="border: 0; background: none;"></td>
<td class="all_day_event week_day">
<div class="event half" style="background-color: #ccffee;">
<dl>
<dt>10:30am - template</dt>
<dd></dd>
</dl>
</div>
</td>
<td class="all_day_event week_day">
</td>
<td colspan="8" style="border:0;">
<div class="event_list_wrapper" style="height:50px;">
<table style="position: absolute; width: 100%; height: 50px; top: 0;">
<tr>
<td style="border: 0; background: none; width: 60px;"></td>
<td class="all_day_event week_day"></td>
<td class="all_day_event week_day"></td>
<td class="all_day_event week_day"></td>
<td class="all_day_event week_day"></td>
<td class="all_day_event week_day">
<div class="event half" style="background-color: #ccffee;">
<dl>
<dt>10:30am - template</dt>
<dd></dd>
</dl>
</div>
</td>
<td class="all_day_event week_day"></td>
<td class="all_day_event week_day"></td>
<td class="all_day_event week_day"></td>
</tr>
</table>
<table class="all_day_event_holder">
<tr>
<td rowspan="2" style="width:60px;"></td>
<td colspan="7" class="all_day_event week_day">
<div class="event half" style="background-color: #ccffee;">
<dl>
<dt>10:30am - template</dt>
<dd></dd>
</dl>
</div>
</td>
</tr>
<tr>
<td colspan="1"></td>
<td colspan="2" class="all_day_event week_day">
<div class="event half" style="background-color: #ccffee;">
<dl>
<dt>10:30am - template</dt>
<dd></dd>
</dl>
</div>
</td>
<td colspan="4"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<div class="event_list">
<table class="table cell_map">
<tr height="1">
<tr height="0">
<td style="width: 60px;"></td>
<td colspan="7" style="position: relative;">
<td colspan="7">
<div class="event_list_wrapper">
<div class="cell_wrapper">
<div class="cell">
<div class="divide"></div>
@ -163,6 +182,7 @@
<div class="divide"></div>
</div>
</div>
</div>
</td>
</tr>
<tr>

View File

@ -43,7 +43,8 @@
<div class="day_time">10pm</div>
<div class="day_time">11pm</div>
</td>
<td style="position: relative;">
<td>
<div class="event_list_wrapper">
<div class="cell">
<div class="divide"></div>
</div>
@ -150,6 +151,7 @@
</div>
</div>
</div>
</div>
</td>
</tr>
</table>

View File

@ -40,9 +40,10 @@
</table>
<div class="event_list">
<table class="table cell_map">
<tr height="1">
<tr height="0">
<td style="width: 60px;"></td>
<td colspan="7" style="position: relative;">
<td colspan="7">
<div class="event_list_wrapper">
<div class="cell_wrapper">
<% @hours.each do |hour| %>
<div class="cell">
@ -53,6 +54,7 @@
</div>
<% end %>
</div>
</div>
</td>
</tr>
<tr>