Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39608 - Bootstrap - Chaning the thresholds and width values for t…

…he Form labels

Conflicts:
	theme/bootstrapbase/style/moodle.css
  • Loading branch information...
commit 57ecff63565a662bb0a2b418cd798af1035c32ad 1 parent a1d43d9
@phalacee phalacee authored samhemelryk committed
View
5 theme/bootstrapbase/less/moodle.less
@@ -21,8 +21,9 @@
// Increase form label width.
@horizontalComponentOffset: 200px;
// On Wider screens.
-@horizontalComponentOffset768: 220px;
-@horizontalComponentOffset980: 265px;
+@horizontalComponentOffset980: 220px;
+@horizontalComponentOffset1200: 265px;
+
// Roll back nameclashes.
@import "moodle/undo";
View
44 theme/bootstrapbase/less/moodle/responsive.less
@@ -14,6 +14,9 @@
float: right;
}
}
+}
+
+@media (min-width: 980px) and (max-width: 1199px) {
// Wider form labels.
.form-item .form-label,
.mform .fitem div.fitemtitle,
@@ -47,6 +50,27 @@
width: 48.717948717948715%;
*width: 48.664757228587014%;
}
+ // Wider form labels.
+ .form-item .form-label,
+ .mform .fitem div.fitemtitle,
+ .userprofile dl.list dt,
+ .form-horizontal .control-label {
+ width: @horizontalComponentOffset1200 - 20px;
+ }
+ .form-item .form-setting,
+ .form-item .form-description,
+ .mform .fitem .felement,
+ #page-mod-forum-search .c1,
+ .mform .fdescription.required,
+ .userprofile dl.list dd,
+ .form-horizontal .controls {
+ margin-left: @horizontalComponentOffset1200;
+ }
+ .path-admin .buttons,
+ .form-buttons {
+ padding-left: @horizontalComponentOffset1200;
+ }
+
}
@media (min-width: 980px) {
@@ -260,26 +284,6 @@
padding-left: 0;
padding-right: 0;
}
- // Wider form labels.
- .form-item .form-label,
- .mform .fitem div.fitemtitle,
- .userprofile dl.list dt,
- .form-horizontal .control-label {
- width: @horizontalComponentOffset768 - 20px;
- }
- .form-item .form-setting,
- .form-item .form-description,
- .mform .fitem .felement,
- #page-mod-forum-search .c1,
- .mform .fdescription.required,
- .userprofile dl.list dd,
- .form-horizontal .controls {
- margin-left: @horizontalComponentOffset768;
- }
- .path-admin .buttons,
- .form-buttons {
- padding-left: @horizontalComponentOffset768;
- }
}
@media (max-width: 979px) {
View
2  theme/bootstrapbase/style/moodle.css
1 addition, 1 deletion not shown
Please sign in to comment.
Something went wrong with that request. Please try again.