Some fixes to styles etc
[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
4c7f1eb6 297.forumpost {
298 margin-top: 15px;
299}
300
301.forumpost .topic {
302 padding: 4px;
303}
304
305
306.forumpost .commands {
307 padding-top: 0.5em;
308 text-align:right;
309}
310
311.forumpost .ratings {
312 padding-top: 1em;
313 text-align:right;
314}
315
316.forumpost .content {
317 padding: 4px;
318}
319
320.forumpost .left {
25c0b58d 321 width: 35px;
4c7f1eb6 322 padding: 4px;
323 text-align: center;
324 vertical-align: top;
325}
326
7005a81c 327.forumpostindent {
328 margin-left: 30px;
329}
330
546739f6 331.unread {
332 padding-right:2px;
333}
334
7005a81c 335
336/* calendar, course, weblib,php, attandance
337dialouge, exercise, forum, lesson, quiz */
338.generaltableheader {
339 background-image:url(gradient.jpg);
340 background-position:top;
341 background-repeat:repeat-x;
342}
343
344
992b5971 345/* glossary, wiki */
346.generaltab,
347.generaltabselected {
348 background:none;
349}
350
7005a81c 351
992b5971 352/* message */
353.message_link {
354 vertical-align:center;
355}
356
357.message_search_results {
358 border-collapse:collapse;
359 border-spacing:0px;
360}
361
362table.message_search_results td {
363 padding:5px;
364 border-width:1px;
365 border-style:solid;
366}
367
7005a81c 368
992b5971 369/* quiz */
370.feedbacktext {
371 display:block;
372}
373
7005a81c 374
992b5971 375/*****************************
376***
377*** Calendar
378***
379******************************/
a8e1f343 380/* calendar */
a8e1f343 381
446390fb 382#calendar {
383 width: 100%;
384 border-spacing: 5px;
385 border-collapse: separate;
386}
387
388#calendar .maincalendar,
389#calendar .sidecalendar
390{
391 vertical-align: top;
392 border: 1px solid;
393}
394
395#calendar .sidecalendar {
396 width: 25%;
397}
398
399#calendar .maincalendar table.calendarmonth {
400 border-collapse: separate;
401 margin: 0px auto;
402 width: 98%;
403}
404
a0c7341a 405#calendar .maincalendar table.calendarmonth th {
446390fb 406 padding:10px;
407 border-bottom:2px solid;
408}
409
a0c7341a 410#calendar .maincalendar table.calendarmonth td {
446390fb 411 height: 5em;
412 padding-left: 4px;
413 padding-top: 4px;
414}
415
a0c7341a 416#calendar .maincalendar table.calendarmonth td,
417table.minicalendar td,
418table.minicalendar th {
446390fb 419 width:14%;
420 vertical-align:top;
421}
422
a0c7341a 423#calendar .maincalendar table.calendarmonth td table td {
446390fb 424 height: auto;
425}
426
427#calendar .maincalendar .heading,
428#calendar .sidecalendar .heading
429{
430 background-image:url(gradient.jpg);
431 background-position:top;
432 background-repeat:repeat-x;
433 padding: 5px;
434}
435
436#calendar .maincalendar .heading .buttons {
437 float: right;
438}
439
440#calendar .maincalendar .filters table,
441#calendar .sidecalendar .filters table,
442.sideblock.block_calendar_month .filters table
443{
444 border-collapse:separate;
445 border-spacing: 2px;
446 background-color: #EEEEEE;
447 padding: 2px;
448 width: 100%;
449}
450
451#calendar .maincalendar .filters {
452 padding: 0px 10px;
453}
454
455#calendar .sidecalendar .filters,
456.sideblock.block_calendar_month .filters
457{
458 padding: 5px;
459}
460
461#calendar .maincalendar .controls {
462 clear:both;
463 padding:10px;
464}
465
760e522b 466#calendar .maincalendar table.calendarmonth ul.events-new,
467#calendar .maincalendar table.calendarmonth ul.events-underway
468{
446390fb 469 padding:0px;
470 margin:0px;
471 list-style-type:none;
472}
473
760e522b 474#calendar .maincalendar table.calendarmonth ul li {
446390fb 475 margin-top: 4px;
476}
477
478table.minicalendar {
479 margin:10px auto;
480 padding:2px;
481 border-width:1px;
482 border-style:solid;
483 border-collapse:separate;
484 border-spacing:1px !important;
485}
486
a0c7341a 487table.minicalendar th {
446390fb 488 padding: 0px 2px;
489}
490
491#calendar .maincalendar .eventlist {
492 padding: 10px;
493}
494
495#calendar .maincalendar .eventlist .eventfull {
496 width: 100%;
497 margin-bottom:10px;
498 border-spacing:0px;
499 border-collapse:separate;
500 border-width:1px;
501 border-style:solid;
502}
503
504#calendar .maincalendar .eventlist .eventfullmessage {
505 padding: 5px;
506}
507
508#calendar .maincalendar .eventlist .eventfullpicture {
509 padding:8px;
510}
511
512#calendar #selecteventtype table {
513 margin:auto;
514}
515
e96ba29d 516#calendar .event_global,
517#calendar .event_course,
518#calendar .event_group,
519#calendar .event_user,
520.minicalendar .event_global,
521.minicalendar .event_course,
522.minicalendar .event_group,
523.minicalendar .event_user,
524.block_calendar_month .event_global,
525.block_calendar_month .event_course,
526.block_calendar_month .event_group,
527.block_calendar_month .event_user
528{
a8e1f343 529 border:2px solid !important;
530}
531
e96ba29d 532#calendar .duration_global,
533#calendar .duration_course,
534#calendar .duration_group,
535#calendar .duration_user,
536.minicalendar .duration_global,
537.minicalendar .duration_course,
538.minicalendar .duration_group,
539.minicalendar .duration_user
540{
a8e1f343 541 border-top:2px solid !important;
542 border-bottom:2px solid !important;
543}
544
e96ba29d 545#calendar .today,
546.minicalendar .today {
a8e1f343 547 border:2px solid !important;
548}
e96ba29d 549
a8e1f343 550.cal_popup_bg {
551 padding:0px;
552 margin:0px;
e96ba29d 553 border:1px solid;
a8e1f343 554}
555
556.cal_popup_close {
557 margin-right:5px;
558}
559
446390fb 560.cal_popup_caption {
561 background-image:url(gradient.jpg);
562 border-bottom-width:1px;
563 border-bottom-style:solid;
564 padding-bottom:2px;
565}
566
992b5971 567/*****************************
568***
569*** Blocks
570***
571******************************/
a8e1f343 572/* block_rss_client.php */
573.rssclientlink {
574 padding-bottom:5px;
575 border-top:1px solid;
576}
577
578.rssclientdescription {
579 padding-left:10px;
580 padding-bottom:8px;
581}
582
7005a81c 583
992b5971 584/* sideblock */
585.sideblock {
586 width: 100%;
587 margin-bottom:1em;
9cbf12c0 588 border-collapse:separate;
a8e1f343 589 border-width:1px;
590 border-style:solid;
591}
7005a81c 592
992b5971 593.sideblockheading {
a8e1f343 594 background-image:url(gradient.jpg);
595 background-position:top;
596 background-repeat:repeat-x;
9cbf12c0 597 padding:4px;
a8e1f343 598}
599
c24a1ccd 600.sideblockheading .hide-show {
601 float:right;
602}
603
9cbf12c0 604.sideblockheading .hide-show img.hide-show-image {
2ad2cbc3 605 margin-top:0.25em;
c24a1ccd 606}
607
9cbf12c0 608.sideblockmain {
609 padding:4px;
610}
611
992b5971 612.sideblockmain hr {
613 height:1px;
614 margin-top:4px;
615 margin-bottom:4px;
616 border:none;
617 border-top:1px solid;
af7a6386 618}
619
9cbf12c0 620.sideblock .sideblockheading .hide-show img.hide-show-image {
5bf2ef9f 621 background: url('../../pix/t/switch_minus.gif') no-repeat bottom;
d4f7a815 622}
623
9cbf12c0 624.sideblock.hidden .sideblockheading .hide-show img.hide-show-image {
5bf2ef9f 625 background: url('../../pix/t/switch_plus.gif') no-repeat bottom;
d4f7a815 626}
627
628.sideblock.hidden .sideblockmain {
629 display: none;
630}
7005a81c 631
9ecf051d 632.sideblock .sideblocklist {
633 width: 100%;
634}
635
636.sideblock .footer {
637 margin-top:4px;
638}
639
a8e1f343 640/* sideblock weblib.php */
29ba5158 641.block_course_summary .sideblockmain {
a8e1f343 642 padding:10px;
643}
644
0fdce319 645/* blocklib.php */
646
29ba5158 647.block_adminblock .sideblockmain {
0fdce319 648 text-align: center;
649}
650
744fd5bb 651/* block_quiz_results.php */
29ba5158 652.block_quiz_results table.grades {
cae0f35b 653 width: 100%;
cae0f35b 654}
655
29ba5158 656.block_quiz_results table.grades caption {
9c581405 657 margin: 1em 0px 0px 0px;
658 border-bottom: 1px solid;
cae0f35b 659}
660
29ba5158 661.block_quiz_results table.grades .number, .block_quiz_results table.grades .grade {
9c581405 662 width: 10%;
9c581405 663}
664
29ba5158 665.block_quiz_results h1 {
9c581405 666 margin: 4px;
eb111397 667}
744fd5bb 668
669/*****************************
670***
671*** Doc
672***
673******************************/
674
675/* contents.php */
676
677body#doc-contents h1 {
678 font-size: 1em;
679 margin: 1em 0px 0px 0px;
680}
681
682body#doc-contents ul {
683 list-style-type: none;
684 margin: 0px;
685 padding: 0px;
686 font-size: 0.8em;
687 width: 90%; /* try it on IE without this and see what happens */
688}
be37582e 689
690body#course-view .unread {
691 margin-left: 3em;
692}
d897c9c4 693
694body#admin-index .c0 {
695 vertical-align: top;
696 background: #FAFAFA;
697}
bdfd3103 698
699body#admin-modules .generaltablecell {
700 padding-top: 1px;
701 padding-bottom: 1px;
702}
ac91569f 703
704body#admin-blocks .generaltablecell {
705 padding-top: 1px;
706 padding-bottom: 1px;
707}
2f71f2a2 708
709body#admin-config .confighelp {
710 display: block;
711 padding-bottom: 20px;
712}