Permalink
Browse files

MINOR Styling of side reports and tree area in CMS

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92850 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 990ae9f commit 683dfa9426f78a01a2cf3108dafc8699cf1144cb @chillu chillu committed Nov 21, 2009
Showing with 22 additions and 23 deletions.
  1. +3 −2 code/CMSMain.php
  2. +10 −6 css/cms_left.css
  3. +2 −0 css/cms_right.css
  4. +5 −0 css/layout.css
  5. +0 −13 css/unjquery.css
  6. +1 −1 javascript/CMSMain.js
  7. +1 −1 templates/Includes/CMSMain_TreeTools.ss
View
5 code/CMSMain.php
@@ -660,7 +660,7 @@ function SideReportsForm() {
}
$selectorField = new GroupedDropdownField(
"ReportClass",
- _t('CMSMain.REPORT', 'Report'),
+ false,
$finalOptions
);
@@ -677,6 +677,7 @@ function SideReportsForm() {
)
);
$form->unsetValidator();
+ $form->addExtraClass('oneline');
return $form;
}
@@ -1029,8 +1030,8 @@ function AddForm() {
);
$form = new Form($this, "AddForm", $fields, $actions);
-
$form->addExtraClass('actionparams');
+ $form->addExtraClass('oneline');
return $form;
}
View
16 css/cms_left.css
@@ -32,6 +32,12 @@
color: #666;
}
+form.oneline fieldset {
+ width: 80%;
+ float: left;
+ margin-right: .5em;
+}
+
/**
* Selection Groups
*/
@@ -423,7 +429,7 @@ ul.tree span.untranslated a:visited {
.checkboxAboveTree {
border-top: 1px solid #cccccc;
- padding: 5px 0 0 0;
+ padding: .5em;
overflow: hidden;
clear: left;
}
@@ -475,12 +481,10 @@ ul.tree span.untranslated a:visited {
}
-form#SideReportForm label.left {
- margin-left: 0em;
- width: auto;
+#Form_SideReportsForm select,
+#Form_SideReportsForm .middlecolumn {
+ width: 80%;
}
-
-
/**
* i18n
*/
View
2 css/cms_right.css
@@ -196,6 +196,8 @@
.right form .Actions {
text-align: right;
padding: 0.5em;
+ background: white;
+ border-top: 1px solid #aaa;
}
.right form .Actions input {
View
5 css/layout.css
@@ -404,6 +404,11 @@ body.stillLoading select {
_padding-top: 4px;
}
+#TreeTools .ui-tabs .ui-tabs-nav li a {
+ padding-left: .5em;
+ padding-right: .5em;
+}
+
#TreeTools #batchactionsforms {
padding: 0 5px 7px 5px;
}
View
13 css/unjquery.css
@@ -67,13 +67,6 @@
#treepanes .ui-widget input {
font-size: 1.1em;
}
-#treepanes select {
- font-size: 1.1em;
-}
-#treepanes option {
- padding: 3px;
- font-size: 1.1em;
-}
#treepanes .ui-tabs-panel {
padding: 0.5em;
@@ -100,7 +93,6 @@
#treepanes .ui-accordion-header a {
font-size: 120%;
- padding: 0.5em 2.2em 0.5em 0.5em;
}
#treepanes.ui-accordion .ui-accordion-header .ui-icon {
right: 0.5em !important;
@@ -140,8 +132,3 @@ p#WelcomeMessage {
.ui-layout-resizer-dragging {
background: #ccdef3 none repeat scroll 0 0;
}
-
-.CMSMain .ui-tabs .ui-tabs-nav li {
- margin-right: 5px;
-}
-
View
2 javascript/CMSMain.js
@@ -169,7 +169,7 @@
});
// move submit button to the top
- this.find('#ReportClass').after(this.find('.Actions'));
+ //this.find('#ReportClass').after(this.find('.Actions'));
this._super();
},
View
2 templates/Includes/CMSMain_TreeTools.ss
@@ -33,7 +33,7 @@
</div>
<div class="checkboxAboveTree">
- <img id="checkboxActionIndicator" src="cms/images/network-save.gif">
+ <img id="checkboxActionIndicator" src="cms/images/network-save.gif" />
<div>
<input type="checkbox" id="sortitems" />
<label for="sortitems"><% _t('ENABLEDRAGGING','Allow drag &amp; drop reordering', PR_HIGH) %></label>

0 comments on commit 683dfa9

Please sign in to comment.