diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index b13ffff9..a11b6048 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -602,41 +602,3 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS } module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", "$tgTemplate", WatchersLightboxDirective]) - -############################################################################# -## Notion Lightbox Directive -############################################################################# - -# Lightbox -NotionLightboxDirective = (lightboxService) -> - link = ($scope, $el, $attrs, $model) -> - $scope.$on "notion:open", (event, lightboxId) -> - if $el.attr("id") == lightboxId - lightboxService.open($el) - - $el.on "click", ".button-green", (event) -> - lightboxService.close($el) - - $scope.$on "$destroy", -> - $el.off() - - return {link:link} - -module.directive("tgLbNotion", ["lightboxService", NotionLightboxDirective]) - - -# Button -NotionButtonDirective = ($log, $rootScope) -> - link = ($scope, $el, $attrs, $model) -> - if not $attrs.tgLbNotionButton? - return $log.error "NotionButtonDirective: the directive need the id of the notion lightbox" - - $el.on "click", -> - $rootScope.$broadcast("notion:open", $attrs.tgLbNotionButton) - - $scope.$on "$destroy", -> - $el.off() - - return {link:link} - -module.directive("tgLbNotionButton", ["$log", "$rootScope", NotionButtonDirective]) diff --git a/app/partials/includes/components/help-notion-button.jade b/app/partials/includes/components/help-notion-button.jade deleted file mode 100644 index 510a7fbd..00000000 --- a/app/partials/includes/components/help-notion-button.jade +++ /dev/null @@ -1,12 +0,0 @@ -//- NOTE: - Add a lightbox-notion at the end of parent template. Ex: -//- -//- div.hide.lightbox.lightbox-generic-notion(id="notion-admin-project-values-us-points", -//- tg-lb-notion) -//- include views/modules/help-notions/lightbox-notion-admin-project-values-us-points -//- -//- - Defined variable 'helpLightboxId' in parent template. Ex: -//- -//- - var helpLightboxId = "admin-project-values-us-points" -//- include views/components/help - -a.icon.icon-idea.help(href="", title="You need some help?", tg-lb-notion-button=helpLightboxId) diff --git a/app/partials/includes/modules/help-notions/lightbox-generic-notion.jade b/app/partials/includes/modules/help-notions/lightbox-generic-notion.jade deleted file mode 100644 index 1c312656..00000000 --- a/app/partials/includes/modules/help-notions/lightbox-generic-notion.jade +++ /dev/null @@ -1,12 +0,0 @@ -a.close(href="", title="close") - span.icon.icon-delete - -section - h2.title - block title - - block content - - div.options - a.button-green(href="", title="Accept") - span Accept diff --git a/app/partials/includes/modules/help-notions/lightbox-notion-admin-project-values-us-points.jade b/app/partials/includes/modules/help-notions/lightbox-notion-admin-project-values-us-points.jade deleted file mode 100644 index e8e70206..00000000 --- a/app/partials/includes/modules/help-notions/lightbox-notion-admin-project-values-us-points.jade +++ /dev/null @@ -1,12 +0,0 @@ -extends lightbox-generic-notion - -block title - About User Story (US) Points: - -block content - p - | Most people start off with 1 point = 1 man day of effort. If you're new to scrum & agile start there. - p - | After the first week if you and your team expected to accomplish 25 points (i.e. 5 people 5 full days) - | and only got half done, learn from your findings, and adjust expectations for the following week. - | By doing so you'll learn your teams true 'velocity.' diff --git a/app/styles/components/help-notion-button.scss b/app/styles/components/help-notion-button.scss deleted file mode 100644 index 528c8f63..00000000 --- a/app/styles/components/help-notion-button.scss +++ /dev/null @@ -1,11 +0,0 @@ -a.help { - color: $gray-light; - position: absolute; - right: 1rem; - top: 1rem; - transition: color .2s linear; - &:hover { - color: $green-taiga; - transition: color .2s linear; - } -} diff --git a/main-sass.js b/main-sass.js index d2d05578..5ebdb49f 100644 --- a/main-sass.js +++ b/main-sass.js @@ -52,7 +52,6 @@ exports.files = function () { 'components/select-color', 'components/loader', 'components/loading-bar', - 'components/help-notion-button', 'components/beta', 'components/markitup', 'components/markdown-help', diff --git a/scsslint.yml b/scsslint.yml index 42a06f1c..3aacec8f 100644 --- a/scsslint.yml +++ b/scsslint.yml @@ -83,7 +83,6 @@ linters: exclude: - 'app/styles/components/buttons.scss' - 'app/styles/layout/forms.scss' - - 'app/styles/components/help-notion-button.scss' - 'app/styles/components/markdown-help.scss' SelectorDepth: