on-demand release 2.3dev
[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;}
33d77377 11.course-content .section .activity .commands img {padding: 0 2px;}
a60cc6e1 12.course-content .section-summary { border: 1px solid #DDD; margin-top: 5px; list-style: none; }
1804b7c1
DP
13.course-content .section-summary .section-title { margin: 2px 5px 2px 5px; }
14.course-content .section-summary .summarytext { margin: 2px 5px 2px 5px; }
77812175 15.course-content .section-summary .section-summary-activities .activity-count {margin-right: 10px;color: #AAA; font-size: 12px; margin-right: 15px;}
76055f5d 16.course-content .section-summary .summary { margin-top: 5px; }
c129f430
RT
17.course-content .single-section { margin-top: 1em; }
18.course-content .single-section .section-navigation { display: block; padding: 0.5em; margin-bottom: -0.5em; }
19.course-content .single-section .section-navigation .title { font-weight: bold; font-size: 108%; }
20.course-content .single-section .section-navigation .mdl-left { font-weight: normal; float: left; margin-right: 1em; }
21.course-content .single-section .section-navigation .mdl-left .larrow { margin-right: 0.1em; }
22.course-content .single-section .section-navigation .mdl-right { font-weight: normal; float: right; margin-left: 1em; }
23.course-content .single-section .section-navigation .mdl-right .rarrow { margin-left: 0.1em; }
24.course-content .single-section .section-navigation .mdl-bottom { margin-top: 0; }
90723839
SH
25
26#page-site-index .subscribelink {text-align:right;}
27#page-site-index .headingblock {margin-bottom: 9px;}
b9a048f8 28#page-site-index .clearfloat {float: none;clear: both; height:0px;}
90723839 29
3a35a9ff 30.path-course-view a.reduce-sections {padding-left: 0.2em;}
90723839
SH
31.path-course-view .headingblock {margin-bottom: 9px;}
32.path-course-view .subscribelink {text-align:right;}
33.path-course-view .unread {margin-left: 3em;}
6605ff8c 34.path-course-view .block.drag .header {cursor: move;}
90723839
SH
35.path-course-view .completionprogress {float:right;}
36.path-course-view .completionprogress img.iconhelp {vertical-align:top;}
c129f430 37.path-course-view .single-section .completionprogress {margin-right: -3.5em; padding-left: 1.5em; padding-right: 0em;}
0465dd3e 38.path-course-view .section .summary {line-height:normal;}
90723839
SH
39
40.path-course-view li.activity {margin-right:20px; position:relative;}
41.path-course-view li.activity span.autocompletion,
bd3238e6 42.path-course-view li.activity form.togglecompletion {display:inline;position:absolute;right:-20px;top:0;padding:0.2em 0;}
90723839
SH
43.path-course-view li.activity form.togglecompletion div {display:inline;}
44.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;}
45.dir-rtl.path-course-view li.activity {margin-right:0px;margin-left:20px;}
46.dir-rtl.path-course-view li.activity form.togglecompletion,
eb3217dc 47.dir-rtl.path-course-view li.activity span.autocompletion {right:auto;left:-20px;}
90723839
SH
48
49.section img.movetarget {height:16px;width:80px;}
50
51#page-course-enrol .generalbox,
52#page-course-enrol .coursebox {margin-top: 20px;}
53
90723839
SH
54#page-course-pending .singlebutton,
55#page-course-category #renameform,
56#page-course-category #themeform,
57#page-course-category #coursesearch,
58#page-course-category .singlebutton,
59#page-course-editsection .singlebutton {text-align:center;}
60
61#coursesearch,
62#coursesearch2 {margin-top: 1em;text-align:center;}
63
64#page-course-info .generalbox.icons {text-align: center;}
65#page-course-info .generalbox.info {margin-left:auto;margin-right:auto;}
66
67#page-course-pending .pendingcourserequests {margin-bottom: 1em;}
68#page-course-pending .pendingcourserequests .singlebutton {display: inline;}
69#page-course-pending .pendingcourserequests .cell {padding: 0 5px;}
70#page-course-pending .pendingcourserequests .cell.c6 {white-space: nowrap;}
71
90723839
SH
72
73.coursebox {width: 100%;margin-bottom: 15px;}
ab3169cf
PM
74.coursebox .info {float: left;text-align:left;width: 40%;}
75.coursebox .summary {float: right;text-align:left;width: 55%;}
90723839
SH
76.coursebox .summary .category {text-align:right;}
77.coursebox .teachers li {list-style-type:none;padding:0;margin:0;}
78
79.categorylist {width: 100%;}
cb184beb
RW
80.categorylist .category .numberofcourse {font-style: italic; font-size: 0.85em; font-style: normal;}
81.categorylist .category {padding-top: 5px; padding-bottom: 5px; }
2afcfc44
RW
82.categorylist .category .info,
83.categorylist .category .indentation,
84.categorylist .category .name,
85.categorylist .category .image,
86.categorylist .course .name,
87.categorylist .course .info {float:left;text-align: left;}
88.categorylist .course {padding-left:18px;}
89
ea831ceb
RW
90.categorylist .indentation {padding-left: 20px;}
91#page-course-index .category .image {padding-right: 2px;}
90723839 92
90723839
SH
93.course ul.section {margin:5px;padding:0;}
94
95.weeks-format, /* Window-width: 800 pixels.IE doesn't support, see inline IE conditional comment. */
96.topics-format {margin-top: 8px;min-width: 763px;}
24e27ac0
SH
97.categoryboxcontent {border-width:1px;border-style:solid;}
98
99/* Course and category combo list on front page */
100.course_category_tree .controls {visibility: hidden;}
101.course_category_tree .controls div {display:inline;cursor:pointer;}
3ebc548f 102.course_category_tree .category.with_children>.category_label {background-image:url([[pix:moodle|t/expanded]]);background-repeat: no-repeat;}
24e27ac0 103.course_category_tree .category_label {padding-left:13px;}
3ebc548f
SH
104.course_category_tree .category .category {margin:5px;}
105.course_category_tree .category .courses {padding-left:16px;}
24e27ac0
SH
106.course_category_tree .category .courses .course_link {display:block;background-image:url([[pix:moodle|i/course]]);background-repeat: no-repeat;padding-left:18px;}
107.course_category_tree .category .course {position:relative;}
108.course_category_tree .category .course_info {position:absolute;right:0;top:0;}
109.course_category_tree .category .course_info a,
110.course_category_tree .category .course_info div {float:left;width:16px;height:16px;}
111.jsenabled .course_category_tree .controls {visibility: visible;}
112.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed]]);}
113.jsenabled .course_category_tree .category.with_children.collapsed .subcategories,
43c90b9b
RW
114.jsenabled .course_category_tree .category.with_children.collapsed .courses {display:none;}
115
cb184beb
RW
116.path-course .clearfloat {float:none; clear:both;height:0px;}
117
defbd5b0
JS
118
119/*all courses view*/
120#page-course-index .categorylist .course.clearfloat { height: auto; }
121
cf24e82e 122/**
cb184beb
RW
123* Overide for RTL layout
124*/
43c90b9b
RW
125.dir-rtl .coursebox .info {float: right; text-align: right;}
126.dir-rtl .coursebox .summary {text-align:right;}
127.dir-rtl .course_category_tree .category.with_children> .category_label {background-position: center right; padding-right: 18px;}
128.dir-rtl .course_category_tree .category_label, .dir-rtl .course_category_tree .category .course {padding-right:18px;}
21cbbf3f
RW
129.dir-rtl.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed_rtl]]);}
130.dir-rtl .course_category_tree .category .courses .course_link {background-position:center right; padding-right:18px;}
cb184beb 131.dir-rtl .clearfloat {float:none; clear:both;height:0px;}
2afcfc44
RW
132.dir-rtl .categorylist .category .info,
133.dir-rtl .categorylist .category .indentation,
134.dir-rtl .categorylist .category .name,
135.dir-rtl .categorylist .category .image,
136.dir-rtl .categorylist .course .name,
137.dir-rtl .categorylist .course .indentation,
138.dir-rtl .categorylist .course .info {float:right;text-align: right;}
139.dir-rtl .categorylist .course {padding-right:18px;}
140
141#page-course-index.dir-rtl .category .image {padding-left: 5px; padding-right: 0px;}
142#page-course-index.dir-rtl .indentation {padding-left: 0px;padding-right: 30px;}
f73cea54
SH
143
144table.category_subcategories {margin-bottom:1em;}
0465dd3e 145table.category_subcategories td {white-space: nowrap;}
7a9a07d2
ARN
146
147span.editinstructions {
148 position: relative;
149 top: 5px;
150 left: 19px;
151 width: 329px;
152 padding: 3px;
153 background-color: #dddddd;
154 color: #000000;
155 text-decoration: none;
156 z-index: 100;
157 border: 1px solid black;
158}
159
160input.titleeditor {
161 width: 330px;
162}
7b061512 163
32528f94 164/* Course drag and drop upload styles */
6c0ae99b 165#dndupload-status {width:40%;margin:0 30%;padding:6px;border:1px solid #ddd;text-align:center;background:#ffc;position:absolute;z-index:9999;box-shadow:2px 2px 5px 1px #ccc;border-radius:0px 0px 8px 8px;}
32528f94 166.dndupload-preview {color:#909090;border:1px dashed #909090;}
abed5d65 167.dndupload-progress-outer {width:70px;border:solid black 1px;height:10px;display:inline-block;margin:0;padding:0;overflow:hidden;position:relative;}
32528f94
DS
168.dndupload-progress-inner {width:0%;height:100%;background-color:green;display:inline-block;margin:0;padding:0;float:left;}
169.dndupload-hidden {display:none;}