Checking in what I've got so far here ... lots to do.
[moodle.git] / theme / standard / styles_layout.css
CommitLineData
7005a81c 1/*************************************************
2***
3*** layout
4***
5**************************************************/
a8e1f343 6
992b5971 7/*************************************************
8***
9*** This CSS file contains all layout definitions
10*** like positioning, floats,
11*** margins, paddding,
12*** borders etc.
13***
14*** Shortindex:
15*** basic and general styles
16*** header and footer styles
17*** content styles (alphabetically)
7005a81c 18*** admin, course, activities, calendar, blocks
992b5971 19***
20*** Please sort new styles for existing content
21*** into the appropriate part of this CSS file.
22*** Styles for new Blocks or Activities please
23*** place at the end.
24*** Wouldn't the alphabetical order be better?
25***
26**************************************************/
a8e1f343 27
7005a81c 28
a8e1f343 29/* basic styles */
30.clearer {
31 clear:both;
32 margin:0px;
33 padding:0px;
34 height:1px;
35 border:none;
36 background:transparent;
37}
38
ac91569f 39.continuebutton {
40 text-align: center;
41}
42
a8e1f343 43
44/* general styles */
45th {
46 background-image:url(gradient.jpg);
47 background-position:top;
48 background-repeat:repeat-x;
49}
50
51form {
52 margin-bottom:0px;
53}
54
9cbf12c0 55table {
56 border-spacing: 0px;
57 border-collapse: collapse;
58}
a8e1f343 59
2ad2cbc3 60a img {
61 border:none;
62}
63
a8e1f343 64/* header styles */
65#header-home {
66 padding:1em 0.5em;
67 height:2em;
68}
69
70#header {
71 padding:0.1em 0.5em;
72}
73
74.headermain {
75 float:left;
76}
77
78#header .headermain {
79 margin:0.2em 0em;
80}
81
82.headermenu {
83 float:right;
84}
85
86#nav-bar {
87 padding:3px 0.5em;
88 height:1.3em;
89 background-image:url(gradient.jpg);
90 background-position:top;
91 background-repeat:repeat-x;
92}
93
94#breadcrumb {
95 float:left;
96 margin:0.2em 0em;
97}
98
99#navbutton {
100 float:right;
101}
102
e96ba29d 103#layout-table {
104 width:100%;
105 border-spacing:5px;
106 border-collapse:separate;
107}
108
109#layout-table #left-column,
110#layout-table #middle-column,
111#layout-table #right-column
112{
113 vertical-align:top;
114}
a8e1f343 115
116/* footer styles */
117
118
992b5971 119/*****************************
120***
121*** content styles
122***
123******************************/
a8e1f343 124/* many places */
992b5971 125.generalbox {
a8e1f343 126 border-width:1px;
127 border-style:solid;
128}
992b5971 129.noticebox {
a8e1f343 130 border-width:1px;
131 border-style:solid;
132}
2f71f2a2 133.informationbox {
134 border-width:1px;
135 border-style:solid;
136}
a59a00b7 137.feedbackbox {
138 border-width:1px;
139 border-style:solid;
140}
141.feedbackby {
142}
143.feedback {
144}
a8e1f343 145
7005a81c 146
a8e1f343 147/* summary of a user in a nice little box - weblib.php */
148.userinfobox {
7005a81c 149 margin-bottom:5px;
a8e1f343 150 border-width:1px;
151 border-style:solid;
a8e1f343 152}
153
154.userinfoboxside,
155.userinfoboxsummary,
156.userinfoboxlinkcontent { }
157
7005a81c 158
992b5971 159/* weblib.php table */
160.tabledivider {
161 border-width:1px;
162 border-style:solid;
163 border-left:0px;
164 border-right:0px;
165 border-top:0px;
166}
167
7005a81c 168
992b5971 169/* entry-page index.php */
170.sitetopic {
171 border-width:1px;
172 border-style:solid;
173}
174
7005a81c 175
2f945146 176/* paging bar */
177.pagingbar {
178 text-align:center;
179}
180.pagingbar a {
181 padding-left: 10px;
182}
183.pagingbar .thispage {
184 padding-left: 10px;
185}
186
992b5971 187/*****************************
188***
7005a81c 189*** Admin
992b5971 190***
191******************************/
192/* admin, calendar */
193table.formtable td {
194 padding:9px;
a8e1f343 195}
196
992b5971 197
7005a81c 198/*****************************
199***
200*** Course
201***
202******************************/
446390fb 203
204.section .activity img.activityicon {
205 vertical-align:middle;
206 height:16px;
a5afe3ec 207 width:16px;
446390fb 208}
209
210.section img.movetarget {
211 height:16px;
212 width:80px;
213}
214
992b5971 215/* course, entry-page, login */
216.headingblock {
217 background-image:url(gradient.jpg);
218 background-position:top;
219 background-repeat:repeat-x;
220 border-width:1px;
221 border-style:solid;
446390fb 222 padding:5px;
992b5971 223}
224
7005a81c 225
992b5971 226/* course */
a5afe3ec 227
228#course-view .section td {
a5afe3ec 229 vertical-align:top;
230}
231
232#course-view .section .content {
233 padding:5px;
234 border-style:solid;
992b5971 235 border-width:1px;
a8e1f343 236 border-left:0px;
237 border-right:0px;
992b5971 238}
239
a5afe3ec 240#course-view .section .side {
241 padding:5px;
242 border-style:solid;
992b5971 243 border-width:1px;
a5afe3ec 244}
245
246#course-view .section .left {
992b5971 247 border-right:0px;
d80a9029 248 text-align:center;
a5afe3ec 249 font-style:bold;
d80a9029 250 width: 1.5em;
992b5971 251}
252
a5afe3ec 253#course-view .section .right {
992b5971 254 border-left:0px;
d80a9029 255 text-align:center;
256 width: 1.5em;
992b5971 257}
258
476f1aec 259#course-view .current .side {
a5afe3ec 260}
261
262#course-view .topics {
263 margin-top: 9px;
264}
265
266#course-view .weeks {
267 margin-top: 9px;
268}
269
270#course-view .section .spacer {
271 height:0.5em;
272}
273
476f1aec 274#course-view .section .weekdates {
275}
a5afe3ec 276
277
992b5971 278.categoryboxcontent,
279.courseboxcontent {
280 border-width:1px;
281 border-style:solid;
a8e1f343 282}
283
7005a81c 284
285/*****************************
286***
287*** Activities
288***
289******************************/
290/* assignment, forum, glossary */
291.forumheaderlist,
292.forumpost {
293 border-width:1px;
294 border-style:solid;
295}
296
297.forumpostindent {
298 margin-left: 30px;
299}
300
546739f6 301.unread {
302 padding-right:2px;
303}
304
7005a81c 305
306/* calendar, course, weblib,php, attandance
307dialouge, exercise, forum, lesson, quiz */
308.generaltableheader {
309 background-image:url(gradient.jpg);
310 background-position:top;
311 background-repeat:repeat-x;
312}
313
314
992b5971 315/* glossary, wiki */
316.generaltab,
317.generaltabselected {
318 background:none;
319}
320
7005a81c 321
992b5971 322/* message */
323.message_link {
324 vertical-align:center;
325}
326
327.message_search_results {
328 border-collapse:collapse;
329 border-spacing:0px;
330}
331
332table.message_search_results td {
333 padding:5px;
334 border-width:1px;
335 border-style:solid;
336}
337
7005a81c 338
992b5971 339/* quiz */
340.feedbacktext {
341 display:block;
342}
343
7005a81c 344
992b5971 345/*****************************
346***
347*** Calendar
348***
349******************************/
a8e1f343 350/* calendar */
a8e1f343 351
446390fb 352#calendar {
353 width: 100%;
354 border-spacing: 5px;
355 border-collapse: separate;
356}
357
358#calendar .maincalendar,
359#calendar .sidecalendar
360{
361 vertical-align: top;
362 border: 1px solid;
363}
364
365#calendar .sidecalendar {
366 width: 25%;
367}
368
369#calendar .maincalendar table.calendarmonth {
370 border-collapse: separate;
371 margin: 0px auto;
372 width: 98%;
373}
374
a0c7341a 375#calendar .maincalendar table.calendarmonth th {
446390fb 376 padding:10px;
377 border-bottom:2px solid;
378}
379
a0c7341a 380#calendar .maincalendar table.calendarmonth td {
446390fb 381 height: 5em;
382 padding-left: 4px;
383 padding-top: 4px;
384}
385
a0c7341a 386#calendar .maincalendar table.calendarmonth td,
387table.minicalendar td,
388table.minicalendar th {
446390fb 389 width:14%;
390 vertical-align:top;
391}
392
a0c7341a 393#calendar .maincalendar table.calendarmonth td table td {
446390fb 394 height: auto;
395}
396
397#calendar .maincalendar .heading,
398#calendar .sidecalendar .heading
399{
400 background-image:url(gradient.jpg);
401 background-position:top;
402 background-repeat:repeat-x;
403 padding: 5px;
404}
405
406#calendar .maincalendar .heading .buttons {
407 float: right;
408}
409
410#calendar .maincalendar .filters table,
411#calendar .sidecalendar .filters table,
412.sideblock.block_calendar_month .filters table
413{
414 border-collapse:separate;
415 border-spacing: 2px;
416 background-color: #EEEEEE;
417 padding: 2px;
418 width: 100%;
419}
420
421#calendar .maincalendar .filters {
422 padding: 0px 10px;
423}
424
425#calendar .sidecalendar .filters,
426.sideblock.block_calendar_month .filters
427{
428 padding: 5px;
429}
430
431#calendar .maincalendar .controls {
432 clear:both;
433 padding:10px;
434}
435
760e522b 436#calendar .maincalendar table.calendarmonth ul.events-new,
437#calendar .maincalendar table.calendarmonth ul.events-underway
438{
446390fb 439 padding:0px;
440 margin:0px;
441 list-style-type:none;
442}
443
760e522b 444#calendar .maincalendar table.calendarmonth ul li {
446390fb 445 margin-top: 4px;
446}
447
448table.minicalendar {
449 margin:10px auto;
450 padding:2px;
451 border-width:1px;
452 border-style:solid;
453 border-collapse:separate;
454 border-spacing:1px !important;
455}
456
a0c7341a 457table.minicalendar th {
446390fb 458 padding: 0px 2px;
459}
460
461#calendar .maincalendar .eventlist {
462 padding: 10px;
463}
464
465#calendar .maincalendar .eventlist .eventfull {
466 width: 100%;
467 margin-bottom:10px;
468 border-spacing:0px;
469 border-collapse:separate;
470 border-width:1px;
471 border-style:solid;
472}
473
474#calendar .maincalendar .eventlist .eventfullmessage {
475 padding: 5px;
476}
477
478#calendar .maincalendar .eventlist .eventfullpicture {
479 padding:8px;
480}
481
482#calendar #selecteventtype table {
483 margin:auto;
484}
485
e96ba29d 486#calendar .event_global,
487#calendar .event_course,
488#calendar .event_group,
489#calendar .event_user,
490.minicalendar .event_global,
491.minicalendar .event_course,
492.minicalendar .event_group,
493.minicalendar .event_user,
494.block_calendar_month .event_global,
495.block_calendar_month .event_course,
496.block_calendar_month .event_group,
497.block_calendar_month .event_user
498{
a8e1f343 499 border:2px solid !important;
500}
501
e96ba29d 502#calendar .duration_global,
503#calendar .duration_course,
504#calendar .duration_group,
505#calendar .duration_user,
506.minicalendar .duration_global,
507.minicalendar .duration_course,
508.minicalendar .duration_group,
509.minicalendar .duration_user
510{
a8e1f343 511 border-top:2px solid !important;
512 border-bottom:2px solid !important;
513}
514
e96ba29d 515#calendar .today,
516.minicalendar .today {
a8e1f343 517 border:2px solid !important;
518}
e96ba29d 519
a8e1f343 520.cal_popup_bg {
521 padding:0px;
522 margin:0px;
e96ba29d 523 border:1px solid;
a8e1f343 524}
525
526.cal_popup_close {
527 margin-right:5px;
528}
529
446390fb 530.cal_popup_caption {
531 background-image:url(gradient.jpg);
532 border-bottom-width:1px;
533 border-bottom-style:solid;
534 padding-bottom:2px;
535}
536
992b5971 537/*****************************
538***
539*** Blocks
540***
541******************************/
a8e1f343 542/* block_rss_client.php */
543.rssclientlink {
544 padding-bottom:5px;
545 border-top:1px solid;
546}
547
548.rssclientdescription {
549 padding-left:10px;
550 padding-bottom:8px;
551}
552
7005a81c 553
992b5971 554/* sideblock */
555.sideblock {
556 width: 100%;
557 margin-bottom:1em;
9cbf12c0 558 border-collapse:separate;
a8e1f343 559 border-width:1px;
560 border-style:solid;
561}
7005a81c 562
992b5971 563.sideblockheading {
a8e1f343 564 background-image:url(gradient.jpg);
565 background-position:top;
566 background-repeat:repeat-x;
9cbf12c0 567 padding:4px;
a8e1f343 568}
569
c24a1ccd 570.sideblockheading .hide-show {
571 float:right;
572}
573
9cbf12c0 574.sideblockheading .hide-show img.hide-show-image {
2ad2cbc3 575 margin-top:0.25em;
c24a1ccd 576}
577
9cbf12c0 578.sideblockmain {
579 padding:4px;
580}
581
992b5971 582.sideblockmain hr {
583 height:1px;
584 margin-top:4px;
585 margin-bottom:4px;
586 border:none;
587 border-top:1px solid;
af7a6386 588}
589
9cbf12c0 590.sideblock .sideblockheading .hide-show img.hide-show-image {
5bf2ef9f 591 background: url('../../pix/t/switch_minus.gif') no-repeat bottom;
d4f7a815 592}
593
9cbf12c0 594.sideblock.hidden .sideblockheading .hide-show img.hide-show-image {
5bf2ef9f 595 background: url('../../pix/t/switch_plus.gif') no-repeat bottom;
d4f7a815 596}
597
598.sideblock.hidden .sideblockmain {
599 display: none;
600}
7005a81c 601
9ecf051d 602.sideblock .sideblocklist {
603 width: 100%;
604}
605
606.sideblock .footer {
607 margin-top:4px;
608}
609
a8e1f343 610/* sideblock weblib.php */
29ba5158 611.block_course_summary .sideblockmain {
a8e1f343 612 padding:10px;
613}
614
0fdce319 615/* blocklib.php */
616
29ba5158 617.block_adminblock .sideblockmain {
0fdce319 618 text-align: center;
619}
620
744fd5bb 621/* block_quiz_results.php */
29ba5158 622.block_quiz_results table.grades {
cae0f35b 623 width: 100%;
cae0f35b 624}
625
29ba5158 626.block_quiz_results table.grades caption {
9c581405 627 margin: 1em 0px 0px 0px;
628 border-bottom: 1px solid;
cae0f35b 629}
630
29ba5158 631.block_quiz_results table.grades .number, .block_quiz_results table.grades .grade {
9c581405 632 width: 10%;
9c581405 633}
634
29ba5158 635.block_quiz_results h1 {
9c581405 636 margin: 4px;
eb111397 637}
744fd5bb 638
639/*****************************
640***
641*** Doc
642***
643******************************/
644
645/* contents.php */
646
647body#doc-contents h1 {
648 font-size: 1em;
649 margin: 1em 0px 0px 0px;
650}
651
652body#doc-contents ul {
653 list-style-type: none;
654 margin: 0px;
655 padding: 0px;
656 font-size: 0.8em;
657 width: 90%; /* try it on IE without this and see what happens */
658}
be37582e 659
660body#course-view .unread {
661 margin-left: 3em;
662}
d897c9c4 663
664body#admin-index .c0 {
665 vertical-align: top;
666 background: #FAFAFA;
667}
bdfd3103 668
669body#admin-modules .generaltablecell {
670 padding-top: 1px;
671 padding-bottom: 1px;
672}
ac91569f 673
674body#admin-blocks .generaltablecell {
675 padding-top: 1px;
676 padding-bottom: 1px;
677}
2f71f2a2 678
679body#admin-config .confighelp {
680 display: block;
681 padding-bottom: 20px;
682}