diff --git a/code/DMSSiteTreeExtension.php b/code/DMSSiteTreeExtension.php index 0b12f4e..2fbeab3 100644 --- a/code/DMSSiteTreeExtension.php +++ b/code/DMSSiteTreeExtension.php @@ -8,6 +8,7 @@ class DMSSiteTreeExtension extends DataExtension { function updateCMSFields(FieldList $fields){ //javascript to customize the grid field for the DMS document (overriding entwine in FRAMEWORK_DIR.'/javascript/GridField.js' Requirements::javascript('dms/javascript/DMSGridField.js'); + Requirements::css('dms/css/DMSMainCMS.css'); // Document listing $gridFieldConfig = GridFieldConfig::create()->addComponents( diff --git a/css/DMSDocumentCMSFields.css b/css/DMSDocumentCMSFields.css index 21645ba..9c58b8e 100644 --- a/css/DMSDocumentCMSFields.css +++ b/css/DMSDocumentCMSFields.css @@ -1,8 +1,3 @@ -/* #Root_Documents{ - table{ - white-space:normal; - } -} */ #FileP .fieldgroup-field { width: 100%; } #FileP .fieldgroup-field .cms-file-info-data { width: 400px; } #FileP .fieldgroup-field .fieldholder-small { margin-top: 5px; } @@ -14,7 +9,7 @@ #DocumentTypeID ul li { display: inline-block; padding: 0; width: auto; margin-right: 0; border-radius: 0; border-left: 1px solid #C0C0C2; border-right: 1px solid #f4f4f4; } #DocumentTypeID ul li:first-child { border-radius: 6px 0 0 6px; } #DocumentTypeID ul li:last-child { border-radius: 0 6px 6px 0; border-right: 1px solid #C0C0C2; } -#DocumentTypeID ul li.selected { border-bottom: 1px solid #e9e9e9; border-right: 1px solid #C0C0C2; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #c0c0c0), color-stop(100%, #e6e6e6)); background: -webkit-linear-gradient(#c0c0c0, #e6e6e6); background: -moz-linear-gradient(#c0c0c0, #e6e6e6); background: -o-linear-gradient(#c0c0c0, #e6e6e6); background: -ms-linear-gradient(#c0c0c0, #e6e6e6); background: linear-gradient(#c0c0c0, #e6e6e6); box-shadow: 0 1px 1px 0 #555 inset; } +#DocumentTypeID ul li.selected { border-bottom: 1px solid #C0C0C2; border-right: 1px solid #C0C0C2; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #c0c0c0), color-stop(100%, #e6e6e6)); background: -webkit-linear-gradient(#c0c0c0, #e6e6e6); background: -moz-linear-gradient(#c0c0c0, #e6e6e6); background: -o-linear-gradient(#c0c0c0, #e6e6e6); background: -ms-linear-gradient(#c0c0c0, #e6e6e6); background: linear-gradient(#c0c0c0, #e6e6e6); box-shadow: 0 1px 1px 0 #555 inset; } #DocumentTypeID ul li.selected :after { box-shadow: 0 1px 1px 0 #DDD; } #DocumentTypeID ul li label { padding: .4em 1em; display: block; line-height: 1.4; } diff --git a/css/DMSMainCMS.css b/css/DMSMainCMS.css new file mode 100644 index 0000000..82c5823 --- /dev/null +++ b/css/DMSMainCMS.css @@ -0,0 +1,5 @@ +#Root_Documents table { white-space: normal; } +#Root_Documents table th.col-action_SetOrderTitle, #Root_Documents table th.col-FilenameWithoutID { width: 300px; } +#Root_Documents table td { white-space: normal; } +#Root_Documents table td.col-buttons { white-space: nowrap; } +#Root_Documents table td.col-buttons .dms-delete-link-only .ui-icon { background: url(../images/chain-unchain.png) no-repeat; } diff --git a/images/chain-unchain.png b/images/chain-unchain.png new file mode 100755 index 0000000..c56c8d8 Binary files /dev/null and b/images/chain-unchain.png differ diff --git a/scss/DMSDocumentCMSFields.scss b/scss/DMSDocumentCMSFields.scss index bb2a3a6..29a7d4b 100644 --- a/scss/DMSDocumentCMSFields.scss +++ b/scss/DMSDocumentCMSFields.scss @@ -1,8 +1,3 @@ -/* #Root_Documents{ - table{ - white-space:normal; - } -} */ @import "compass/css3"; @@ -54,7 +49,7 @@ $color-button-generic: #e6e6e6 !default; border-right: 1px solid #C0C0C2; } &.selected{ - border-bottom:1px solid lighten($color-button-generic, 1%); + border-bottom:1px solid #C0C0C2; border-right: 1px solid #C0C0C2; @include background( linear-gradient(color-stops( diff --git a/scss/DMSMainCMS.scss b/scss/DMSMainCMS.scss new file mode 100644 index 0000000..7be1f55 --- /dev/null +++ b/scss/DMSMainCMS.scss @@ -0,0 +1,23 @@ +//data-icon="cross-circle" + +#Root_Documents{ + table{ + white-space:normal; + th{ + &.col-action_SetOrderTitle, &.col-FilenameWithoutID{ + width: 300px; + } + } + td{ + white-space:normal; + } + td.col-buttons{ + white-space:nowrap; + .dms-delete-link-only{ + .ui-icon{ + background: url(../images/chain-unchain.png) no-repeat; + } + } + } + } +}