Ticket #1498 - refactored the button css, it's now in layout.css instead of multiple files

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44326 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2007-11-06 02:53:40 +00:00
parent 70f964f4fb
commit a2d59ee1c7
6 changed files with 76 additions and 114 deletions

View File

@ -279,7 +279,7 @@ HTML;
"</div> "</div>
<div id=\"UnusedThumbnails\"> <div id=\"UnusedThumbnails\">
<h2>"._t('AssetAdmin.UNUSEDTHUMBNAILSTITLE', 'Unused thumbnails')."</h2> <h2>"._t('AssetAdmin.UNUSEDTHUMBNAILSTITLE', 'Unused thumbnails')."</h2>
<button>"._t('AssetAdmin.DELETEUNUSEDTHUMBNAILS', 'Delete unused thumbnails')."</button> <button class=\"action\">"._t('AssetAdmin.DELETEUNUSEDTHUMBNAILS', 'Delete unused thumbnails')."</button>
</div>" </div>"
) )
) )

View File

@ -138,7 +138,7 @@ class CommentTableField extends ComplexTableField {
new HiddenField('CommentFieldName','',$this->name) new HiddenField('CommentFieldName','',$this->name)
); );
$actionFields = new LiteralField('CommentFilterButton','<input type="submit" name="CommentFilterButton" value="Filter" id="CommentFilterButton"/>'); $actionFields = new LiteralField('CommentFilterButton','<input type="submit" class="action" name="CommentFilterButton" value="Filter" id="CommentFilterButton"/>');
$fieldContainer = new FieldGroup( $fieldContainer = new FieldGroup(
$searchFields, $searchFields,

View File

@ -216,7 +216,7 @@ class MemberTableField extends ComplexTableField {
} }
$groupFields = new DropdownField('MemberGroup','Filter by group',$groupArray ); $groupFields = new DropdownField('MemberGroup','Filter by group',$groupArray );
$actionFields = new LiteralField('MemberFilterButton','<input type="submit" name="MemberFilterButton" value="Filter" id="MemberFilterButton"/>'); $actionFields = new LiteralField('MemberFilterButton','<input type="submit" class="action" name="MemberFilterButton" value="Filter" id="MemberFilterButton"/>');
$fieldContainer = new FieldGroup( $fieldContainer = new FieldGroup(
$searchFields, $searchFields,

View File

@ -1,37 +1,3 @@
#TreeActions {
background: #eee;
border-bottom: 1px solid #ccc;
float: left;
width: 100%;
}
#TreeActions li {
float: left;
}
#TreeActions li button {
cursor: pointer;
float: left;
background-image: url(../images/textures/ToolBar.png);
color: #333;
overflow: visible;
width: auto;
margin: 1px;
border-color: #ccc rgb(153, 153, 153) rgb(153, 153, 153) rgb(204, 204, 204);
border-style: double;
font-weight: bold;
font-size: 11px;
}
#TreeActions li button:active {
background: #F4F4F4 none repeat scroll 0%;
border-color: #999 rgb(204, 204, 204) rgb(204, 204, 204) rgb(153, 153, 153);
}
#TreeActions li button:hover {
background: #fff;
}
#TreeActions li.selected,
#TreeActions li.action:hover {
background: #ccc;
}
#left form.actionparams { #left form.actionparams {
background: #ccc; background: #ccc;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;

View File

@ -129,83 +129,6 @@
width: auto; width: auto;
} }
/**
* Actions/Buttons
*/
.ajaxActions {
position: absolute;
bottom: 5px;
right: 15px;
text-align: right;
}
.ajaxActions input,
#MemberFilterButton,
#CommentFilterButton,
.actions input,
#deletemarked input.action,
#UnusedThumbnails button,
div.Actions input,
.actionparams input.action {
cursor: pointer;
float: left;
height: 25px;
background-image: url(../images/textures/ToolBar.png);
padding-left: 10px;
padding-right: 10px;
color: #333;
overflow: visible;
width: auto;
border-color: #CCCCCC rgb(153, 153, 153) rgb(153, 153, 153) rgb(204, 204, 204);
border-style: double;
margin: 1px;
font-weight: bold;
font-size: 11px;
}
#MemberFilterButton,
#CommentFilterButton,
#deletemarked input.action,
.actions input,
.actionparams input.action {
float: none;
}
.actionparams input.action {
padding: 0;
height: auto;
}
#deletemarked {
text-align: right;
}
#deletemarked span {
background: none;
}
.ajaxActions input:active {
background: #F4F4F4 none repeat scroll 0%;
border-color: #999999 rgb(204, 204, 204) rgb(204, 204, 204) rgb(153, 153, 153);
}
.ajaxActions input:hover,
div.Actions input:hover,
.actionparams input[type="submit"]:hover {
background: #fff;
}
input.delete:hover,
#deletemarked input.delete:hover,
#UnusedThumbnails button:hover,
.actionparams input.delete:hover {
background: #ce0000;
color: #fff;
}
input.loading {
padding-left: 16px;
background: #fff url(../images/network-save.gif) no-repeat center left;
}
/** /**
* Tabs * Tabs
*/ */

View File

@ -14,6 +14,79 @@ body {
height: 100%; height: 100%;
background: #ccdef3; background: #ccdef3;
} }
/**
* Actions/Buttons
*/
.ajaxActions {
position: absolute;
bottom: 5px;
right: 15px;
text-align: right;
}
#TreeActions {
background: #eee;
border-bottom: 1px solid #ccc;
float: left;
width: 100%;
}
#TreeActions li {
float: left;
}
.ajaxActions input,
.actions input,
button.action,
div.Actions input,
input.action,
li.action input,
li.action button {
cursor: pointer;
background-image: url(../images/textures/ToolBar.png);
color: #333;
overflow: visible;
width: auto;
border-color: #CCCCCC rgb(153, 153, 153) rgb(153, 153, 153) rgb(204, 204, 204);
border-style: double;
margin: 1px;
padding: 2px;
font-size: 11px;
}
.ajaxActions input,
#TreeActions li.action input {
float: left;
height: 25px;
padding: 0 10px;
font-weight: bold;
}
#TreeActions li.action input {
font-weight: normal;
}
.ajaxActions input:active {
background: #F4F4F4 none repeat scroll 0%;
border-color: #999999 rgb(204, 204, 204) rgb(204, 204, 204) rgb(153, 153, 153);
}
.ajaxActions input:hover,
div.Actions input:hover,
input.action:hover,
button.action:hover,
li.action input:hover,
li.action button:hover {
background: #fff;
}
input.delete:hover,
button.delete:hover,
.actionparams input.delete:hover {
background: #ce0000;
color: #fff;
}
input.loading {
padding-left: 16px;
background: #fff url(../images/network-save.gif) no-repeat center left;
}
/* Overrides - TODO Find a better place to put them */ /* Overrides - TODO Find a better place to put them */
form#Form_EditForm fieldset { form#Form_EditForm fieldset {