MDL-36550 usability: CSS updates on course page
[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;}
10994f27 5.dir-rtl .section_add_menus {text-align:left;}
90723839
SH
6.section_add_menus .horizontal div,
7.section_add_menus .horizontal form {display:inline;}
8.section_add_menus optgroup {font-weight:normal;font-style: italic;}
bb128107
FM
9.section_add_menus .urlselect { margin-left: .4em;}
10.dir-rtl .section_add_menus .urlselect { margin-right: .4em; margin-left: 0;}
11.section_add_menus .urlselect select { margin-left: .2em;}
12.dir-rtl .section_add_menus .urlselect select { margin-right: .2em; margin-left: 0;}
13.section_add_menus .urlselect img.iconhelp { padding: 0; margin: 0; vertical-align: text-bottom;}
90723839 14
d5dfb8d6
FM
15.site-topic ul.section,
16.course-content ul.section { margin: 1em;}
bb128107 17.sitetopic .section .activity img.activityicon,
10994f27 18.course-content .section .activity img.activityicon {vertical-align:text-bottom;margin-right: 6px;}
bb128107 19.dir-rtl .sitetopic .section .activity img.activityicon,
10994f27 20.dir-rtl .course-content .section .activity img.activityicon {margin-left: 6px; margin-right: 0;}
bb128107 21.sitetopic .section .activity .activityinstance,
e40bd746
FM
22.course-content .section .activity .activityinstance
23.sitetopic .section .activity .activityinstance div,
24.course-content .section .activity .activityinstance div, { display: inline;}
25.sitetopic .section .activity .activityinstance,
26.course-content .section .activity .activityinstance { padding-right: 3em; }
bb128107
FM
27.dir-rtl .sitetopic .section .activity .activityinstance,
28.dir-rtl .course-content .section .activity .activityinstance { padding-right: 0; padding-left: 3em;}
e40bd746
FM
29.sitetopic .section .activity .commands,
30.course-content .section .activity .commands { white-space: nowrap; display: inline; }
bb128107
FM
31.sitetopic .section .activity .commands img,
32.course-content .section .activity .commands img { vertical-align: baseline; padding: 0 2px; }
33.sitetopic .section li.activity,
34.course-content .section li.activity {padding: .2em;}
e40bd746 35.section .activity .activityinstance .groupinglabel { padding-left: .45em; }
10994f27
FM
36.sitetopic .section .activity .availabilityinfo,
37.sitetopic .section .activity .contentafterlink,
38.course-content .section .activity .availabilityinfo,
39.course-content .section .activity .contentafterlink { margin-top: 0.5em; margin-left: 30px;}
40.dir-rtl .sitetopic .section .activity .availabilityinfo,
41.dir-rtl .sitetopic .section .activity .contentafterlink,
42.dir-rtl .course-content .section .activity .availabilityinfo,
43.dir-rtl .course-content .section .activity .contentafterlink { margin-left: 0; margin-right: 30px;}
e40bd746 44.section .activity .contentafterlink p { margin:.5em 0; }
bb128107 45.sitetopic .section .activity:hover,
c419fb96 46.course-content .section .activity:hover { background-color: #EEE; }
a60cc6e1 47.course-content .section-summary { border: 1px solid #DDD; margin-top: 5px; list-style: none; }
e40bd746 48.course-content .section-summary .section-title { margin: 2px 5px 10px 5px; }
1804b7c1 49.course-content .section-summary .summarytext { margin: 2px 5px 2px 5px; }
77812175 50.course-content .section-summary .section-summary-activities .activity-count {margin-right: 10px;color: #AAA; font-size: 12px; margin-right: 15px;}
76055f5d 51.course-content .section-summary .summary { margin-top: 5px; }
c129f430
RT
52.course-content .single-section { margin-top: 1em; }
53.course-content .single-section .section-navigation { display: block; padding: 0.5em; margin-bottom: -0.5em; }
54.course-content .single-section .section-navigation .title { font-weight: bold; font-size: 108%; }
55.course-content .single-section .section-navigation .mdl-left { font-weight: normal; float: left; margin-right: 1em; }
5e51bd99 56.dir-rtl .course-content .single-section .section-navigation .mdl-left {float:right;}
c129f430
RT
57.course-content .single-section .section-navigation .mdl-left .larrow { margin-right: 0.1em; }
58.course-content .single-section .section-navigation .mdl-right { font-weight: normal; float: right; margin-left: 1em; }
5e51bd99 59.dir-rtl .course-content .single-section .section-navigation .mdl-right {float: left;}
c129f430
RT
60.course-content .single-section .section-navigation .mdl-right .rarrow { margin-left: 0.1em; }
61.course-content .single-section .section-navigation .mdl-bottom { margin-top: 0; }
90723839
SH
62
63#page-site-index .subscribelink {text-align:right;}
64#page-site-index .headingblock {margin-bottom: 9px;}
b9a048f8 65#page-site-index .clearfloat {float: none;clear: both; height:0px;}
90723839 66
3a35a9ff 67.path-course-view a.reduce-sections {padding-left: 0.2em;}
90723839
SH
68.path-course-view .headingblock {margin-bottom: 9px;}
69.path-course-view .subscribelink {text-align:right;}
70.path-course-view .unread {margin-left: 3em;}
6605ff8c 71.path-course-view .block.drag .header {cursor: move;}
e40bd746
FM
72.path-course-view .completionprogress { text-align: right; }
73.dir-rtl.path-course-view .completionprogress { text-align: left; }
74.path-course-view .single-section .completionprogress { margin-right: 5px; }
0465dd3e 75.path-course-view .section .summary {line-height:normal;}
90723839 76
10994f27
FM
77.path-site li.activity > div,
78.path-course-view li.activity > div {position:relative;}
90723839 79.path-course-view li.activity span.autocompletion,
10994f27 80.path-course-view li.activity form.togglecompletion {position: absolute; top: 0; right: .2em;}
bb128107 81.path-course-view li.activity span.autocompletion img,
10994f27 82.path-course-view li.activity form.togglecompletion input {position:absolute; top: .25em; right: 0px;}
bb128107 83.path-course-view li.activity form.togglecompletion .ajaxworking {position:absolute; right: 22px; top: 5px; width: 16px; height: 16px; background: url([[pix:i/ajaxloader]]) no-repeat;}
90723839 84.path-course-view li.activity form.togglecompletion div {display:inline;}
90723839 85.dir-rtl.path-course-view li.activity form.togglecompletion,
bb128107 86.dir-rtl.path-course-view li.activity span.autocompletion {left:1.7em;right:auto;padding:0px;}
d180d19a 87.dir-rtl.path-course-view .completionprogress {float: none;}
bb128107 88.dir-rtl.path-course-view li.activity form.togglecompletion .ajaxworking {right: -22px;}
90723839
SH
89
90.section img.movetarget {height:16px;width:80px;}
91
92#page-course-enrol .generalbox,
93#page-course-enrol .coursebox {margin-top: 20px;}
94
90723839
SH
95#page-course-pending .singlebutton,
96#page-course-category #renameform,
97#page-course-category #themeform,
98#page-course-category #coursesearch,
99#page-course-category .singlebutton,
100#page-course-editsection .singlebutton {text-align:center;}
101
102#coursesearch,
103#coursesearch2 {margin-top: 1em;text-align:center;}
104
105#page-course-info .generalbox.icons {text-align: center;}
106#page-course-info .generalbox.info {margin-left:auto;margin-right:auto;}
107
108#page-course-pending .pendingcourserequests {margin-bottom: 1em;}
109#page-course-pending .pendingcourserequests .singlebutton {display: inline;}
110#page-course-pending .pendingcourserequests .cell {padding: 0 5px;}
111#page-course-pending .pendingcourserequests .cell.c6 {white-space: nowrap;}
112
90723839
SH
113
114.coursebox {width: 100%;margin-bottom: 15px;}
ab3169cf
PM
115.coursebox .info {float: left;text-align:left;width: 40%;}
116.coursebox .summary {float: right;text-align:left;width: 55%;}
90723839
SH
117.coursebox .summary .category {text-align:right;}
118.coursebox .teachers li {list-style-type:none;padding:0;margin:0;}
119
120.categorylist {width: 100%;}
cb184beb
RW
121.categorylist .category .numberofcourse {font-style: italic; font-size: 0.85em; font-style: normal;}
122.categorylist .category {padding-top: 5px; padding-bottom: 5px; }
2afcfc44
RW
123.categorylist .category .info,
124.categorylist .category .indentation,
125.categorylist .category .name,
126.categorylist .category .image,
127.categorylist .course .name,
128.categorylist .course .info {float:left;text-align: left;}
129.categorylist .course {padding-left:18px;}
130
ea831ceb
RW
131.categorylist .indentation {padding-left: 20px;}
132#page-course-index .category .image {padding-right: 2px;}
90723839 133
90723839
SH
134.course ul.section {margin:5px;padding:0;}
135
136.weeks-format, /* Window-width: 800 pixels.IE doesn't support, see inline IE conditional comment. */
137.topics-format {margin-top: 8px;min-width: 763px;}
24e27ac0
SH
138.categoryboxcontent {border-width:1px;border-style:solid;}
139
140/* Course and category combo list on front page */
141.course_category_tree .controls {visibility: hidden;}
142.course_category_tree .controls div {display:inline;cursor:pointer;}
3ebc548f 143.course_category_tree .category.with_children>.category_label {background-image:url([[pix:moodle|t/expanded]]);background-repeat: no-repeat;}
24e27ac0 144.course_category_tree .category_label {padding-left:13px;}
3ebc548f
SH
145.course_category_tree .category .category {margin:5px;}
146.course_category_tree .category .courses {padding-left:16px;}
24e27ac0
SH
147.course_category_tree .category .courses .course_link {display:block;background-image:url([[pix:moodle|i/course]]);background-repeat: no-repeat;padding-left:18px;}
148.course_category_tree .category .course {position:relative;}
149.course_category_tree .category .course_info {position:absolute;right:0;top:0;}
642b1ca3
ME
150.dir-rtl .course_category_tree .category .course_info { position: static; }
151.dir-rtl .course_category_tree .category .course_info a, .dir-rtl .course_category_tree .category .course_info div {float: right;}
152.dir-rtl .course_category_tree .controls div {padding: 7px;}
24e27ac0
SH
153.course_category_tree .category .course_info a,
154.course_category_tree .category .course_info div {float:left;width:16px;height:16px;}
155.jsenabled .course_category_tree .controls {visibility: visible;}
156.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed]]);}
157.jsenabled .course_category_tree .category.with_children.collapsed .subcategories,
43c90b9b
RW
158.jsenabled .course_category_tree .category.with_children.collapsed .courses {display:none;}
159
cb184beb
RW
160.path-course .clearfloat {float:none; clear:both;height:0px;}
161
defbd5b0
JS
162/*all courses view*/
163#page-course-index .categorylist .course.clearfloat { height: auto; }
164
cf24e82e 165/**
cb184beb
RW
166* Overide for RTL layout
167*/
43c90b9b
RW
168.dir-rtl .coursebox .info {float: right; text-align: right;}
169.dir-rtl .coursebox .summary {text-align:right;}
170.dir-rtl .course_category_tree .category.with_children> .category_label {background-position: center right; padding-right: 18px;}
171.dir-rtl .course_category_tree .category_label, .dir-rtl .course_category_tree .category .course {padding-right:18px;}
21cbbf3f
RW
172.dir-rtl.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed_rtl]]);}
173.dir-rtl .course_category_tree .category .courses .course_link {background-position:center right; padding-right:18px;}
cb184beb 174.dir-rtl .clearfloat {float:none; clear:both;height:0px;}
2afcfc44
RW
175.dir-rtl .categorylist .category .info,
176.dir-rtl .categorylist .category .indentation,
177.dir-rtl .categorylist .category .name,
178.dir-rtl .categorylist .category .image,
179.dir-rtl .categorylist .course .name,
180.dir-rtl .categorylist .course .indentation,
181.dir-rtl .categorylist .course .info {float:right;text-align: right;}
182.dir-rtl .categorylist .course {padding-right:18px;}
183
184#page-course-index.dir-rtl .category .image {padding-left: 5px; padding-right: 0px;}
185#page-course-index.dir-rtl .indentation {padding-left: 0px;padding-right: 30px;}
f73cea54
SH
186
187table.category_subcategories {margin-bottom:1em;}
0465dd3e 188table.category_subcategories td {white-space: nowrap;}
7a9a07d2 189
10994f27
FM
190.sitetopic .section .activity form.activityinstance,
191.course-content .section .activity form.activityinstance { display: inline; vertical-align: bottom; }
7a9a07d2 192span.editinstructions {
10994f27
FM
193 position: absolute;
194 top: 0px;
195 left: 0px;
196 margin-top: -22px;
197 margin-left: 30px;
198 line-height: 16px;
199 font-size: .85em;
200 padding: .1em .4em;
201 background-color: #ffc;
202 color: #000;
7a9a07d2 203 text-decoration: none;
10994f27
FM
204 z-index:9999;
205 box-shadow:2px 2px 5px 1px #ccc;
206 border:1px solid #ddd;
7a9a07d2 207}
10994f27
FM
208.dir-rtl span.editinstructions { left: auto; right: 32px;}
209input.titleeditor { width: 330px; vertical-align: text-bottom; }
7b061512 210
32528f94 211/* Course drag and drop upload styles */
2de13ef2 212#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;}
8a3b8918
FM
213.dndupload-preview {color:#909090;border:1px dashed #909090;list-style:none; margin-top: .2em; padding: .3em; line-height: 16px;}
214.dndupload-preview img.icon { vertical-align: text-bottom; padding: 0;}
d75e8e3a 215.dndupload-progress-outer {width:70px;border:1px solid black;height:10px;display:inline-block;margin:0;padding:0;overflow:hidden;position:relative;}
32528f94
DS
216.dndupload-progress-inner {width:0%;height:100%;background-color:green;display:inline-block;margin:0;padding:0;float:left;}
217.dndupload-hidden {display:none;}