From c26738611d4eec5f6656b85b46dbfa8b139662dd Mon Sep 17 00:00:00 2001 From: mattab Date: Fri, 30 Sep 2016 15:28:11 +1300 Subject: [PATCH] Remove the "Segment editor was crowdfunded" link on hover, to keep things simpler --- .../stylesheets/general/_typography.less | 8 -------- .../Morpheus/stylesheets/ui/_components.less | 3 --- .../SegmentEditor/javascripts/Segmentation.js | 10 ---------- .../SegmentEditor/stylesheets/segmentation.less | 17 ----------------- .../templates/_segmentSelector.twig | 1 - 5 files changed, 39 deletions(-) diff --git a/plugins/Morpheus/stylesheets/general/_typography.less b/plugins/Morpheus/stylesheets/general/_typography.less index 66b2dddeb45..710174ddef4 100644 --- a/plugins/Morpheus/stylesheets/general/_typography.less +++ b/plugins/Morpheus/stylesheets/general/_typography.less @@ -72,14 +72,6 @@ a { color: @theme-color-link !important; } -.segmentFooterNote { - margin-top: -3px; - font-family: @theme-fontFamily-base !important; - a { - color: @theme-color-link !important; - } -} - body > a.ddmetric { background-color: @color-gray-light !important; border-color: @color-gray !important; diff --git a/plugins/Morpheus/stylesheets/ui/_components.less b/plugins/Morpheus/stylesheets/ui/_components.less index c8ff4a3e706..9116ef17f00 100644 --- a/plugins/Morpheus/stylesheets/ui/_components.less +++ b/plugins/Morpheus/stylesheets/ui/_components.less @@ -140,9 +140,6 @@ a.delete { color: @theme-color-brand; } - .segmentFooterNote, .segment-element .segment-footer .segmentFooterNote a { - color: @theme-color-text-light; - } } } diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js index 812daeb2e17..66a5e3480a6 100644 --- a/plugins/SegmentEditor/javascripts/Segmentation.js +++ b/plugins/SegmentEditor/javascripts/Segmentation.js @@ -592,10 +592,6 @@ Segmentation = (function($) { // segment editor form events // - self.target.on('click', ".segment-element a:not(.crowdfundingLink)", function (e) { - e.preventDefault(); - }); - self.target.on('click', "a.editSegmentName", function (e) { var oldName = $(e.currentTarget).parents("h3").find("span").text(); $(e.currentTarget).parents("h3").find("span").hide(); @@ -1033,12 +1029,6 @@ Segmentation = (function($) { parseFormAndSave(); }); - $(self.form).find('.segment-footer').hover( function() { - $('.segmentFooterNote', self.target).fadeIn(); - }, function() { - $('.segmentFooterNote', self.target).fadeOut(); - }); - if(typeof mode !== "undefined" && mode == "new") { $(self.form).find(".editSegmentName").trigger('click'); diff --git a/plugins/SegmentEditor/stylesheets/segmentation.less b/plugins/SegmentEditor/stylesheets/segmentation.less index f10f0678562..9b5dc195bce 100644 --- a/plugins/SegmentEditor/stylesheets/segmentation.less +++ b/plugins/SegmentEditor/stylesheets/segmentation.less @@ -5,23 +5,6 @@ } -.segment-footer .segmentFooterNote { - display: none; - float: left; - padding-top: 9px; -} - -.segment-footer .segmentFooterNote, .segment-element .segment-footer .segmentFooterNote a { - font-size: 8pt; - color: #888172; -} - -.segment-element .segment-footer .segmentFooterNote a { - padding: 0; - margin: 0; - text-decoration: underline; -} - .searchFound { border: 0px solid red; } diff --git a/plugins/SegmentEditor/templates/_segmentSelector.twig b/plugins/SegmentEditor/templates/_segmentSelector.twig index 4a8d35c9f3d..02bd3629476 100644 --- a/plugins/SegmentEditor/templates/_segmentSelector.twig +++ b/plugins/SegmentEditor/templates/_segmentSelector.twig @@ -156,7 +156,6 @@