summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/feature_highlight.scss
blob: ebae473df50d54169c53793028c66abd54de81e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.feature-highlight {
  position: relative;
  margin-left: $gl-padding;
  width: 20px;
  height: 20px;
  cursor: pointer;

  &::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]::before {
    display: none;
  }
}

.is-showing-fly-out {
  .feature-highlight {
    display: none;
  }
}

.feature-highlight-popover-content {
  display: none;

  hr {
    margin: $gl-padding * 0.5 0;
  }

  .btn-link {
    @include btn-svg;

    svg path {
      fill: currentColor;
    }
  }

  .dismiss-feature-highlight {
    padding: 0;
  }

  svg:first-child {
    width: 100%;
    background-color: $indigo-50;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-bottom: 1px solid darken($gray-normal, 8%);
  }
}

.popover .feature-highlight-popover-content {
  display: block;
}

.feature-highlight-popover {
  padding: 0;

  .popover-content {
    padding: 0;
  }
}

.feature-highlight-popover-sub-content {
  padding: 9px 14px;
}

@include keyframes(pulse-highlight) {
  0% {
    box-shadow: 0 0 0 0 rgba($blue-200, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}