summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/feature_highlight.scss
blob: 78ab31c794ea6a74d5c8312e2368a9394a835590 (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
.feature-highlight {
  @include webkit-prefix(animation, pulse-highlight 2s infinite);

  margin-left: $gl-padding;
  width: 8px;
  height: 8px;
  background-color: $blue-500;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 rgba($blue-500, 0.4);

  &:hover,
  &.disable-animation {
    @include webkit-prefix(animation, none);
  }

  &[disabled] {
    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;
  }

  img {
    width: 100%;
    padding: 25px 14px 0;
    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;
  }

  &.popover > .arrow::after {
    border-right-color: $indigo-50;
  }
}

.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;
  }
}