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 {
18 .form-item .form-label,
19 .mform .fitem div.fitemtitle,
20 .userprofile dl.list dt,
21 .form-horizontal .control-label {
22 width: @horizontalComponentOffset980 - 20px;
24 .form-item .form-setting,
25 .form-item .form-description,
26 .mform .fitem .felement,
27 #page-mod-forum-search .c1,
28 .mform .fdescription.required,
29 .userprofile dl.list dd,
30 .form-horizontal .controls {
31 margin-left: @horizontalComponentOffset980;
35 padding-left: @horizontalComponentOffset980;
41 @media (min-width: 1200px) {
42 .loginbox.twocolumns .loginpanel {
45 .loginbox.twocolumns .loginpanel,
46 .loginbox.twocolumns .signuppanel {
47 width: 48.717948717948715%;
48 *width: 48.664757228587014%;
52 @media (min-width: 980px) {
53 .loginbox.twocolumns .loginpanel {
56 .loginbox.twocolumns .loginpanel,
57 .loginbox.twocolumns .signuppanel {
58 width: 48.617948717948715%;
59 *width: 48.664757228587014%;
63 @media (min-width: 768px) and (max-width: 979px) {
64 .loginbox.twocolumns .loginpanel {
67 .loginbox.twocolumns .loginpanel,
68 .loginbox.twocolumns .signuppanel {
69 width: 48.61878453038674%;
70 *width: 48.56559304102504%;
74 @media (max-width: 767px) {
75 .loginbox.twocolumns .loginpanel,
76 .loginbox.twocolumns .signuppanel {
81 .box-sizing(border-box);
85 @media (max-width: 480px) {
86 // copied from tabs.less stacked-navs
93 .tabtree > ul > li > a {
94 border: 1px solid #ddd;
97 .tabtree > ul > li.first > a {
98 .border-top-radius(4px);
100 .tabtree > ul > li.last > a,
101 .tabtree > ul > li.last > a:hover {
102 border: 1px solid #ddd;
103 .border-bottom-radius(4px);
105 .tabtree > ul > li > a:hover,
106 .tabtree > ul > li > a:focus {
110 .file-picker .fp-repo-items,
111 .file-picker .fp-repo-area {
120 .file-picker .fp-content {
128 .fp-upload-form td.mdl-right,
129 .fp-upload-form td.mdl-left,
130 .fp-login-form .input,
131 .file-picker .fp-login-form .fp-login-input label,
132 .file-picker td.label {
136 .file-picker .fp-login-form table,
138 .file-picker td.label,
139 .file-picker .fp-upload-form table {
143 .course-content ul.topics li.section,
144 .course-content ul.topics li.section .content,
145 .course-content ul.weeks li.section .content,
146 .course-content ul.weeks li.section,
147 .course-content ul.section {
155 .editing .course-content .section .activity {
156 margin-bottom: 0.2em;
157 padding-bottom: 0.2em;
158 border-bottom: thin solid #eee;
160 .course-content .section .activity .commands {
164 .jsenabled .visibleifjs.addresourcemodchooser {
167 .jsenabled .hiddenifjs.addresourcedropdown {
170 display: inline-block;
188 .path-mod-choice .horizontal .choices .option {
191 .path-mod-forum .forumsearch #search {
196 // Stuart's 2,1,3 layout
197 @media (min-width : 768px) {
198 .row-fluid .desktop-first-column {
202 @media (max-width : 767px) {
203 .row-fluid .desktop-first-column {
208 @media (max-width: 767px) {
209 // Remove the horizontal form styles
210 .form-item .form-label,
211 .mform .fitem div.fitemtitle {
212 // copied from .control-label {
218 .form-item .form-label label{
219 display: inline-block;
222 .form-item .form-setting .form-checkbox {
225 .form-label span.form-shortname {
226 display: inline-block;
228 .form-item .form-setting,
229 .mform .fitem .felement,
230 .path-backup .mform .fitem .felement,
231 .mform .fdescription.required,
232 .form-item .form-description {
235 table#form td.submit,
237 #fitem_id_submitbutton,
238 .fp-content-center form + div,
240 .form-horizontal .form-actions,
241 .fitem_fsubmit .felement.fsubmit {
246 width: auto !important;
250 // Shrink calender when short on space in block
251 @media (min-width : 768px) and (max-width: 979px) {
252 .block_calendar_month .content,
253 .block .minicalendar td {
257 // Wider form labels.
258 .form-item .form-label,
259 .mform .fitem div.fitemtitle,
260 .userprofile dl.list dt,
261 .form-horizontal .control-label {
262 width: @horizontalComponentOffset768 - 20px;
264 .form-item .form-setting,
265 .form-item .form-description,
266 .mform .fitem .felement,
267 #page-mod-forum-search .c1,
268 .mform .fdescription.required,
269 .userprofile dl.list dd,
270 .form-horizontal .controls {
271 margin-left: @horizontalComponentOffset768;
273 .path-admin .buttons,
275 padding-left: @horizontalComponentOffset768;
279 @media (max-width: 979px) {
287 .dropdown-menu a:hover,
288 .dropdown-menu a:focus,
289 .dropdown-submenu a:focus,
290 .dropdown-submenu a:hover,
291 .dropdown-submenu a:active,
292 .dropdown-menu > li > a:hover,
293 .dropdown-menu > li > a:focus,
295 background-image: none;
299 .nav-collapse.active {
305 @media (max-width: 768px) {
306 // Resize, reflow file-picker on small devices
307 #filesskin .yui3-panel,
308 #filesskin .file-picker.fp-generallayout {
312 .userprofile dl.list {
313 // copied from dl-horizontal in bootstrap/repsonsive.less
324 // Hide broken drag'n'drop options on touch devices MDL-38371
325 // Not a great workaround, landscape iPads are wider than this,
326 // and a resized window on a netbook could be smaller, but best
327 // we can do with CSS. There might be a JS-based solution.
332 .activityinstance > a {
338 // Remove width from containers
346 .row-fluid .span8.pull-right,
347 .row-fluid .span9.pull-right {
350 // Undo negative margin on rows and thumbnails
354 // Make all grid-sized elements block level again
356 .row-fluid [class*="span"] {
361 .box-sizing(border-box);
365 .box-sizing(border-box);
367 .row-fluid [class*="offset"]:first-child {