mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Alignment of http label in insert media
This commit is contained in:
parent
4aa4cd2c28
commit
f01c1640c7
@ -545,11 +545,11 @@ body.cms-dialog { overflow: auto; background: url("../images/textures/bg_cms_mai
|
|||||||
/** -------------------------------------------- "Insert X" forms -------------------------------------------- */
|
/** -------------------------------------------- "Insert X" forms -------------------------------------------- */
|
||||||
.htmleditorfield-dialog.ui-dialog-content { padding: 0; position: relative; }
|
.htmleditorfield-dialog.ui-dialog-content { padding: 0; position: relative; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb .CompositeField { overflow: hidden; *zoom: 1; }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb .CompositeField { overflow: hidden; *zoom: 1; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb #RemoteURL { border: none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; width: 55%; float: left; position: relative; }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb #RemoteURL { border: none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; width: 55%; max-width: 512px; float: left; position: relative; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb #RemoteURL label { position: absolute; left: 8px; top: 0px; font-weight: normal; color: #888; }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb #RemoteURL label { position: absolute; left: 8px; top: 13px; font-weight: normal; color: #888; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb #RemoteURL .middleColumn { margin-left: 0; }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb #RemoteURL .middleColumn { margin-left: 0; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb #RemoteURL input.remoteurl { padding-left: 40px; }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb #RemoteURL input.remoteurl { padding-left: 40px; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url { padding-top: 15px; overflow: hidden; *zoom: 1; border: none; background: none; opacity: 0.8; cursor: hand; }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url { margin-top: 13px; padding-top: 15px; overflow: hidden; *zoom: 1; border: none; background: none; opacity: 0.8; cursor: hand; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url .btn-icon-addMedia { width: 20px; height: 20px; }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url .btn-icon-addMedia { width: 20px; height: 20px; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url:hover, .htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url:active { border: none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; opacity: 1; }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url:hover, .htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url:active { border: none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; opacity: 1; }
|
||||||
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url.ui-state-disabled, .htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url.ui-state-disabled:hover, .htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url.ui-state-disabled:active { opacity: 0.35; filter: Alpha(Opacity=35); }
|
.htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url.ui-state-disabled, .htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url.ui-state-disabled:hover, .htmleditorfield-dialog #MediaFormInsertMediaTabs_Fromtheweb button.add-url.ui-state-disabled:active { opacity: 0.35; filter: Alpha(Opacity=35); }
|
||||||
@ -571,6 +571,12 @@ body.cms-dialog { overflow: auto; background: url("../images/textures/bg_cms_mai
|
|||||||
.htmleditorfield-linkform .step2 { margin-bottom: 16px; }
|
.htmleditorfield-linkform .step2 { margin-bottom: 16px; }
|
||||||
|
|
||||||
.htmleditorfield-mediaform .ss-gridfield tbody td:first-child img { max-height: 30px; }
|
.htmleditorfield-mediaform .ss-gridfield tbody td:first-child img { max-height: 30px; }
|
||||||
|
.htmleditorfield-mediaform .ss-uploadfield.from-web, .htmleditorfield-mediaform .ss-uploadfield.from-CMS { margin-bottom: 48px; }
|
||||||
|
.htmleditorfield-mediaform .ss-uploadfield.from-web .middleColumn, .htmleditorfield-mediaform .ss-uploadfield.from-CMS .middleColumn { width: auto; background: none; border: none; margin-top: 13px; }
|
||||||
|
.htmleditorfield-mediaform .ss-uploadfield.from-CMS { margin-top: 33px; }
|
||||||
|
.htmleditorfield-mediaform .ss-uploadfield.from-CMS h4 { margin-top: 3px; }
|
||||||
|
.htmleditorfield-mediaform .ss-uploadfield.from-CMS .middleColumn { margin-top: 0; }
|
||||||
|
.htmleditorfield-mediaform .ss-uploadfield.from-CMS .middleColumn .TreeDropdownField { margin-top: 23px; }
|
||||||
.htmleditorfield-mediaform .ss-uploadfield-editandorganize { display: none; }
|
.htmleditorfield-mediaform .ss-uploadfield-editandorganize { display: none; }
|
||||||
|
|
||||||
/** -------------------------------------------- Search forms (used in AssetAdmin, ModelAdmin, etc) -------------------------------------------- */
|
/** -------------------------------------------- Search forms (used in AssetAdmin, ModelAdmin, etc) -------------------------------------------- */
|
||||||
|
@ -1448,13 +1448,14 @@ body.cms-dialog {
|
|||||||
border:none;
|
border:none;
|
||||||
@include box-shadow-none;
|
@include box-shadow-none;
|
||||||
width:55%;
|
width:55%;
|
||||||
|
max-width:512px;
|
||||||
float:left;
|
float:left;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
top: 0px;
|
top: 13px;
|
||||||
font-weight: normal; color: #888;
|
font-weight: normal; color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1467,6 +1468,7 @@ body.cms-dialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
button.add-url{
|
button.add-url{
|
||||||
|
margin-top:13px;
|
||||||
padding-top:15px;
|
padding-top:15px;
|
||||||
@include clearfix;
|
@include clearfix;
|
||||||
border:none;
|
border:none;
|
||||||
@ -1577,6 +1579,32 @@ body.cms-dialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ss-uploadfield{
|
||||||
|
&.from-web, &.from-CMS{
|
||||||
|
margin-bottom:48px;
|
||||||
|
.middleColumn {
|
||||||
|
width:auto;
|
||||||
|
background:none;
|
||||||
|
border:none;
|
||||||
|
margin-top:13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.from-CMS{
|
||||||
|
margin-top:33px;
|
||||||
|
h4{
|
||||||
|
margin-top:3px;
|
||||||
|
}
|
||||||
|
.middleColumn {
|
||||||
|
margin-top:0;
|
||||||
|
.TreeDropdownField{
|
||||||
|
margin-top:23px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.ss-uploadfield-editandorganize {
|
.ss-uploadfield-editandorganize {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -380,22 +380,23 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
|||||||
$numericLabelTmpl = '<span class="step-label"><span class="flyout">%d</span><span class="arrow"></span><strong class="title">%s</strong></span>';
|
$numericLabelTmpl = '<span class="step-label"><span class="flyout">%d</span><span class="arrow"></span><strong class="title">%s</strong></span>';
|
||||||
|
|
||||||
$fromCMS = new CompositeField(
|
$fromCMS = new CompositeField(
|
||||||
new LiteralField('headerSelect', '<h4 class="field header-select">' . sprintf($numericLabelTmpl, '1', _t('HtmlEditorField.Find', 'Find')) . '</h4>'),
|
new LiteralField('headerSelect', '<h4>' . sprintf($numericLabelTmpl, '1', _t('HtmlEditorField.FindInFolder', 'Find in Folder')) . '</h4>'),
|
||||||
$selectComposite = new CompositeField(
|
$select = new TreeDropdownField('ParentID', "", 'Folder'),
|
||||||
new TreeDropdownField('ParentID', _t('HtmlEditorField.FOLDER', 'Folder'), 'Folder'),
|
|
||||||
$fileField
|
$fileField
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$fromCMS->addExtraClass('content');
|
$fromCMS->addExtraClass('content ss-uploadfield from-CMS');
|
||||||
$selectComposite->addExtraClass('content-select');
|
$select->addExtraClass('content-select');
|
||||||
|
|
||||||
|
|
||||||
$fromWeb = new CompositeField(
|
$fromWeb = new CompositeField(
|
||||||
new LiteralField('headerURL', '<h4 class="field header-url">' . sprintf($numericLabelTmpl, '1', _t('HtmlEditorField.ADDURL', 'Add URL')) . '</h4>'),
|
new LiteralField('headerURL', '<h4>' . sprintf($numericLabelTmpl, '1', _t('HtmlEditorField.ADDURL', 'Add URL')) . '</h4>'),
|
||||||
$remoteURL = new TextField('RemoteURL', 'http://'),
|
$remoteURL = new TextField('RemoteURL', 'http://'),
|
||||||
new LiteralField('addURLImage', '<button class="action ui-action-constructive ui-button field add-url" data-icon="addMedia"></button>')
|
new LiteralField('addURLImage', '<button class="action ui-action-constructive ui-button field add-url" data-icon="addMedia"></button>')
|
||||||
);
|
);
|
||||||
|
|
||||||
$remoteURL->addExtraClass('remoteurl');
|
$remoteURL->addExtraClass('remoteurl');
|
||||||
|
$fromWeb->addExtraClass('content ss-uploadfield from-web');
|
||||||
|
|
||||||
Requirements::css(FRAMEWORK_DIR . '/css/AssetUploadField.css');
|
Requirements::css(FRAMEWORK_DIR . '/css/AssetUploadField.css');
|
||||||
$computerUploadField = Object::create('UploadField', 'AssetUploadField', '');
|
$computerUploadField = Object::create('UploadField', 'AssetUploadField', '');
|
||||||
|
Loading…
Reference in New Issue
Block a user