Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

API Full-width HTMLEditorField by default

  • Loading branch information...
commit 30b53e65fe75ce1e59058cff4c35718f2e28bd16 1 parent abad856
@chillu chillu authored
View
3  admin/css/screen.css
@@ -265,6 +265,9 @@ input.radio { margin-left: 0; }
.optionset.field { padding-top: 0; }
/** ---------------------------------------------------- HTML Text ---------------------------------------------------- */
+.htmleditor label { display: block; float: none; padding-bottom: 10px; }
+.htmleditor .middleColumn { margin-left: 0px; clear: left; }
+.htmleditor .description { margin-left: 0px; }
.htmleditor textarea { visibility: hidden; }
.htmleditor .mceEditor input, .htmleditor .mceEditor select { width: auto; }
.htmleditor label.left { padding-bottom: 4px; }
View
17 admin/scss/_forms.scss
@@ -153,20 +153,7 @@ form.nostyle {
}
form.stacked .field, .field.stacked {
- label {
- display: block;
- float: none;
- padding-bottom: 10px;
- }
-
- .middleColumn {
- margin-left: 0px;
- clear: left;
- }
-
- .description {
- margin-left: 0px;
- }
+ @include form-field-stacked;
}
form.small .field, .field.small {
@@ -648,6 +635,8 @@ input.radio {
* ---------------------------------------------------- */
.htmleditor {
+
+ @include form-field-stacked;
textarea {
visibility: hidden; // enabled by JS
View
20 admin/scss/_mixins.scss
@@ -117,6 +117,26 @@
transition-duration: $time;
}
+//** ----------------------------------------------------
+// * Show label and field content in their own lines,
+// * to maximize the available horizontal space.
+// * ----------------------------------------------------- */
+@mixin form-field-stacked {
+ label {
+ display: block;
+ float: none;
+ padding-bottom: 10px;
+ }
+
+ .middleColumn {
+ margin-left: 0px;
+ clear: left;
+ }
+
+ .description {
+ margin-left: 0px;
+ }
+}
/*Mixin used to generate slightly smaller text and forms
Used in side panels and action tabs
Please sign in to comment.
Something went wrong with that request. Please try again.