MDL-31528 navigation: Fixed up navbar generation when editing categories
[moodle.git] / theme / base / style / course.css
CommitLineData
90723839
SH
1/**
2 * CSS for displaying courses and everything in them
3 */
4.section_add_menus {text-align:right;}
5.section_add_menus .horizontal div,
6.section_add_menus .horizontal form {display:inline;}
7.section_add_menus optgroup {font-weight:normal;font-style: italic;}
8
9.course-content .section .activity img.activityicon {vertical-align:middle;height:16px;width:16px;}
6598f57e 10.course-content .section .activity .commands img.iconsmall {vertical-align: baseline;}
90723839
SH
11
12#page-site-index .subscribelink {text-align:right;}
13#page-site-index .headingblock {margin-bottom: 9px;}
b9a048f8 14#page-site-index .clearfloat {float: none;clear: both; height:0px;}
90723839
SH
15
16.path-course-view .headingblock {margin-bottom: 9px;}
17.path-course-view .subscribelink {text-align:right;}
18.path-course-view .unread {margin-left: 3em;}
6605ff8c 19.path-course-view .block.drag .header {cursor: move;}
90723839
SH
20.path-course-view .completionprogress {float:right;}
21.path-course-view .completionprogress img.iconhelp {vertical-align:top;}
22
23.path-course-view li.activity {margin-right:20px; position:relative;}
24.path-course-view li.activity span.autocompletion,
25.path-course-view li.activity form.togglecompletion {display:inline;position:absolute;right:-20px;top:0;z-index:10;padding:0.2em 0;}
26.path-course-view li.activity form.togglecompletion div {display:inline;}
27.path-course-view li.activity form.togglecompletion .ajaxworking {position:absolute;top:0; left:20px;width: 20px; height: 20px;background: url([[pix:i/ajaxloader]]) no-repeat;}
28.dir-rtl.path-course-view li.activity {margin-right:0px;margin-left:20px;}
29.dir-rtl.path-course-view li.activity form.togglecompletion,
eb3217dc 30.dir-rtl.path-course-view li.activity span.autocompletion {right:auto;left:-20px;}
90723839
SH
31
32.section img.movetarget {height:16px;width:80px;}
33
34#page-course-enrol .generalbox,
35#page-course-enrol .coursebox {margin-top: 20px;}
36
90723839
SH
37#page-course-pending .singlebutton,
38#page-course-category #renameform,
39#page-course-category #themeform,
40#page-course-category #coursesearch,
41#page-course-category .singlebutton,
42#page-course-editsection .singlebutton {text-align:center;}
43
44#coursesearch,
45#coursesearch2 {margin-top: 1em;text-align:center;}
46
47#page-course-info .generalbox.icons {text-align: center;}
48#page-course-info .generalbox.info {margin-left:auto;margin-right:auto;}
49
50#page-course-pending .pendingcourserequests {margin-bottom: 1em;}
51#page-course-pending .pendingcourserequests .singlebutton {display: inline;}
52#page-course-pending .pendingcourserequests .cell {padding: 0 5px;}
53#page-course-pending .pendingcourserequests .cell.c6 {white-space: nowrap;}
54
90723839
SH
55
56.coursebox {width: 100%;margin-bottom: 15px;}
ab3169cf
PM
57.coursebox .info {float: left;text-align:left;width: 40%;}
58.coursebox .summary {float: right;text-align:left;width: 55%;}
90723839
SH
59.coursebox .summary .category {text-align:right;}
60.coursebox .teachers li {list-style-type:none;padding:0;margin:0;}
61
62.categorylist {width: 100%;}
cb184beb
RW
63.categorylist .category .numberofcourse {font-style: italic; font-size: 0.85em; font-style: normal;}
64.categorylist .category {padding-top: 5px; padding-bottom: 5px; }
2afcfc44
RW
65.categorylist .category .info,
66.categorylist .category .indentation,
67.categorylist .category .name,
68.categorylist .category .image,
69.categorylist .course .name,
70.categorylist .course .info {float:left;text-align: left;}
71.categorylist .course {padding-left:18px;}
72
ea831ceb
RW
73.categorylist .indentation {padding-left: 20px;}
74#page-course-index .category .image {padding-right: 2px;}
90723839 75
90723839
SH
76.course ul.section {margin:5px;padding:0;}
77
78.weeks-format, /* Window-width: 800 pixels.IE doesn't support, see inline IE conditional comment. */
79.topics-format {margin-top: 8px;min-width: 763px;}
24e27ac0
SH
80.categoryboxcontent {border-width:1px;border-style:solid;}
81
82/* Course and category combo list on front page */
83.course_category_tree .controls {visibility: hidden;}
84.course_category_tree .controls div {display:inline;cursor:pointer;}
3ebc548f 85.course_category_tree .category.with_children>.category_label {background-image:url([[pix:moodle|t/expanded]]);background-repeat: no-repeat;}
24e27ac0 86.course_category_tree .category_label {padding-left:13px;}
3ebc548f
SH
87.course_category_tree .category .category {margin:5px;}
88.course_category_tree .category .courses {padding-left:16px;}
24e27ac0
SH
89.course_category_tree .category .courses .course_link {display:block;background-image:url([[pix:moodle|i/course]]);background-repeat: no-repeat;padding-left:18px;}
90.course_category_tree .category .course {position:relative;}
91.course_category_tree .category .course_info {position:absolute;right:0;top:0;}
92.course_category_tree .category .course_info a,
93.course_category_tree .category .course_info div {float:left;width:16px;height:16px;}
94.jsenabled .course_category_tree .controls {visibility: visible;}
95.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed]]);}
96.jsenabled .course_category_tree .category.with_children.collapsed .subcategories,
43c90b9b
RW
97.jsenabled .course_category_tree .category.with_children.collapsed .courses {display:none;}
98
cb184beb
RW
99.path-course .clearfloat {float:none; clear:both;height:0px;}
100
defbd5b0
JS
101
102/*all courses view*/
103#page-course-index .categorylist .course.clearfloat { height: auto; }
104
cf24e82e 105/**
cb184beb
RW
106* Overide for RTL layout
107*/
43c90b9b
RW
108.dir-rtl .coursebox .info {float: right; text-align: right;}
109.dir-rtl .coursebox .summary {text-align:right;}
110.dir-rtl .course_category_tree .category.with_children> .category_label {background-position: center right; padding-right: 18px;}
111.dir-rtl .course_category_tree .category_label, .dir-rtl .course_category_tree .category .course {padding-right:18px;}
21cbbf3f
RW
112.dir-rtl.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed_rtl]]);}
113.dir-rtl .course_category_tree .category .courses .course_link {background-position:center right; padding-right:18px;}
cb184beb 114.dir-rtl .clearfloat {float:none; clear:both;height:0px;}
2afcfc44
RW
115.dir-rtl .categorylist .category .info,
116.dir-rtl .categorylist .category .indentation,
117.dir-rtl .categorylist .category .name,
118.dir-rtl .categorylist .category .image,
119.dir-rtl .categorylist .course .name,
120.dir-rtl .categorylist .course .indentation,
121.dir-rtl .categorylist .course .info {float:right;text-align: right;}
122.dir-rtl .categorylist .course {padding-right:18px;}
123
124#page-course-index.dir-rtl .category .image {padding-left: 5px; padding-right: 0px;}
125#page-course-index.dir-rtl .indentation {padding-left: 0px;padding-right: 30px;}