summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-09-01 10:30:31 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-09-01 10:30:31 -0500
commit2a733e63443be2d2c799e94d4c6aa50d504bdc48 (patch)
treeffc394fdd4a0660a28b1fa8a23efc38f6bc8f4aa
parentdc5d817f3011a90b2fba7cf78570745942b51924 (diff)
downloadgitlab-ce-2a733e63443be2d2c799e94d4c6aa50d504bdc48.tar.gz
Expand hoverable container for feature highlight
-rw-r--r--app/assets/javascripts/feature_highlight/feature_highlight_options.js4
-rw-r--r--app/assets/stylesheets/framework/feature_highlight.scss30
2 files changed, 22 insertions, 12 deletions
diff --git a/app/assets/javascripts/feature_highlight/feature_highlight_options.js b/app/assets/javascripts/feature_highlight/feature_highlight_options.js
index 77ff2718bf7..fd48f2e87cc 100644
--- a/app/assets/javascripts/feature_highlight/feature_highlight_options.js
+++ b/app/assets/javascripts/feature_highlight/feature_highlight_options.js
@@ -3,10 +3,10 @@ import bp from '../breakpoints';
const highlightOrder = ['issue-boards'];
-export default function domContentLoaded(order = highlightOrder) {
+export default function domContentLoaded(order) {
if (bp.getBreakpointSize() === 'lg') {
highlightFeatures(order);
}
}
-document.addEventListener('DOMContentLoaded', domContentLoaded);
+document.addEventListener('DOMContentLoaded', domContentLoaded.bind(this, highlightOrder));
diff --git a/app/assets/stylesheets/framework/feature_highlight.scss b/app/assets/stylesheets/framework/feature_highlight.scss
index 1d2573163a6..ebae473df50 100644
--- a/app/assets/stylesheets/framework/feature_highlight.scss
+++ b/app/assets/stylesheets/framework/feature_highlight.scss
@@ -1,20 +1,30 @@
.feature-highlight {
- animation: pulse-highlight 2s infinite;
-
+ position: relative;
margin-left: $gl-padding;
- width: 8px;
- height: 8px;
- background-color: $blue-500;
- border-radius: 50%;
+ width: 20px;
+ height: 20px;
cursor: pointer;
- box-shadow: 0 0 0 rgba($blue-500, 0.4);
- &:hover,
- &.disable-animation {
+ &::before {
+ content: '';
+ display: block;
+ position: absolute;
+ top: 6px;
+ left: 6px;
+ width: 8px;
+ height: 8px;
+ background-color: $blue-500;
+ border-radius: 50%;
+ box-shadow: 0 0 0 rgba($blue-500, 0.4);
+ animation: pulse-highlight 2s infinite;
+ }
+
+ &:hover::before,
+ &.disable-animation::before {
animation: none;
}
- &[disabled] {
+ &[disabled]::before {
display: none;
}
}