278b1d349fa5202da7db30fa38e50c4d0e343445
[moodle.git] / theme / base / style / course.css
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;}
9 .course-content .section .activity img.activityicon {vertical-align:middle;height:16px;width:16px;}
10 .course-content .section .activity .commands img.iconsmall {vertical-align: baseline;}
11 .course-content .section-summary { border: 1px solid #DDD; margin-top: 5px; list-style: none; }
12 .course-content .section-summary .section-title  { margin: 2px 5px 2px 5px; }
13 .course-content .section-summary .summarytext { margin: 2px 5px 2px 5px; }
14 .course-content .single-section { margin-top: 1em; }
15 .course-content .single-section .section-navigation { display: block; padding: 0.5em; margin-bottom: -0.5em; }
16 .course-content .single-section .section-navigation .title { font-weight: bold; font-size: 108%; }
17 .course-content .single-section .section-navigation .mdl-left { font-weight: normal; float: left; margin-right: 1em; }
18 .course-content .single-section .section-navigation .mdl-left .larrow { margin-right: 0.1em; }
19 .course-content .single-section .section-navigation .mdl-right { font-weight: normal; float: right; margin-left: 1em; }
20 .course-content .single-section .section-navigation .mdl-right .rarrow { margin-left: 0.1em; }
21 .course-content .single-section .section-navigation .mdl-bottom { margin-top: 0; }
23 #page-site-index .subscribelink {text-align:right;}
24 #page-site-index .headingblock {margin-bottom: 9px;}
25 #page-site-index .clearfloat {float: none;clear: both; height:0px;}
27 .path-course-view a.reduce-sections {padding-left: 0.2em;}
28 .path-course-view .headingblock {margin-bottom: 9px;}
29 .path-course-view .subscribelink {text-align:right;}
30 .path-course-view .unread {margin-left: 3em;}
31 .path-course-view .block.drag .header {cursor: move;}
32 .path-course-view .completionprogress {float:right;}
33 .path-course-view .completionprogress img.iconhelp {vertical-align:top;}
34 .path-course-view .single-section .completionprogress {margin-right: -3.5em; padding-left: 1.5em; padding-right: 0em;}
35 .path-course-view .section .summary {line-height:normal;}
37 .path-course-view li.activity {margin-right:20px; position:relative;}
38 .path-course-view li.activity span.autocompletion,
39 .path-course-view li.activity form.togglecompletion {display:inline;position:absolute;right:-20px;top:0;padding:0.2em 0;}
40 .path-course-view li.activity form.togglecompletion div {display:inline;}
41 .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;}
42 .dir-rtl.path-course-view li.activity {margin-right:0px;margin-left:20px;}
43 .dir-rtl.path-course-view li.activity form.togglecompletion,
44 .dir-rtl.path-course-view li.activity span.autocompletion {right:-20px;left:auto;padding:0px;}
45 .dir-rtl.path-course-view .completionprogress {float: none;}
47 .section img.movetarget {height:16px;width:80px;}
49 #page-course-enrol .generalbox,
50 #page-course-enrol .coursebox {margin-top: 20px;}
52 #page-course-pending .singlebutton,
53 #page-course-category #renameform,
54 #page-course-category #themeform,
55 #page-course-category #coursesearch,
56 #page-course-category .singlebutton,
57 #page-course-editsection .singlebutton {text-align:center;}
59 #coursesearch,
60 #coursesearch2 {margin-top: 1em;text-align:center;}
62 #page-course-info .generalbox.icons {text-align: center;}
63 #page-course-info .generalbox.info {margin-left:auto;margin-right:auto;}
65 #page-course-pending .pendingcourserequests {margin-bottom: 1em;}
66 #page-course-pending .pendingcourserequests .singlebutton {display: inline;}
67 #page-course-pending .pendingcourserequests .cell {padding: 0 5px;}
68 #page-course-pending .pendingcourserequests .cell.c6 {white-space: nowrap;}
71 .coursebox {width: 100%;margin-bottom: 15px;}
72 .coursebox .info {float: left;text-align:left;width: 40%;}
73 .coursebox .summary {float: right;text-align:left;width: 55%;}
74 .coursebox .summary .category {text-align:right;}
75 .coursebox .teachers li {list-style-type:none;padding:0;margin:0;}
77 .categorylist {width: 100%;}
78 .categorylist .category .numberofcourse {font-style: italic; font-size: 0.85em; font-style: normal;}
79 .categorylist .category {padding-top: 5px; padding-bottom: 5px; }
80 .categorylist .category .info,
81 .categorylist .category .indentation,
82 .categorylist .category .name,
83 .categorylist .category .image,
84 .categorylist .course .name,
85 .categorylist .course .info {float:left;text-align: left;}
86 .categorylist .course {padding-left:18px;}
88 .categorylist .indentation {padding-left: 20px;}
89 #page-course-index .category .image {padding-right: 2px;}
91 .course ul.section {margin:5px;padding:0;}
93 .weeks-format, /* Window-width: 800 pixels.IE doesn't support, see inline IE conditional comment. */
94 .topics-format {margin-top: 8px;min-width: 763px;}
95 .categoryboxcontent {border-width:1px;border-style:solid;}
97 /* Course and category combo list on front page */
98 .course_category_tree .controls {visibility: hidden;}
99 .course_category_tree .controls div {display:inline;cursor:pointer;}
100 .course_category_tree .category.with_children>.category_label {background-image:url([[pix:moodle|t/expanded]]);background-repeat: no-repeat;}
101 .course_category_tree .category_label {padding-left:13px;}
102 .course_category_tree .category .category {margin:5px;}
103 .course_category_tree .category .courses {padding-left:16px;}
104 .course_category_tree .category .courses .course_link {display:block;background-image:url([[pix:moodle|i/course]]);background-repeat: no-repeat;padding-left:18px;}
105 .course_category_tree .category .course {position:relative;}
106 .course_category_tree .category .course_info {position:absolute;right:0;top:0;}
107 .course_category_tree .category .course_info a,
108 .course_category_tree .category .course_info div {float:left;width:16px;height:16px;}
109 .jsenabled .course_category_tree .controls {visibility: visible;}
110 .jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed]]);}
111 .jsenabled .course_category_tree .category.with_children.collapsed .subcategories,
112 .jsenabled .course_category_tree .category.with_children.collapsed .courses {display:none;}
114 .path-course .clearfloat {float:none; clear:both;height:0px;}
117 /*all courses view*/
118 #page-course-index .categorylist .course.clearfloat { height: auto; }
120 /**
121 * Overide for RTL layout
122 */
123 .dir-rtl .coursebox .info {float: right; text-align: right;}
124 .dir-rtl .coursebox .summary {text-align:right;}
125 .dir-rtl .course_category_tree .category.with_children> .category_label {background-position: center right; padding-right: 18px;}
126 .dir-rtl .course_category_tree .category_label, .dir-rtl .course_category_tree .category .course {padding-right:18px;}
127 .dir-rtl.jsenabled .course_category_tree .category.with_children.collapsed .category_label {background-image:url([[pix:moodle|t/collapsed_rtl]]);}
128 .dir-rtl .course_category_tree .category .courses .course_link {background-position:center right; padding-right:18px;}
129 .dir-rtl .clearfloat {float:none; clear:both;height:0px;}
130 .dir-rtl .categorylist .category .info,
131 .dir-rtl .categorylist .category .indentation,
132 .dir-rtl .categorylist .category .name,
133 .dir-rtl .categorylist .category .image,
134 .dir-rtl .categorylist .course .name,
135 .dir-rtl .categorylist .course .indentation,
136 .dir-rtl .categorylist .course .info {float:right;text-align: right;}
137 .dir-rtl .categorylist .course {padding-right:18px;}
139 #page-course-index.dir-rtl .category .image {padding-left: 5px; padding-right: 0px;}
140 #page-course-index.dir-rtl .indentation {padding-left: 0px;padding-right: 30px;}
142 table.category_subcategories {margin-bottom:1em;}
143 table.category_subcategories td {white-space: nowrap;}
145 span.editinstructions {
146     position: relative;
147     top: 5px;
148     left: 19px;
149     width: 329px;
150     padding: 3px;
151     background-color: #dddddd;
152     color: #000000;
153     text-decoration: none;
154     z-index: 100;
155     border: 1px solid black;
158 input.titleeditor {
159     width: 330px;
162 /* Course drag and drop upload styles */
163 #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;}
164 .dndupload-preview {color:#909090;border:1px dashed #909090;}
165 .dndupload-progress-outer {width:70px;border:solid black 1px;height:10px;display:inline-block;margin:0;padding:0;overflow:hidden;position:relative;}
166 .dndupload-progress-inner {width:0%;height:100%;background-color:green;display:inline-block;margin:0;padding:0;float:left;}
167 .dndupload-hidden {display:none;}
169 .dir-rtl.path-course-view li.activity form.togglecompletion, .dir-rtl.path-course-view li.activity span.autocompletion