From ac4509776cee81bdaf9ea57f04cd7a4f05dc3426 Mon Sep 17 00:00:00 2001 From: Daniel Caine Date: Thu, 23 Apr 2015 15:14:43 +1200 Subject: [PATCH 1/2] included icon for move button, ensured link is 100% width --- css/categories-tags.css | 0 css/cms.css | 9 +++++++++ images/move-icon.png | Bin 0 -> 1677 bytes scss/categories-tags.scss | 0 scss/cms.scss | 16 ++++++++++++++++ 5 files changed, 25 insertions(+) create mode 100644 css/categories-tags.css create mode 100644 images/move-icon.png create mode 100644 scss/categories-tags.scss diff --git a/css/categories-tags.css b/css/categories-tags.css new file mode 100644 index 0000000..e69de29 diff --git a/css/cms.css b/css/cms.css index 5ec2f5a..f5a0304 100755 --- a/css/cms.css +++ b/css/cms.css @@ -133,3 +133,12 @@ label.right.toggle-description-correct-right { .cms-preview-controls { z-index: 999; } + +#Form_EditForm_Categories .MergeActionReveal:after, +#Form_EditForm_Tags .MergeActionReveal:after { + content: ''; + background: url("../images/move-icon.png"); + display: block; + height: 16px; + width: 16px; +} diff --git a/images/move-icon.png b/images/move-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..eac4f24c297d32afb197aa64ef3f3703128a1fc8 GIT binary patch literal 1677 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+m^Cs(B1$5BeXNr6bM+EIYV;~{3xK*A7;Nk-3KEmEQ%e+* zQqwc@Y?a>c-mj#PnPRIHZt82`Ti~3Uk?B!Ylp0*+7m{3+ootz+WN)WnQ(*-(AUCxn zQK2F?C$HG5!d3}vt`(3C64qBz04piUwpD^SD#ABF!8yMuRl!uxOgGuU&_u!9QqR!T z%-qskN5Kfl*Eg`xH!{#Qu(UEYwlXkMfC43;ZAB?*RzWUqP`iLUTcwPWk^(Dz{qpj1 zy>er{{GxPyLrY6beFGzXBO_g)3fZE`@j@w*YQzUNJP7fB~jokyxN_sAmB35=^15FMg%Dxp39RB|)hO_hL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++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/code/admin/GridFieldMergeAction.php b/code/admin/GridFieldMergeAction.php index 2c25153..3f4c012 100644 --- a/code/admin/GridFieldMergeAction.php +++ b/code/admin/GridFieldMergeAction.php @@ -101,7 +101,7 @@ class GridFieldMergeAction implements GridField_ColumnProvider, GridField_Action * {@inheritdoc} */ public function getColumnMetadata($gridField, $columnName) { - return array('title' => 'Move Posts To'); + return array('title' => 'Move posts to'); } /** diff --git a/css/cms.css b/css/cms.css index f5a0304..8703f26 100755 --- a/css/cms.css +++ b/css/cms.css @@ -134,11 +134,16 @@ label.right.toggle-description-correct-right { z-index: 999; } +#Form_EditForm_Categories .MergeActionReveal, +#Form_EditForm_Tags .MergeActionReveal { + margin-left: 10px; +} #Form_EditForm_Categories .MergeActionReveal:after, #Form_EditForm_Tags .MergeActionReveal:after { content: ''; background: url("../images/move-icon.png"); - display: block; + display: inline-block; height: 16px; width: 16px; + margin-left: 4px; } diff --git a/scss/cms.scss b/scss/cms.scss index 8c2a082..2fa2775 100755 --- a/scss/cms.scss +++ b/scss/cms.scss @@ -172,11 +172,16 @@ label.right.toggle-description-correct-right { #Form_EditForm_Tags { // ID to be changed for a .class once a developer adds one one to the parent of both IDs + .MergeActionReveal { + margin-left: 10px; + } + .MergeActionReveal:after { content: ''; background: url('../images/move-icon.png'); - display: block; + display: inline-block; height: 16px; width: 16px; + margin-left: 4px; } }