MDL-37009 Display list of tagged courses using new renderer
[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,
d2ced94b 22.course-content .section .activity .activityinstance,
e40bd746 23.sitetopic .section .activity .activityinstance div,
d2ced94b 24.course-content .section .activity .activityinstance div { display: inline;}
e40bd746
FM
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 89
0d47afe6
PN
90li.section.hidden span.commands a.editing_hide,
91li.section.hidden span.commands a.editing_show {cursor:default;}
92
90723839
SH
93.section img.movetarget {height:16px;width:80px;}
94
95#page-course-enrol .generalbox,
96#page-course-enrol .coursebox {margin-top: 20px;}
97
90723839
SH
98#page-course-pending .singlebutton,
99#page-course-category #renameform,
100#page-course-category #themeform,
101#page-course-category #coursesearch,
102#page-course-category .singlebutton,
103#page-course-editsection .singlebutton {text-align:center;}
65edd8ad
FM
104#page-course-category #movecourses td img { margin: 0 .22em; vertical-align: text-bottom;}
105#page-course-category #movecourses td img.icon { padding: 0; }
90723839
SH
106
107#coursesearch,
108#coursesearch2 {margin-top: 1em;text-align:center;}
109
110#page-course-info .generalbox.icons {text-align: center;}
111#page-course-info .generalbox.info {margin-left:auto;margin-right:auto;}
112
113#page-course-pending .pendingcourserequests {margin-bottom: 1em;}
114#page-course-pending .pendingcourserequests .singlebutton {display: inline;}
115#page-course-pending .pendingcourserequests .cell {padding: 0 5px;}
116#page-course-pending .pendingcourserequests .cell.c6 {white-space: nowrap;}
117
90723839 118.coursebox {width: 100%;margin-bottom: 15px;}
ab3169cf
PM
119.coursebox .info {float: left;text-align:left;width: 40%;}
120.coursebox .summary {float: right;text-align:left;width: 55%;}
90723839
SH
121.coursebox .summary .category {text-align:right;}
122.coursebox .teachers li {list-style-type:none;padding:0;margin:0;}
65edd8ad
FM
123.coursebox .enrolmenticons {margin-top: .3em;}
124.coursebox .enrolmenticons img {margin-right: .45em;}
90723839
SH
125
126.categorylist {width: 100%;}
cb184beb
RW
127.categorylist .category .numberofcourse {font-style: italic; font-size: 0.85em; font-style: normal;}
128.categorylist .category {padding-top: 5px; padding-bottom: 5px; }
2afcfc44 129.categorylist .category .info,
2afcfc44
RW
130.categorylist .category .name,
131.categorylist .category .image,
132.categorylist .course .name,
65edd8ad
FM
133.categorylist .course .info {float:left;text-align: left; margin-left: .45em;}
134.categorylist .course .name img.smallicon { vertical-align: text-bottom; margin-right: .45em;}
135.dir-rtl .categorylist .course .name img.smallicon { margin-left: .45em; margin-right: 0;}
136.categorylist .course .info {margin-left: .45em;}
137.categorylist .course .info img { vertical-align: text-bottom;}
138.dir-rtl .categorylist .course .info {margin-right: .45em; margin-left: 0;}
139.categorylist .course {padding-left:24px; margin-bottom: .5em; line-height: 1.5em;}
140.categorylist .course .indentation { margin-left: 24px;}
141.categorylist .category .indentation { margin-left: 24px;}
90723839 142
90723839
SH
143.course ul.section {margin:5px;padding:0;}
144
145.weeks-format, /* Window-width: 800 pixels.IE doesn't support, see inline IE conditional comment. */
146.topics-format {margin-top: 8px;min-width: 763px;}
24e27ac0
SH
147.categoryboxcontent {border-width:1px;border-style:solid;}
148
149/* Course and category combo list on front page */
150.course_category_tree .controls {visibility: hidden;}
151.course_category_tree .controls div {display:inline;cursor:pointer;}
3ebc548f 152.course_category_tree .category.with_children>.category_label {background-image:url([[pix:moodle|t/expanded]]);background-repeat: no-repeat;}
24e27ac0 153.course_category_tree .category_label {padding-left:13px;}
65edd8ad 154.course_category_tree .category .category {margin:5px 0;}
3ebc548f 155.course_category_tree .category .courses {padding-left:16px;}
65edd8ad 156.course_category_tree .category .courses .course_link {display:block;background-image:url([[pix:moodle|i/course]]);background-repeat: no-repeat;padding-left:21px;}
24e27ac0
SH
157.course_category_tree .category .course {position:relative;}
158.course_category_tree .category .course_info {position:absolute;right:0;top:0;}
642b1ca3
ME
159.dir-rtl .course_category_tree .category .course_info { position: static; }
160.dir-rtl .course_category_tree .category .course_info a, .dir-rtl .course_category_tree .category .course_info div {float: right;}
161.dir-rtl .course_category_tree .controls div {padding: 7px;}
65edd8ad
FM
162.course_category_tree .category .course_info img { margin-left: .45em;}
163.dir-rtl .course_category_tree .category .course_info img { margin-right: .45em; margin-left: 0;}
24e27ac0
SH
164.jsenabled .course_category_tree .controls {visibility: visible;}
165.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed]]);}
166.jsenabled .course_category_tree .category.with_children.collapsed .subcategories,
43c90b9b
RW
167.jsenabled .course_category_tree .category.with_children.collapsed .courses {display:none;}
168
cb184beb
RW
169.path-course .clearfloat {float:none; clear:both;height:0px;}
170
defbd5b0
JS
171/*all courses view*/
172#page-course-index .categorylist .course.clearfloat { height: auto; }
173
cf24e82e 174/**
cb184beb
RW
175* Overide for RTL layout
176*/
43c90b9b
RW
177.dir-rtl .coursebox .info {float: right; text-align: right;}
178.dir-rtl .coursebox .summary {text-align:right;}
179.dir-rtl .course_category_tree .category.with_children> .category_label {background-position: center right; padding-right: 18px;}
180.dir-rtl .course_category_tree .category_label, .dir-rtl .course_category_tree .category .course {padding-right:18px;}
21cbbf3f
RW
181.dir-rtl.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed_rtl]]);}
182.dir-rtl .course_category_tree .category .courses .course_link {background-position:center right; padding-right:18px;}
cb184beb 183.dir-rtl .clearfloat {float:none; clear:both;height:0px;}
2afcfc44
RW
184.dir-rtl .categorylist .category .info,
185.dir-rtl .categorylist .category .indentation,
186.dir-rtl .categorylist .category .name,
187.dir-rtl .categorylist .category .image,
188.dir-rtl .categorylist .course .name,
189.dir-rtl .categorylist .course .indentation,
190.dir-rtl .categorylist .course .info {float:right;text-align: right;}
191.dir-rtl .categorylist .course {padding-right:18px;}
192
193#page-course-index.dir-rtl .category .image {padding-left: 5px; padding-right: 0px;}
194#page-course-index.dir-rtl .indentation {padding-left: 0px;padding-right: 30px;}
f73cea54
SH
195
196table.category_subcategories {margin-bottom:1em;}
0465dd3e 197table.category_subcategories td {white-space: nowrap;}
7a9a07d2 198
10994f27
FM
199.sitetopic .section .activity form.activityinstance,
200.course-content .section .activity form.activityinstance { display: inline; vertical-align: bottom; }
7a9a07d2 201span.editinstructions {
10994f27
FM
202 position: absolute;
203 top: 0px;
204 left: 0px;
205 margin-top: -22px;
206 margin-left: 30px;
207 line-height: 16px;
208 font-size: .85em;
209 padding: .1em .4em;
210 background-color: #ffc;
211 color: #000;
7a9a07d2 212 text-decoration: none;
10994f27
FM
213 z-index:9999;
214 box-shadow:2px 2px 5px 1px #ccc;
215 border:1px solid #ddd;
7a9a07d2 216}
10994f27
FM
217.dir-rtl span.editinstructions { left: auto; right: 32px;}
218input.titleeditor { width: 330px; vertical-align: text-bottom; }
7b061512 219
32528f94 220/* Course drag and drop upload styles */
2de13ef2 221#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
222.dndupload-preview {color:#909090;border:1px dashed #909090;list-style:none; margin-top: .2em; padding: .3em; line-height: 16px;}
223.dndupload-preview img.icon { vertical-align: text-bottom; padding: 0;}
ead25632
DS
224.dndupload-progress-outer {width:70px;border:1px solid black;border-radius:4px;height:10px;display:inline-block;margin:0;padding:0;overflow:hidden;position:relative;}
225.dndupload-progress-inner {width:0%;height:100%;background-color:green;display:inline-block;margin:0;padding:0;float:left;box-shadow: 0 0 4px #229b15;border-radius:2px;background-repeat:repeat-x;background-position:top;background-image:url([[pix:theme_base|progress]])}
32528f94 226.dndupload-hidden {display:none;}