Merge branch 'wip-MDL-33985-m23' of git://github.com/samhemelryk/moodle
[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;}
409c12f2 45.dir-rtl.path-course-view li.activity {margin-right:20px;margin-left:20px;}
90723839 46.dir-rtl.path-course-view li.activity form.togglecompletion,
d180d19a
NK
47.dir-rtl.path-course-view li.activity span.autocompletion {right:-20px;left:auto;padding:0px;}
48.dir-rtl.path-course-view .completionprogress {float: none;}
90723839
SH
49
50.section img.movetarget {height:16px;width:80px;}
51
52#page-course-enrol .generalbox,
53#page-course-enrol .coursebox {margin-top: 20px;}
54
90723839
SH
55#page-course-pending .singlebutton,
56#page-course-category #renameform,
57#page-course-category #themeform,
58#page-course-category #coursesearch,
59#page-course-category .singlebutton,
60#page-course-editsection .singlebutton {text-align:center;}
61
62#coursesearch,
63#coursesearch2 {margin-top: 1em;text-align:center;}
64
65#page-course-info .generalbox.icons {text-align: center;}
66#page-course-info .generalbox.info {margin-left:auto;margin-right:auto;}
67
68#page-course-pending .pendingcourserequests {margin-bottom: 1em;}
69#page-course-pending .pendingcourserequests .singlebutton {display: inline;}
70#page-course-pending .pendingcourserequests .cell {padding: 0 5px;}
71#page-course-pending .pendingcourserequests .cell.c6 {white-space: nowrap;}
72
90723839
SH
73
74.coursebox {width: 100%;margin-bottom: 15px;}
ab3169cf
PM
75.coursebox .info {float: left;text-align:left;width: 40%;}
76.coursebox .summary {float: right;text-align:left;width: 55%;}
90723839
SH
77.coursebox .summary .category {text-align:right;}
78.coursebox .teachers li {list-style-type:none;padding:0;margin:0;}
79
80.categorylist {width: 100%;}
cb184beb
RW
81.categorylist .category .numberofcourse {font-style: italic; font-size: 0.85em; font-style: normal;}
82.categorylist .category {padding-top: 5px; padding-bottom: 5px; }
2afcfc44
RW
83.categorylist .category .info,
84.categorylist .category .indentation,
85.categorylist .category .name,
86.categorylist .category .image,
87.categorylist .course .name,
88.categorylist .course .info {float:left;text-align: left;}
89.categorylist .course {padding-left:18px;}
90
ea831ceb
RW
91.categorylist .indentation {padding-left: 20px;}
92#page-course-index .category .image {padding-right: 2px;}
90723839 93
90723839
SH
94.course ul.section {margin:5px;padding:0;}
95
96.weeks-format, /* Window-width: 800 pixels.IE doesn't support, see inline IE conditional comment. */
97.topics-format {margin-top: 8px;min-width: 763px;}
24e27ac0
SH
98.categoryboxcontent {border-width:1px;border-style:solid;}
99
100/* Course and category combo list on front page */
101.course_category_tree .controls {visibility: hidden;}
102.course_category_tree .controls div {display:inline;cursor:pointer;}
3ebc548f 103.course_category_tree .category.with_children>.category_label {background-image:url([[pix:moodle|t/expanded]]);background-repeat: no-repeat;}
24e27ac0 104.course_category_tree .category_label {padding-left:13px;}
3ebc548f
SH
105.course_category_tree .category .category {margin:5px;}
106.course_category_tree .category .courses {padding-left:16px;}
24e27ac0
SH
107.course_category_tree .category .courses .course_link {display:block;background-image:url([[pix:moodle|i/course]]);background-repeat: no-repeat;padding-left:18px;}
108.course_category_tree .category .course {position:relative;}
109.course_category_tree .category .course_info {position:absolute;right:0;top:0;}
642b1ca3
ME
110.dir-rtl .course_category_tree .category .course_info { position: static; }
111.dir-rtl .course_category_tree .category .course_info a, .dir-rtl .course_category_tree .category .course_info div {float: right;}
112.dir-rtl .course_category_tree .controls div {padding: 7px;}
24e27ac0
SH
113.course_category_tree .category .course_info a,
114.course_category_tree .category .course_info div {float:left;width:16px;height:16px;}
115.jsenabled .course_category_tree .controls {visibility: visible;}
116.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed]]);}
117.jsenabled .course_category_tree .category.with_children.collapsed .subcategories,
43c90b9b
RW
118.jsenabled .course_category_tree .category.with_children.collapsed .courses {display:none;}
119
cb184beb
RW
120.path-course .clearfloat {float:none; clear:both;height:0px;}
121
defbd5b0
JS
122
123/*all courses view*/
124#page-course-index .categorylist .course.clearfloat { height: auto; }
125
cf24e82e 126/**
cb184beb
RW
127* Overide for RTL layout
128*/
43c90b9b
RW
129.dir-rtl .coursebox .info {float: right; text-align: right;}
130.dir-rtl .coursebox .summary {text-align:right;}
131.dir-rtl .course_category_tree .category.with_children> .category_label {background-position: center right; padding-right: 18px;}
132.dir-rtl .course_category_tree .category_label, .dir-rtl .course_category_tree .category .course {padding-right:18px;}
21cbbf3f
RW
133.dir-rtl.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed_rtl]]);}
134.dir-rtl .course_category_tree .category .courses .course_link {background-position:center right; padding-right:18px;}
cb184beb 135.dir-rtl .clearfloat {float:none; clear:both;height:0px;}
2afcfc44
RW
136.dir-rtl .categorylist .category .info,
137.dir-rtl .categorylist .category .indentation,
138.dir-rtl .categorylist .category .name,
139.dir-rtl .categorylist .category .image,
140.dir-rtl .categorylist .course .name,
141.dir-rtl .categorylist .course .indentation,
142.dir-rtl .categorylist .course .info {float:right;text-align: right;}
143.dir-rtl .categorylist .course {padding-right:18px;}
144
145#page-course-index.dir-rtl .category .image {padding-left: 5px; padding-right: 0px;}
146#page-course-index.dir-rtl .indentation {padding-left: 0px;padding-right: 30px;}
f73cea54
SH
147
148table.category_subcategories {margin-bottom:1em;}
0465dd3e 149table.category_subcategories td {white-space: nowrap;}
7a9a07d2
ARN
150
151span.editinstructions {
152 position: relative;
153 top: 5px;
154 left: 19px;
155 width: 329px;
156 padding: 3px;
157 background-color: #dddddd;
158 color: #000000;
159 text-decoration: none;
160 z-index: 100;
161 border: 1px solid black;
162}
163
164input.titleeditor {
165 width: 330px;
166}
7b061512 167
32528f94 168/* Course drag and drop upload styles */
2de13ef2 169#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;z-index: 0;}
32528f94 170.dndupload-preview {color:#909090;border:1px dashed #909090;}
abed5d65 171.dndupload-progress-outer {width:70px;border:solid black 1px;height:10px;display:inline-block;margin:0;padding:0;overflow:hidden;position:relative;}
32528f94
DS
172.dndupload-progress-inner {width:0%;height:100%;background-color:green;display:inline-block;margin:0;padding:0;float:left;}
173.dndupload-hidden {display:none;}