source: extensions/modus/template/month_calendar.tpl @ 25794

Last change on this file since 25794 was 25794, checked in by rvelices, 10 years ago
File size: 1.0 KB
Line 
1{include file='../../default/template/month_calendar.tpl'}
2{if isset($chronology_calendar.month_view)}
3{html_style}
4.calMonth TH{
5        max-width:{$chronology_calendar.month_view.CELL_WIDTH}px;
6        overflow:hidden;
7        text-overflow:ellipsis
8}
9.calImg IMG{
10        max-height:100%;
11        width:auto
12}
13
14{$crt_width=$chronology_calendar.month_view.CELL_WIDTH}
15@media (max-width:{7*($crt_width+3)}px){
16{$crt_width=($crt_width/1.5)|intval}
17        .calMonth TH{
18                max-width:{$crt_width}px
19        }
20        .calMonth TD,.calMonth .calImg{
21                width:{$crt_width}px;
22                height:{$crt_width}px
23        }
24}
25
26@media (max-width:{7*($crt_width+3)}px){
27{$crt_width=($chronology_calendar.month_view.CELL_WIDTH/2)|intval}
28        .calMonth TH{
29                max-width:{$crt_width}px
30        }
31        .calMonth TD,.calMonth .calImg{
32                font-size:16px;
33                width:{$crt_width}px;
34                height:{$crt_width}px
35        }
36}
37
38{if 7*($crt_width+3)>320}
39@media (max-width:360px){
40{$crt_width=(320/7-1)|intval}
41        .calMonth TH{
42                max-width:{$crt_width-2}px
43        }
44        .calMonth TD,.calMonth .calImg{
45                font-size:12px;
46                padding:0;
47                width:{$crt_width}px;
48                height:{$crt_width}px
49        }
50}
51{/if}
52{/html_style}
53{/if}
Note: See TracBrowser for help on using the repository browser.