source: main/trunk/greenstone3/web/interfaces/halftone/less/shortcodes.less@ 32388

Last change on this file since 32388 was 28644, checked in by jlwhisler, 10 years ago

A new interface created using a CSS template by luiszuno.com. Based on the default interface.

File size: 7.6 KB
Line 
1@import "palette.less";
2
3
4/* DIVIDER -------------------------------------------------*/
5
6.hr{
7 border-bottom: 5px solid @fontColor;
8 padding-top: 40px;
9 padding-bottom: 20px;
10}
11
12.block-divider{
13 background: url(../img/divider.png) no-repeat center center;
14 height: 150px;
15}
16
17/* PRE ------------------------------------------------------------*/
18
19pre{
20 white-space: pre;
21 background: #fff;
22 font-size: 14px;
23 padding: 10px;
24 border: 2px dotted @fontColor;
25 font-family: Consolas,monospace;
26 word-break: break-word;
27}
28
29/* COLUMNS LAYOUT----------------------------------------------------------*/
30
31.one-half,
32.one-third,
33.one-fourth{
34 float:left;
35 margin-bottom: 40px;
36 margin-right: 2.1276%;
37 position:relative;
38}
39
40.one-half{
41 width: 48.9361%;
42}
43
44.one-third{
45 width: 31.9148%;
46
47}
48
49.one-fourth{
50 width: 23.4042%;
51}
52
53.last {
54 clear:right;
55 margin-right:0 !important;
56}
57
58
59/* VIDEOS ------------------------------------------------------------*/
60
61.video-wrapper{
62 margin-left: 20px;
63 margin-right: 20px;
64 margin-bottom: 25px;
65}
66
67
68.video-container {
69 position: relative;
70 padding-bottom: 56.25%;
71 padding-top: 30px;
72 height: 0;
73 overflow: hidden;
74
75}
76
77.video-container iframe,
78.video-container object,
79.video-container embed {
80 position: absolute;
81 top: 0;
82 left: 0;
83 width: 100%;
84 height: 100%;
85}
86
87/* DROPCAP ------------------------------------------------------------*/
88
89.dropcap:first-letter{
90 font-size: 3.571em;
91 line-height: 0.76em;
92 padding: 0.2em 0.2em 0 0;
93 float: left;
94 display: block;
95 color: @fontColor;
96}
97
98.dropcap.dark:first-letter{
99 display:block;
100 float:left;
101 font-size:30px;
102 line-height:40px;
103 margin:0 8px 0 0;
104 padding: 10px 10px;
105 background: @fontColor;
106 color: @fontColorLight;
107 border-radius: 5px;
108 -moz-border-radius: 5px;
109 -webkit-border-radius: 5px;
110}
111
112/* INFOBOXES ------------------------------------------------------------*/
113
114
115.infobox-info,
116.infobox-warning,
117.infobox-success,
118.infobox-error{
119 border: 1px solid;
120 margin: 10px 0px;
121 padding:15px 10px 15px 50px;
122 background-repeat: no-repeat;
123 background-position: 10px center;
124 border-radius: 5px;
125 -moz-border-radius: 5px;
126 -webkit-border-radius: 5px;
127}
128
129.infobox-info{
130 color: #00529B;
131 background-color: #BDE5F8;
132 background-image: url('../img/info-blue.png');
133}
134
135.infobox-warning{
136 color: #9F6000;
137 background-color: #FEEFB3;
138 background-image: url('../img/info-yellow.png');
139}
140
141.infobox-success{
142 color: #4F8A10;
143 background-color: #DFF2BF;
144 background-image: url('../img/info-green.png');
145}
146
147.infobox-error{
148 color: #D8000C;
149 background-color: #FFBABA;
150 background-image: url('../img/info-red.png');
151}
152
153/* LISTS ------------------------------------------------------------*/
154
155.entry-content{
156
157 .lists-check ul,
158 .lists-arrow ul,
159 .lists-plus ul,
160 .lists-star ul,
161 .lists-heart ul{
162 margin-bottom: 30px;
163 margin-left: 20px;
164 }
165
166
167 .lists-check ul li{
168 list-style-image: url(../img/bullets/check.png);
169 line-height: 1.5em;
170 }
171
172 .lists-arrow ul{
173 list-style-image: url(../img/bullets/arrow.png);
174 line-height: 1.5em;
175 }
176
177 .lists-plus ul{
178 list-style-image: url(../img/bullets/plus.png);
179 line-height: 1.5em;
180 }
181
182 .lists-star ul{
183 list-style-image: url(../img/bullets/star.png);
184 line-height: 1.5em;
185 }
186
187 .lists-heart ul{
188 list-style-image: url(../img/bullets/heart.png);
189 line-height: 1.5em;
190 }
191}
192
193/* PULLQUOTES ------------------------------------------------------------*/
194
195.pullquote-right,
196.pullquote-left {
197 border-left: #555555 2px solid;
198 float:right;
199 font-size:16px;
200 line-height:1.5em;
201 margin: 20px 0px 20px 20px;
202 width:33%;
203 font-style: italic;
204}
205
206.pullquote-left {
207 float:left;
208 margin: 20px 20px 20px 0px;
209 padding:0 0 0 20px;
210}
211
212.pullquote-right{
213 border-left: none;
214 border-right: #555555 2px solid;
215 padding:0 20px 0 0px;
216}
217
218/* HIGHLIGHT ------------------------------------------------------------*/
219
220.highlight{ background: #fbe471 }
221
222
223/* Link buttons ------------------------------------------------*/
224
225.entry-content .link-button {
226 color: #fff;
227}
228
229.link-button {
230 display: inline-block;
231 background-color: @accentColor;
232 border: 1px solid @accentColor + 50;
233 border-bottom: 1px solid @accentColor - 20;
234 .border-radius(3px, 3px, 3px, 3px);
235 .shadow-hard();
236 color: #fff;
237 font-size: 14px;
238 line-height: 1;
239 padding: 8px 10px;
240 text-align: center;
241 text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
242
243 &:hover {
244 background-color: @accentColor + 22;
245 }
246
247 &.red{
248 background: #e65151;
249 border: 1px solid #e65151 + 60;
250 border-bottom: 1px solid #e65151 - 20;
251 &:hover{
252 background: #e55050 + 22;
253 }
254 }
255
256 &.green{
257 background: #86ae53;
258 border: 1px solid #86ae53 + 50;
259 border-bottom: 1px solid #86ae53 - 20;
260 &:hover{
261 background: #86ae53 + 22;
262 }
263 }
264
265 &.blue{
266 background: #53a4ae;
267 border: 1px solid #53a4ae + 50;
268 border-bottom: 1px solid #53a4ae - 20;
269 &:hover{
270 background: #53a4ae + 22;
271 }
272 }
273}
274
275
276/* ACCORDION -------------------------------------------------*/
277
278
279.accordion-trigger,
280.toggle-trigger{
281 line-height: 30px;
282
283 border-top: 1px solid #ccc;
284 border-left: 1px solid #ccc;
285 border-right: 1px solid #ccc;
286 border-bottom: 1px solid #ccc;
287
288 a{
289 color: @fgColor;
290 }
291}
292
293
294.accordion-trigger{
295 text-decoration: none;
296 padding: 5px 10px;
297 cursor: pointer;
298 background: #f1f1f1;
299 font-size: 14px;
300
301
302 &.active{
303 border-bottom: 1px solid #ccc;
304 }
305
306 &:hover{
307 background: #fff;
308 }
309}
310
311
312
313.accordion-container{
314 margin-bottom: 0px;
315 padding: 5px 10px;
316 border-bottom: 1px solid #ccc;
317 border-right: 1px solid #ccc;
318 border-left: 1px solid #ccc;
319}
320
321/* TOGGLE -------------------------------------------------*/
322
323.toggle-trigger{
324 text-decoration: none;
325 cursor: pointer;
326 overflow: hidden;
327 background-color: #f1f1f1;
328 padding: 5px 5px 5px 10px;
329 font-size: 14px;
330
331 i{
332 display: block;
333 float: left;
334 width: 31px;
335 height: 31px;
336 margin-right: 10px;
337 background: url(../img/toggle.png) no-repeat 0px 0px;
338 }
339
340 &.active{
341 border-bottom: 1px solid #ccc;
342 i{
343 background-position: 0px -31px;
344 }
345 }
346
347 &:hover{
348 background-color: #fff;
349 }
350}
351
352
353.toggle-container{
354 margin-bottom: 0px;
355 padding: 5px 10px;
356 border-bottom: 1px solid #ccc;
357 border-right: 1px solid #ccc;
358 border-left: 1px solid #ccc;
359}
360
361/* TABS -------------------------------------------------*/
362
363/* root element for tabs */
364
365.tabs {
366 list-style:none;
367 margin:0 !important;
368 padding: 0px;
369 height: 33px;
370}
371
372body.home .tabs {
373 padding: 0px 30px;
374
375}
376
377/* single tab */
378ul.tabs li {
379 display: block;
380 float:left;
381 text-indent:0;
382 padding:0;
383 margin: 2px 5px 0px 0px !important;
384 list-style-image: none !important;
385 border-top: 1px solid #ccc;
386 border-right: 1px solid #ccc;
387 border-left: 1px solid #ccc;
388}
389
390/* link inside the tab. uses a background image */
391ul.tabs a {
392 display:block;
393 font-size:12px;
394 font-weight: bold;
395 height: 30px;
396 line-height:30px;
397 text-align:center;
398 text-decoration:none;
399 padding: 0px 0px 0px 10px;
400 position:relative;
401 top:0px;
402}
403
404ul.tabs a span{
405 display:block;
406 height: 100%;
407 padding-right: 10px;
408}
409
410ul.tabs a{
411 text-decoration: none;
412 color: @fontColor;
413 background: #ececec;
414}
415
416ul.tabs a:active {
417 outline:none;
418}
419
420/* when mouse enters the tab move the background image */
421
422
423ul.tabs li:hover a,
424ul.tabs a.current{
425 background: #f3f3f3;
426 color: #444;
427 border-bottom: 1px solid #f1f1f1;
428}
429
430/* active tab uses a class name "current". its highlight is also done by moving the background image. */
431ul.tabs a.current,
432ul.tabs a.current:hover,
433ul.tabs li.current a {
434 cursor:default !important;
435 color:#444 !important;
436 display: block;
437 text-decoration: none;
438}
439
440
441/* initially all panes are hidden */
442.panes .pane {
443 display:none;
444}
445
446.panes>div {
447 display: none;
448 min-height: 200px;
449 border: 1px solid #ccc;
450 padding: 15px;
451 background: #f1f1f1;
452}
453
454
Note: See TracBrowser for help on using the repository browser.