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

Last change on this file since 31999 was 28936, checked in by rvelices, 10 years ago

modus

  • use a la gthumb captions instead of flyouts (code for popout is still available by changing a const in the code)
  • better album thumbs display for mobile (when there would be too much free space in the row)
  • menu categories display with squares (required only when menutree plugin is not active)
File size: 5.2 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{if $smarty.const.MODUS_POP}
38.popDesc {
39        display: none
40}
41{else}
42.overDesc {
43        color: white;
44        background-color: rgba(0,0,0,0.5);
45
46        position: absolute;
47        height: 1.5em;
48        width: 100%;
49        left: 0; /* for IE7, all others use 0 by default*/
50        bottom: -100px;
51        overflow: hidden;
52        text-align: center;
53        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
54        line-height: 1.4;
55        font-weight: bold;
56        white-space: nowrap;
57        text-overflow: ellipsis;
58        transition: all 200ms ease-out 0s;
59}
60
61LI:hover>.overDesc {
62        bottom: -1px; /* -1 for IE8 which has some rounding issues */
63}
64{/if}
65
66
67
68/* Category thumbnails on main page, CSS code inspired from MOD subcatify */
69.thumbnailCategories {
70        margin: 0;
71        padding: 0;
72        list-style: none;
73        overflow: hidden;
74        width: 100%;
75}
76
77.thumbnailCategories LI {
78        margin: 0;
79        padding: 0;
80        float: left;
81        width: 49.7%;    /* 49.7% for 2 per line, 33.2% for 3 per line*/
82}
83
84.thumbnailCategory {
85        display:block;
86        padding: 2px 0 0 2px;
87        margin: 5px;
88        border: 1px solid gray;
89}
90
91.thumbnailCategory .description {
92        font-size: 90%;
93        overflow: auto;
94        /*width: inherit;*/
95}
96
97.thumbnailCategory .description H3 {
98        text-align: left;
99        margin: 0;
100        padding: 0.1em;
101        font-size: 120%;
102}
103
104.illustration { /*also used by comment lists*/
105        text-align: left;
106        margin: 2px 0 0 2px;
107        float: left;
108}
109
110.thumbnails .wrap2:hover,
111.thumbnailCategory:hover {
112        border-color: {$skin.A.color};  /* thumbnails border color when mouse cursor is over it */
113}
114
115
116
117/*Album thumbnails*/
118.albThumbs {
119        list-style: none;
120        padding: 0;
121        text-align: center;
122}
123
124.albThumbs LI {
125        display: inline-block;
126        position: relative;
127        overflow: hidden;
128        margin: 5px 5px;
129        width: {$MODUS_ALBUM_THUMB_SIZE}px;
130        height: {$MODUS_ALBUM_THUMB_SIZE}px;
131}
132
133.albImg {
134        display: block;
135        position: relative
136}
137
138.albLegend {
139        height: 4em;
140        width: 100%;
141        text-align: left;
142        position: absolute;
143        left: 0; /* for IE7, all others use 0 by default*/
144        bottom: -1px; /* -1 for IE8 which has some rounding issues */
145        overflow: hidden;
146        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
147        line-height: 1.4;
148        text-indent: 5px;
149
150{if !empty($skin.albumLegend.color)}
151        color: {$skin.albumLegend.color};
152{/if}
153
154        filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#08000000,endColorStr=#90000000); /* IE to 9*/
155        background-image: -moz-linear-gradient(top,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* FF 3.16 to 15 */
156        background-image: -webkit-linear-gradient(top,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* Chrome, Safari */
157        background-image: -ms-linear-gradient(top,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* IE ? to 9 */
158        background-image: -o-linear-gradient(top,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* Opera 11 to 12 */
159        background-image: linear-gradient(to bottom,rgba(0,0,0,0.01),rgba(0,0,0,0.5)); /* Standard must be last */
160}
161
162.albLegend H4 {
163        margin: 1em 0 2px;
164        overflow: hidden;
165}
166
167.albLegendRight {
168        float: right;
169        margin-right: 2px !important;
170}
171
172@media {cssResolution min=1.3}{
173        .albThumbs LI {
174                width:{($MODUS_ALBUM_THUMB_SIZE/1.5)|intval}px;height:{($MODUS_ALBUM_THUMB_SIZE/1.5)|intval}px
175        }
176
177        .albImg {
178                max-height: 100%;
179        }
180
181        .albLegend {
182                text-indent: 2px;
183                letter-spacing: -0.5px;
184                word-spacing:-1px
185        }
186}
187
188.albSymbol { /* used also in other contexts*/
189        font-size: 16px;
190        line-height: 20px;
191        cursor: pointer;
192}
193
194{if $MODUS_ALBUM_THUMB_SIZE>222 && $MODUS_ALBUM_THUMB_SIZE<360}
195@media (max-width:320px), {cssResolution min=1.3}{
196        .albThumbs LI {
197                width: 156px;
198                height: 156px;
199                margin: 5px 1px;
200        }
201}
202{/if}
203
204
205/* begin chronology/calendar elements*/
206.calendarViews {
207        float: right;
208        margin: 5px 5px 0 0;
209}
210
211.calItem {
212        font-weight: bold;
213        margin: 0 1px;
214        padding: 0 1px;
215        border: 1px solid gray;
216        text-decoration: none !important;
217}
218
219.calendarCalBar {
220        margin: 10px;
221}
222
223.calCalHead {
224        font-weight: bold;
225        font-size: 110%;
226        margin: 0 2px;
227}
228
229.calCal { margin: 0 2px; }
230
231/* nice looking month calendar*/
232TABLE.calMonth {
233        border: 0;
234        border-collapse: collapse;
235        margin-bottom: 10px;    /*<-IE ignores this */
236}
237
238TD.calDayCellFull, TD.calDayCellEmpty {
239        vertical-align: top;
240        font-weight: bold;
241        font-size: 18px;
242        border: 1px solid gray;
243}
244
245.calBackDate {
246        padding-left: 3px;
247        padding-top: 0;
248        z-index: 2;
249        position: absolute;
250        color: #000;
251}
252
253.calForeDate {
254        padding-left: 4px;
255        padding-top: 1px;
256        z-index: 3;
257        position: absolute;
258        color: #fff;
259}
Note: See TracBrowser for help on using the repository browser.