source: extensions/modus/css/index.css.tpl @ 28570

Last change on this file since 28570 was 25794, checked in by rvelices, 11 years ago
File size: 4.4 KB
Line 
1/* Thumbnail "elastic" layout */
2.thumbnails {
3        margin: 1em 0;
4        padding: 0;
5        list-style: none;
6        text-align: center;     /* to center the whole collection in .content */
7}
8.thumbnails LI { display: inline }
9
10.thumbnails .wrap1 {
11        margin: 0 7px 5px 7px;
12        display: table-cell; display: inline-table;
13        display: inline-block;/* Why 3 display option ??? */
14        vertical-align: top;    /* OK with Opera and IE6 not Geko */
15        text-align: center;             /* to center the thumbnail and legend in Geko/Opera */
16}
17.thumbnails .wrap2 {
18        margin: 0;                      /* important reset the margins */
19        display: table-cell;/* block prevents vertical-align here */
20        vertical-align: middle;/* Ok with Opera and Geko not IE6 */
21        border-radius: 4px;     /* round corners with CSS3 compliant browsers */
22        border: 1px solid gray;
23}
24
25.thumbnails .wrap2 A {
26        display: block;
27}
28.thumbnails IMG {
29        vertical-align: middle;
30}
31
32.thumbnails .thumbLegend {
33        overflow: hidden;/* oversized legend is clipped */
34        height: 4em;    /* legend height (don't set auto to be Gecko friendly)*/
35}
36
37
38
39/* Category thumbnails on main page, CSS code inspired from MOD subcatify */
40.thumbnailCategories {
41        margin: 0;
42        padding: 0;
43        list-style: none;
44        overflow: hidden;
45        width: 100%;
46}
47
48.thumbnailCategories LI {
49        margin: 0;
50        padding: 0;
51        float: left;
52        width: 49.7%;    /* 49.7% for 2 per line, 33.2% for 3 per line*/
53}
54
55.thumbnailCategory {
56        display:block;
57        padding: 2px 0 0 2px;
58        margin: 5px;
59        border: 1px solid gray;
60}
61
62.thumbnailCategory .description {
63        font-size: 90%;
64        overflow: auto;
65        /*width: inherit;*/
66}
67
68.thumbnailCategory .description H3 {
69        text-align: left;
70        margin: 0;
71        padding: 0.1em;
72        font-size: 120%;
73}
74
75.illustration { /*also used by comment lists*/
76        text-align: left;
77        margin: 2px 0 0 2px;
78        float: left;
79}
80
81.thumbnails .wrap2:hover,
82.thumbnailCategory:hover {
83        border-color: {$skin.A.color};  /* thumbnails border color when mouse cursor is over it */
84}
85
86
87
88/*Album thumbnails*/
89.albThumbs {
90        list-style: none;
91        padding: 0;
92        text-align: center;
93}
94
95.albThumbs LI {
96        display: inline-block;
97        position: relative;
98        overflow: hidden;
99        margin: 5px 5px;
100        width: {$MODUS_ALBUM_THUMB_SIZE}px;
101        height: {$MODUS_ALBUM_THUMB_SIZE}px;
102}
103
104.albImg {
105        display: block;
106        position: relative
107}
108
109.albLegend {
110        height: 4em;
111        width: 100%;
112        text-align: left;
113        position: absolute;
114        left: 0; /* for IE7, all others use 0 by default*/
115        bottom: -1px; /* -1 for IE8 which has some rounding issues */
116        overflow: hidden;
117        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
118        line-height: 1.4;
119        text-indent: 5px;
120
121{if !empty($skin.albumLegend.color)}
122        color: {$skin.albumLegend.color};
123{/if}
124
125        filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#08000000,endColorStr=#90000000); /* IE to 9*/
126        background-image: -moz-linear-gradient(top,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* FF 3.16 to 15 */
127        background-image: -webkit-linear-gradient(top,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* Chrome, Safari */
128        background-image: -ms-linear-gradient(top,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* IE ? to 9 */
129        background-image: -o-linear-gradient(top,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* Opera 11 to 12 */
130        background-image: linear-gradient(to bottom,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* Standard must be last */
131}
132
133.albLegend H4 {
134        margin: 1em 0 2px;
135        overflow: hidden;
136}
137
138.albLegendRight {
139        float: right;
140        margin-right: 2px !important;
141}
142
143@media {cssResolution min=1.3}{
144        .albThumbs LI {
145                width:{($MODUS_ALBUM_THUMB_SIZE/1.5)|intval}px;height:{($MODUS_ALBUM_THUMB_SIZE/1.5)|intval}px
146        }
147
148        .albImg {
149                max-height: 100%;
150        }
151
152        .albLegend {
153                text-indent: 2px;
154                letter-spacing: -0.5px;
155                word-spacing:-1px
156        }
157}
158
159.albSymbol { /* used also in other contexts*/
160        font-size: 16px;
161        line-height: 20px;
162        cursor: pointer;
163}
164
165
166
167/* begin chronology/calendar elements*/
168.calendarViews {
169        float: right;
170        margin: 5px 5px 0 0;
171}
172
173.calItem {
174        font-weight: bold;
175        margin: 0 1px;
176        padding: 0 1px;
177        border: 1px solid gray;
178        text-decoration: none !important;
179}
180
181.calendarCalBar {
182        margin: 10px;
183}
184
185.calCalHead {
186        font-weight: bold;
187        font-size: 110%;
188        margin: 0 2px;
189}
190
191.calCal { margin: 0 2px; }
192
193/* nice looking month calendar*/
194TABLE.calMonth {
195        border: 0;
196        border-collapse: collapse;
197        margin-bottom: 10px;    /*<-IE ignores this */
198}
199
200TD.calDayCellFull, TD.calDayCellEmpty {
201        vertical-align: top;
202        font-weight: bold;
203        font-size: 18px;
204        border: 1px solid gray;
205}
206
207.calBackDate {
208        padding-left: 3px;
209        padding-top: 0;
210        z-index: 2;
211        position: absolute;
212        color: #000;
213}
214
215.calForeDate {
216        padding-left: 4px;
217        padding-top: 1px;
218        z-index: 3;
219        position: absolute;
220        color: #fff;
221}
Note: See TracBrowser for help on using the repository browser.