3 // Should probably be moved to relevant .less files
4 // after 4095 selector issue is solved
6 @media (min-width: 980px) {
7 .dir-rtl .navbar .nav.pull-right,
8 .dir-rtl .navbar .logininfo {
11 .dir-rtl .navbar .nav {
19 @media (min-width: 980px) and (max-width: 1199px) {
21 .form-item .form-label,
22 .mform .fitem div.fitemtitle,
23 .userprofile dl.list dt,
24 .form-horizontal .control-label {
25 width: @horizontalComponentOffset980 - 20px;
27 .form-item .form-setting,
28 .form-item .form-description,
29 .mform .fitem .felement,
30 #page-mod-forum-search .c1,
31 .mform .fdescription.required,
32 .userprofile dl.list dd,
33 .form-horizontal .controls {
34 margin-left: @horizontalComponentOffset980;
37 .form-item .form-setting,
38 .form-item .form-description,
39 .mform .fitem .felement,
40 .mform .fdescription.required,
41 .userprofile dl.list dd,
42 .form-horizontal .controls {
43 margin-right: @horizontalComponentOffset980;
46 #page-mod-forum-search.dir-lrt .c1 {
47 margin-right: @horizontalComponentOffset980;
51 padding-left: @horizontalComponentOffset980;
56 @media (max-width: 873px) {
57 .file-picker .fp-repo-area {
65 .file-picker .fp-repo-items {
69 .file-picker .fp-login-form .fp-login-input label {
72 .dir-rtl .file-picker .fp-login-form .fp-login-input label {
75 .file-picker .fp-content form td {
80 .dir-rtl .file-picker .fp-content form td {
83 .fp-content .mdl-right {
86 .dir-rtl .fp-content .mdl-right {
90 .fp-repo-items .fp-navbar {
91 border-top: 1px solid rgb(187, 187, 187);
96 @media (min-width: 1200px) {
97 .loginbox.twocolumns .loginpanel {
100 .loginbox.twocolumns .loginpanel,
101 .loginbox.twocolumns .signuppanel {
102 width: 48.717948717948715%;
103 *width: 48.664757228587014%;
105 // Wider form labels.
106 .form-item .form-label,
107 .mform .fitem div.fitemtitle,
108 .userprofile dl.list dt,
109 .form-horizontal .control-label {
110 width: @horizontalComponentOffset1200 - 20px;
112 .form-item .form-setting,
113 .form-item .form-description,
114 .mform .fitem .felement,
115 #page-mod-forum-search .c1,
116 .mform .fdescription.required,
117 .userprofile dl.list dd,
118 .form-horizontal .controls {
119 margin-left: @horizontalComponentOffset1200;
122 .form-item .form-setting,
123 .form-item .form-description,
124 .mform .fitem .felement,
125 .mform .fdescription.required,
126 .userprofile dl.list dd,
127 .form-horizontal .controls {
128 margin-right: @horizontalComponentOffset1200;
130 #page-mod-forum-search .c1 {
131 margin-right: @horizontalComponentOffset1200;
134 .path-admin .buttons,
136 padding-left: @horizontalComponentOffset1200;
139 .path-admin .buttons,
141 padding-right: @horizontalComponentOffset1200;
147 @media (min-width: 980px) {
148 .loginbox.twocolumns .loginpanel {
151 .loginbox.twocolumns .loginpanel,
152 .loginbox.twocolumns .signuppanel {
153 width: 48.617948717948715%;
154 *width: 48.664757228587014%;
158 @media (min-width: 768px) and (max-width: 979px) {
159 .loginbox.twocolumns .loginpanel {
162 .loginbox.twocolumns .loginpanel,
163 .loginbox.twocolumns .signuppanel {
164 width: 48.61878453038674%;
165 *width: 48.56559304102504%;
169 @media (max-width: 767px) {
170 .loginbox.twocolumns .loginpanel,
171 .loginbox.twocolumns .signuppanel {
176 .box-sizing(border-box);
180 @media (max-width: 480px) {
181 // make tabs act like nav-stacked
182 // (mostly) copied from bootstrap/navs.less
187 margin-right: 0; // no need for the gap between nav items
193 border: 1px solid #ddd;
196 .nav-tabs > .active > a,
197 .nav-tabs > .active > a:hover {
198 border: 1px solid #ddd;
200 .nav-tabs > li:first-child > a {
201 .border-top-radius(4px);
203 .nav-tabs > li:last-child > a {
204 .border-bottom-radius(4px);
206 .nav-tabs > li > a:hover,
207 .nav-tabs > li > a:focus {
215 .course-content ul.topics li.section,
216 .course-content ul.topics li.section .content,
217 .course-content ul.weeks li.section .content,
218 .course-content ul.weeks li.section,
219 .course-content ul.section {
227 .editing .course-content .section .activity {
228 margin-bottom: 0.2em;
229 padding-bottom: 0.2em;
230 border-bottom: thin solid #eee;
232 .course-content .section .activity .commands {
236 /** Handles display of the activity chooser on small screens **/
237 .jsenabled .choosercontainer #chooseform .alloptions {
240 .jsenabled .choosercontainer #chooseform .instruction,
241 .jsenabled .choosercontainer #chooseform .typesummary {
251 .path-mod-choice .horizontal .choices .option {
254 .path-mod-forum .forumsearch #search {
257 .path-mod-forum .forumheaderlist .picture {
262 // Stuart's 2,1,3 layout
263 @media (min-width : 768px) {
264 .row-fluid .desktop-first-column {
267 #page-navbar .breadcrumb-button {
271 @media (max-width : 767px) {
272 .row-fluid .desktop-first-column {
277 @media (max-width: 767px) {
278 // Remove the horizontal form styles
279 .form-item .form-label,
280 .mform .fitem div.fitemtitle {
281 // copied from .control-label {
287 .form-item .form-label label{
288 display: inline-block;
291 .form-item .form-setting .form-checkbox {
294 .form-label span.form-shortname {
295 display: inline-block;
297 .form-item .form-setting,
298 .mform .fitem .felement,
299 .path-backup .mform .fitem .felement,
300 .mform .fdescription.required,
301 .form-item .form-description {
304 table#form td.submit,
306 #fitem_id_submitbutton,
307 .fp-content-center form + div,
309 .form-horizontal .form-actions,
310 .fitem_fsubmit .felement.fsubmit {
315 width: auto !important;
319 // Shrink calender when short on space in block
320 @media (min-width : 768px) and (max-width: 979px) {
321 .block_calendar_month .content,
322 .block .minicalendar td {
328 @media (max-width: 979px) {
336 .dropdown-menu a:hover,
337 .dropdown-menu a:focus,
338 .dropdown-submenu a:focus,
339 .dropdown-submenu a:hover,
340 .dropdown-submenu a:active,
341 .dropdown-menu > li > a:hover,
342 .dropdown-menu > li > a:focus,
344 background-image: none;
348 .nav-collapse.active {
354 @media (max-width: 768px) {
355 // Resize, reflow file-picker on small devices
356 #filesskin .yui3-panel,
357 #filesskin .file-picker.fp-generallayout {
361 .userprofile dl.list {
362 // copied from dl-horizontal in bootstrap/repsonsive.less
373 // Reset the alignment for required label to display inline on mobile devices
374 #page-mod-wiki-create .mform .fitem div.fitemtitle {
378 // Hide broken drag'n'drop options on touch devices MDL-38371
379 // Not a great workaround, landscape iPads are wider than this,
380 // and a resized window on a netbook could be smaller, but best
381 // we can do with CSS. There might be a JS-based solution.
386 .activityinstance > a {
392 // Remove width from containers
400 .row-fluid .span8.pull-right,
401 .row-fluid .span9.pull-right {
404 // Undo negative margin on rows and thumbnails
408 // Make all grid-sized elements block level again
410 .row-fluid [class*="span"] {
415 .box-sizing(border-box);
418 // We need to specify a more specific selector to reset the width for
419 // cases when we have content in the side-pre blockregion but not in the
420 // side-post blockregion as there are more specific selectors in
421 // core.less which take precedence which break responsiveness.
422 .empty-region-side-post.used-region-side-pre {
423 #block-region-side-pre.span4,
424 #region-main.span8.span8 {
431 .box-sizing(border-box);
433 .row-fluid [class*="offset"]:first-child {
441 // All widths between 1200px and 1600px
442 @media (min-width: 1200px) and (max-width: 1600px) {
443 // CSS for the course management pages.
444 #course-category-listings.columns-3 {
445 background-color:transparent;
451 margin-left: @fluidGridGutterWidth;
452 *margin-left: @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
465 // All widths up to 1199px.
466 @media (max-width: 1199px) {
467 // CSS for the course management pages.
468 #course-category-listings.columns-3 {
469 background-color:transparent;