mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
.field.noborder style, use it in "Insert Media" dialog
This commit is contained in:
parent
7ce9677dcb
commit
3f295adbdd
@ -150,7 +150,7 @@ form.nostyle .middleColumn { margin-left: 0; }
|
||||
form.nostyle input.text, form.nostyle textarea, form.nostyle select, form.nostyle .TreeDropdownField { width: auto; max-width: auto; }
|
||||
|
||||
.field { display: block; border-bottom: 1px solid #d0d3d5; -webkit-box-shadow: 0 1px 0 rgba(245, 245, 245, 0.8); -moz-box-shadow: 0 1px 0 rgba(245, 245, 245, 0.8); box-shadow: 0 1px 0 rgba(245, 245, 245, 0.8); padding: 0 0 7px 0; margin: 8px 0; *zoom: 1; }
|
||||
.field:last-child { border-bottom: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; }
|
||||
.field.noborder, .field:last-child { padding-bottom: 0; border-bottom: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; }
|
||||
.field:after { content: "\0020"; display: block; height: 0; clear: both; overflow: hidden; visibility: hidden; }
|
||||
.field.nolabel .middleColumn { margin-left: 0; }
|
||||
.field.nolabel .description { margin-left: 0; }
|
||||
|
@ -23,12 +23,12 @@ form.nostyle {
|
||||
//overflow: hidden;
|
||||
|
||||
// bottom padding accounts for the border and we have a negative
|
||||
// margin with a postive padding to ensure the bottom border extends
|
||||
// over the edges
|
||||
// margin with a postive padding to ensure the bottom border extends over the edges
|
||||
padding: 0 0 $grid-y - 1 0;
|
||||
margin: $grid-y 0;
|
||||
|
||||
&:last-child {
|
||||
&.noborder, &:last-child {
|
||||
padding-bottom: 0;
|
||||
border-bottom: none;
|
||||
@include box-shadow(none);
|
||||
}
|
||||
@ -37,7 +37,7 @@ form.nostyle {
|
||||
// need to use relative positioning and overflow hidden will not expand
|
||||
// the containing boxes
|
||||
@include legacy-pie-clearfix();
|
||||
|
||||
|
||||
&.nolabel {
|
||||
.middleColumn {
|
||||
margin-left: 0;
|
||||
|
@ -399,7 +399,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
||||
$fromCMS = new CompositeField(
|
||||
new LiteralField('headerSelect',
|
||||
'<h4>'.sprintf($numericLabelTmpl, '1', _t('HtmlEditorField.FindInFolder', 'Find in Folder')).'</h4>'),
|
||||
$select = new TreeDropdownField('ParentID', "", 'Folder'),
|
||||
$select = TreeDropdownField::create('ParentID', "", 'Folder')->addExtraClass('noborder'),
|
||||
$fileField
|
||||
);
|
||||
|
||||
@ -451,7 +451,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
||||
|
||||
$allFields = new CompositeField(
|
||||
$tabSet,
|
||||
new LiteralField('headerEdit', '<h4 class="field header-edit">' . sprintf($numericLabelTmpl, '2',
|
||||
new LiteralField('headerEdit', '<h4 class="field noborder header-edit">' . sprintf($numericLabelTmpl, '2',
|
||||
_t('HtmlEditorField.ADJUSTDETAILSDIMENSIONS', 'Details & dimensions')) . '</h4>'),
|
||||
$editComposite = new CompositeField(
|
||||
new LiteralField('contentEdit', '<div class="content-edit ss-uploadfield-files files"></div>')
|
||||
|
Loading…
x
Reference in New Issue
Block a user