diff --git a/administrator/components/com_media/views/images/tmpl/default.php b/administrator/components/com_media/views/images/tmpl/default.php index 043bb34a6b98a..87f05fe4832db 100644 --- a/administrator/components/com_media/views/images/tmpl/default.php +++ b/administrator/components/com_media/views/images/tmpl/default.php @@ -65,28 +65,30 @@ ?>
-
+
-
-
+
+
- +
folderList; ?>
-
- - +
+
+ + +
@@ -95,7 +97,7 @@
-
+
@@ -103,7 +105,12 @@
- state->get('field.id')) : ?> +
+
+ + state->get('field.id')) : ?> +
+
@@ -117,9 +124,7 @@
- -
- state->get('field.id')) : ?> +
@@ -161,13 +166,11 @@
- - -
+ authorise('core.create', 'com_media')) : ?> diff --git a/administrator/components/com_media/views/imageslist/tmpl/default.php b/administrator/components/com_media/views/imageslist/tmpl/default.php index 19e73a61fe18f..caae4ea9bd2b3 100644 --- a/administrator/components/com_media/views/imageslist/tmpl/default.php +++ b/administrator/components/com_media/views/imageslist/tmpl/default.php @@ -27,7 +27,6 @@ @media (max-width: 767px) { li.imgOutline.thumbnail.height-80.width-80.center { float: right; - margin-right: 15px; } } ' @@ -40,7 +39,6 @@ @media (max-width: 767px) { li.imgOutline.thumbnail.height-80.width-80.center { float: left; - margin-left: 15px; } } ' diff --git a/administrator/templates/isis/css/template-rtl.css b/administrator/templates/isis/css/template-rtl.css index 813fd6c54b0f0..bcd2b9f8a8154 100644 --- a/administrator/templates/isis/css/template-rtl.css +++ b/administrator/templates/isis/css/template-rtl.css @@ -7766,15 +7766,9 @@ ul.manager .height-50 .icon-folder-2 { line-height: 35px; font-size: 30px; } -#imageForm { - margin: -25px 0 0; -} #imageForm .well { margin-bottom: 5px; } -.thumbnails-media { - margin-left: 0; -} .thumbnails-media .thumbnail { background-color: #f4f4f4; border-radius: 3px; @@ -7783,8 +7777,7 @@ ul.manager .height-50 .icon-folder-2 { padding: 0px; height: 100px; width: 100px; - margin: 8px 16px; - margin-left: 0 !important; + margin: 8px; position: relative; text-align: center; overflow: hidden; @@ -7969,6 +7962,7 @@ ul.manager .height-50 .icon-folder-2 { } #mediamanager-form { margin: 0 -10px; + overflow-x: hidden; } #mediamanager-form > .muted { padding: 0px; @@ -7980,10 +7974,14 @@ ul.manager .height-50 .icon-folder-2 { #mediamanager-form .checkbox input { margin-top: 3px; } +#mediamanager-form .thumbnails { + margin: 0 -8px; + overflow-x: hidden; +} #mediamanager-form .thumbnails .thumbnail { height: 120px; width: 120px; - margin: 0 18px 18px 0; + margin: 8px; } #mediamanager-form .thumbnails .imgThumb label, #mediamanager-form .thumbnails .imgTotal { @@ -8047,6 +8045,7 @@ body.modal-open { padding: 0; width: 100%; height: auto; + max-height: none; } .modal-body .container-fluid { padding-top: 15px; @@ -8065,7 +8064,10 @@ body.modal-open { } } .container-popup { - padding: 28px 10px 10px 10px; + padding: 10px; +} +.field-media-wrapper iframe { + max-height: 75vh; } body .navbar, body .navbar-fixed-top { diff --git a/administrator/templates/isis/css/template.css b/administrator/templates/isis/css/template.css index d385ac7ca0409..c04c1a83a2bd6 100644 --- a/administrator/templates/isis/css/template.css +++ b/administrator/templates/isis/css/template.css @@ -7766,15 +7766,9 @@ ul.manager .height-50 .icon-folder-2 { line-height: 35px; font-size: 30px; } -#imageForm { - margin: -25px 0 0; -} #imageForm .well { margin-bottom: 5px; } -.thumbnails-media { - margin-left: 0; -} .thumbnails-media .thumbnail { background-color: #f4f4f4; border-radius: 3px; @@ -7783,8 +7777,7 @@ ul.manager .height-50 .icon-folder-2 { padding: 0px; height: 100px; width: 100px; - margin: 8px 16px; - margin-left: 0 !important; + margin: 8px; position: relative; text-align: center; overflow: hidden; @@ -7969,6 +7962,7 @@ ul.manager .height-50 .icon-folder-2 { } #mediamanager-form { margin: 0 -10px; + overflow-x: hidden; } #mediamanager-form > .muted { padding: 0px; @@ -7980,10 +7974,14 @@ ul.manager .height-50 .icon-folder-2 { #mediamanager-form .checkbox input { margin-top: 3px; } +#mediamanager-form .thumbnails { + margin: 0 -8px; + overflow-x: hidden; +} #mediamanager-form .thumbnails .thumbnail { height: 120px; width: 120px; - margin: 0 18px 18px 0; + margin: 8px; } #mediamanager-form .thumbnails .imgThumb label, #mediamanager-form .thumbnails .imgTotal { @@ -8047,6 +8045,7 @@ body.modal-open { padding: 0; width: 100%; height: auto; + max-height: none; } .modal-body .container-fluid { padding-top: 15px; @@ -8065,7 +8064,10 @@ body.modal-open { } } .container-popup { - padding: 28px 10px 10px 10px; + padding: 10px; +} +.field-media-wrapper iframe { + max-height: 75vh; } body .navbar, body .navbar-fixed-top { diff --git a/administrator/templates/isis/html/layouts/joomla/form/field/media.php b/administrator/templates/isis/html/layouts/joomla/form/field/media.php index 7aae95b749d3b..31e095b23dfc8 100644 --- a/administrator/templates/isis/html/layouts/joomla/form/field/media.php +++ b/administrator/templates/isis/html/layouts/joomla/form/field/media.php @@ -93,7 +93,7 @@ data-url="" data-modal=".modal" data-modal-width="100%" - data-modal-height="400px" + data-modal-height="645px" data-input=".field-media-input" data-button-select=".button-select" data-button-clear=".button-clear" @@ -112,7 +112,6 @@ array( 'title' => JText::_('JLIB_FORM_CHANGE_IMAGE'), 'closeButton' => true, - 'footer' => '', ) ); diff --git a/administrator/templates/isis/less/blocks/_media.less b/administrator/templates/isis/less/blocks/_media.less index 8154a7c527117..a36cb26c4326a 100644 --- a/administrator/templates/isis/less/blocks/_media.less +++ b/administrator/templates/isis/less/blocks/_media.less @@ -9,14 +9,12 @@ ul.manager .height-50 .icon-folder-2 { } #imageForm { - margin: -25px 0 0; .well { margin-bottom: 5px; } } .thumbnails-media { @thumbSize:100px; - margin-left: 0; .thumbnail { background-color: #f4f4f4; border-radius: @inputBorderRadius; @@ -25,8 +23,7 @@ ul.manager .height-50 .icon-folder-2 { padding: 0px; height: @thumbSize; width: @thumbSize; - margin: 8px 16px; - margin-left: 0 !important; + margin: 8px; position: relative; text-align: center; overflow: hidden; @@ -203,6 +200,7 @@ ul.manager .height-50 .icon-folder-2 { } #mediamanager-form { margin: 0 -10px; + overflow-x: hidden; > .muted { padding: 0px; } @@ -214,10 +212,12 @@ ul.manager .height-50 .icon-folder-2 { } } .thumbnails { + margin: 0 -8px; + overflow-x: hidden; .thumbnail { height: 120px; width: 120px; - margin: 0 18px 18px 0; + margin: 8px } .imgThumb label, .imgTotal { line-height: 120px; diff --git a/administrator/templates/isis/less/blocks/_modals.less b/administrator/templates/isis/less/blocks/_modals.less index 18c3e3ea24395..f4e57c43ab674 100644 --- a/administrator/templates/isis/less/blocks/_modals.less +++ b/administrator/templates/isis/less/blocks/_modals.less @@ -25,6 +25,7 @@ body.modal-open { padding: 0; width: 100%; height: auto; + max-height: none; .container-fluid { padding-top: 15px; padding-bottom: 15px; @@ -46,7 +47,12 @@ body.modal-open { } } -/* Component pop-up */ +// Component pop-up .container-popup { - padding: 28px 10px 10px 10px; + padding: 10px; +} + +// Media modal +.field-media-wrapper iframe { + max-height: 75vh; } \ No newline at end of file diff --git a/media/media/css/popup-imagelist.css b/media/media/css/popup-imagelist.css index ce6595ca00df3..b48319fa4b751 100644 --- a/media/media/css/popup-imagelist.css +++ b/media/media/css/popup-imagelist.css @@ -3,6 +3,11 @@ * @license GNU General Public License version 2 or later; see LICENSE.txt */ +.contentpane { + padding: 0 !important; + overflow-x: hidden; +} + .item { float: left; border: 1px solid #ccc !important; @@ -64,7 +69,7 @@ html>body .item img { } .thumbnails.thumbnails-media { - margin-left: 0; + margin: 0 -8px; } .thumbnails-media .thumbnail { background-color: #f4f4f4; @@ -74,8 +79,7 @@ html>body .item img { padding: 0px; height: 100px; width: 100px; - margin: 8px 16px; - margin-left: 0 !important; + margin: 8px; position: relative; text-align: center; overflow: hidden; diff --git a/media/media/css/popup-imagemanager.css b/media/media/css/popup-imagemanager.css index ee00da18f9c9f..8f17f95f59745 100644 --- a/media/media/css/popup-imagemanager.css +++ b/media/media/css/popup-imagemanager.css @@ -3,6 +3,17 @@ * @license GNU General Public License version 2 or later; see LICENSE.txt */ +@media only screen and (min-width: 768px) { + #imageForm .control-group, + #uploadform .control-group { + margin-bottom: 0; + } +} + +#uploadform.well { + margin-bottom: -26px; +} + img { border: 0 none; } @@ -25,14 +36,13 @@ button:hover { iframe { width: 100%; - overflow-x: false; border: 0 none; margin: 0 0 0.5em 0; padding: 0; } iframe#imageframe { - height: 200px; + height: 350px; } a:hover {