3 // Should probably be moved to relevant .less files
4 // after 4095 selector issue is solved
6 // TODO: MDL-55142 remove browser hacks in this file:
7 /* stylelint-disable declaration-block-no-duplicate-properties, no-browser-hacks */
9 @media (min-width: (@navbarCollapseDesktopWidth)) {
12 a[name]:empty::before {
13 display: inline-block;
16 padding-top: @navbarHeight;
17 margin-top: -@navbarHeight;
23 @media (min-width: 980px) and (max-width: 1199px) {
25 .form-item .form-label,
26 .mform .fitem div.fitemtitle,
27 .userprofile dl.list dt,
28 .form-horizontal .control-label {
29 width: @horizontalComponentOffset980 - 20px;
31 .form-item .form-setting,
32 .form-item .form-description,
33 .mform .fitem .felement,
34 #page-mod-forum-search .c1,
35 .mform .fdescription.required,
36 .userprofile dl.list dd,
37 .form-horizontal .controls {
38 margin-left: @horizontalComponentOffset980;
40 #page-mod-forum-search.dir-lrt .c1 {
41 margin-right: @horizontalComponentOffset980;
45 padding-left: @horizontalComponentOffset980;
49 @media (max-width: 767px) {
50 .file-picker .fp-repo-area {
57 .file-picker .fp-repo-items {
62 .file-picker .fp-login-form .fp-login-input label {
65 .file-picker .fp-content form td {
70 .fp-content .mdl-right {
74 .fp-repo-items .fp-navbar {
75 border-top: 1px solid rgb(187, 187, 187);
83 @media (min-width: 1200px) {
84 // Editor on question page
86 #id_answerhdr div.fitem_feditor {
91 .loginbox.twocolumns .loginpanel {
94 .loginbox.twocolumns .loginpanel,
95 .loginbox.twocolumns .signuppanel {
96 width: 48.717948717948715%;
97 *width: 48.664757228587014%;
100 .form-item .form-label,
101 .mform .fitem div.fitemtitle,
102 .userprofile dl.list dt,
103 .form-horizontal .control-label {
104 width: @horizontalComponentOffset1200 - 20px;
106 .form-item .form-setting,
107 .form-item .form-description,
108 .mform .fitem .felement,
109 #page-mod-forum-search .c1,
110 .mform .fdescription.required,
111 .userprofile dl.list dd,
112 .form-horizontal .controls {
113 margin-left: @horizontalComponentOffset1200;
115 .path-admin .buttons,
117 padding-left: @horizontalComponentOffset1200;
120 // Core empty block regions.
121 .fluid-span (@columns) {
122 .fluid-span-full(@columns, @fluidGridColumnWidth1200, @fluidGridGutterWidth1200);
124 .empty-region-side-post.used-region-side-pre, // Post region is empty and pre region is in use.
125 .jsenabled.docked-region-side-post.used-region-side-pre { // All post blocks docked and pre region is in use.
127 /** increase the span size by 1 **/
130 #block-region-side-pre.span4 {
131 /** decrease the span size by 1 **/
137 @media (min-width: 980px) {
138 .loginbox.twocolumns .loginpanel {
141 .loginbox.twocolumns .loginpanel,
142 .loginbox.twocolumns .signuppanel {
143 width: 48.617948717948715%;
144 *width: 48.664757228587014%;
148 @media (min-width: 768px) and (max-width: 979px) {
150 .loginbox.twocolumns .loginpanel {
153 .loginbox.twocolumns .loginpanel,
154 .loginbox.twocolumns .signuppanel {
155 width: 48.61878453038674%;
156 *width: 48.56559304102504%;
158 // Core empty block regions.
159 .fluid-span (@columns) {
160 .fluid-span-full(@columns, @fluidGridColumnWidth768, @fluidGridGutterWidth768);
162 .empty-region-side-post.used-region-side-pre, // Post region is empty and pre region is in use.
163 .jsenabled.docked-region-side-post.used-region-side-pre { // All post blocks docked and pre region is in use.
165 /** increase the span size by 1 **/
168 #block-region-side-pre.span4 {
169 /** decrease the span size by 1 **/
175 @media (max-width: 767px) {
176 .loginbox.twocolumns .loginpanel,
177 .loginbox.twocolumns .signuppanel {
182 .box-sizing(border-box);
184 #page-mod-quiz-edit div.quizcontents,
185 .questionbankwindow.block {
189 #page-mod-quiz-edit #block-region-side-pre,
190 #page-mod-quiz-edit #block-region-side-post {
196 @media (max-width: 480px) {
197 // make tabs act like nav-stacked
198 // (mostly) copied from bootstrap/navs.less
203 margin-right: 0; // no need for the gap between nav items
209 border: 1px solid #ddd;
212 .nav-tabs > .active > a,
213 .nav-tabs > .active > a:hover {
214 border: 1px solid #ddd;
216 .nav-tabs > li:first-child > a {
217 .border-top-radius(4px);
219 .nav-tabs > li:last-child > a {
220 .border-bottom-radius(4px);
222 .nav-tabs > li > a:hover,
223 .nav-tabs > li > a:focus {
230 .course-content ul.topics li.section,
231 .course-content ul.topics li.section .content,
232 .course-content ul.weeks li.section .content,
233 .course-content ul.weeks li.section,
234 .course-content ul.section {
242 .editing .course-content .section .activity {
243 margin-bottom: 0.2em;
244 padding-bottom: 0.2em;
245 border-bottom: thin solid #eee;
247 .course-content .section .activity .commands {
250 /** Handles display of the activity chooser on small screens **/
251 .jsenabled .choosercontainer #chooseform .alloptions {
254 .jsenabled .choosercontainer #chooseform .instruction,
255 .jsenabled .choosercontainer #chooseform .typesummary {
265 .path-mod-choice .horizontal .choices .option {
268 .path-mod-forum .forumsearch #search {
271 .path-mod-forum .forumheaderlist .picture {
276 // Stuart's 2,1,3 layout
277 @media (min-width: 768px) {
278 .row-fluid .desktop-first-column {
281 #page-navbar .breadcrumb-button {
286 @media (max-width: 767px) {
287 .row-fluid .desktop-first-column {
292 @media (max-width: 767px) {
293 // Remove the horizontal form styles
294 .form-item .form-label,
295 .mform .fitem div.fitemtitle {
296 // copied from .control-label {
302 .form-item .form-label label {
303 display: inline-block;
306 .form-item .form-setting .form-checkbox {
309 .form-label span.form-shortname {
310 display: inline-block;
312 .form-item .form-setting,
313 .mform .fitem .felement,
314 .path-backup .mform .fitem .felement,
315 .mform .fdescription.required,
316 .form-item .form-description {
319 table#form td.submit,
321 #fitem_id_submitbutton,
322 .fp-content-center form + div,
324 .form-horizontal .form-actions,
325 .fitem_fsubmit .felement.fsubmit {
330 /* stylelint-disable declaration-no-important */
331 width: auto !important;
333 /* stylelint-enable declaration-no-important */
336 // Shrink calender when short on space in block
337 @media (min-width: 768px) and (max-width: 979px) {
338 .block_calendar_month .content,
339 .block .minicalendar td {
345 @media (max-width: 979px) {
353 .dropdown-menu a:hover,
354 .dropdown-menu a:focus,
355 .dropdown-submenu a:hover,
356 .dropdown-submenu a:focus,
357 .dropdown-submenu a:active,
358 .dropdown-menu > li > a:hover,
359 .dropdown-menu > li > a:focus,
360 .dropdown-submenu:hover > a,
361 .dropdown-submenu:focus > a {
362 background-image: none;
368 .usermenu .moodle-actionmenu[data-enhanced] {
381 .path-mod-data .box > table > tbody > tr > td {
384 .path-mod-forum .forumheaderlist {
387 font-size: round(@fontSizeSmall);
393 font-size: round(@fontSizeSmall);
403 border-top: 1px solid @navbarBorder;
411 // Add padding to first-level links.
425 .nav .dropdown-menu {
429 display: inline-block;
432 border-top-color: @navbarBorder;
440 background-color: @navbarBackground;
444 // Suppress showing of submenu menu content on hover.
451 background-color: @navbarBackground;
454 .open > .dropdown-menu {
466 border-right: 0 none;
467 border-top: 1px solid @navbarBorder;
468 border-bottom: 1px solid @navbarBackgroundHighlight;
476 border-top-color: @navbarInverseBorder;
478 .nav .dropdown-menu {
482 border-top-color: @navbarInverseBorder;
487 background-color: @navbarInverseBackground;
494 background-color: @navbarInverseBackground;
504 border-top: 1px solid @navbarInverseBackground;
505 border-bottom: 1px solid lighten(@navbarInverseBackground, 25%);
512 color: @navbarInverseLinkColorHover;
519 color: @navbarInverseLinkColorHover;
524 color: @navbarInverseLinkColorHover;
528 .dropdown-submenu a {
532 color: @navbarInverseLinkColorHover;
539 @media (max-width: 767px) {
540 // Resize, reflow file-picker on small devices
541 #filesskin .yui3-panel,
542 #filesskin .file-picker.fp-generallayout {
546 .userprofile dl.list {
547 // copied from dl-horizontal in bootstrap/repsonsive.less
558 // Reset the alignment for required label to display inline on mobile devices
559 #page-mod-wiki-create .mform .fitem div.fitemtitle {
565 // Remove width from containers
573 .row-fluid .span8.pull-right,
574 .row-fluid .span9.pull-right {
577 // Undo negative margin on rows and thumbnails
581 // Make all grid-sized elements block level again
583 .row-fluid [class*="span"] {
588 .box-sizing(border-box);
591 // We need to specify a more specific selector to reset the width for
592 // cases when we have content in the side-pre blockregion but not in the
593 // side-post blockregion as there are more specific selectors in
594 // core.less which take precedence which break responsiveness.
595 .empty-region-side-post.used-region-side-pre, // Post region is empty and pre region is in use.
596 .jsenabled.docked-region-side-post.used-region-side-pre { // All post blocks docked and pre region is in use.
597 #block-region-side-pre.span4,
605 .box-sizing(border-box);
607 .row-fluid [class*="offset"]:first-child {
617 background-position: 0 13px;
627 background-position: 0 13px;
635 // All widths between 1200px and 1600px
636 @media (min-width: 1200px) and (max-width: 1600px) {
637 .fluid-span (@columns) {
638 .fluid-span-full(@columns, @fluidGridColumnWidth1200, @fluidGridGutterWidth1200);
640 // CSS for the course management pages.
641 #course-category-listings.columns-3 {
642 background-color: @tableBackground;
648 margin-left: @fluidGridGutterWidth1200;
649 *margin-left: @fluidGridGutterWidth1200 - (.5 / @gridRowWidth * 100 * 1%);
661 // All widths up to 1199px.
662 @media (max-width: 1199px) {
664 // Editor on question pages
666 #id_answerhdr div.fitem {
671 // CSS for the course management pages.
672 #course-category-listings.columns-3 {
673 background-color: @tableBackground;
683 #page-mod-forum-discuss .discussioncontrols {
688 display: inline-block;
704 @media (max-width: 768px) {
705 .fp-forminset .control-group .controls {