summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/feature_highlight.scss
blob: cad915bc86fd99834f656b185e7e66f02935364b (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
95
96
97
98
99
100
101
102
103
.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 {
    svg {
      @include btn-svg;

      path {
        fill: currentColor;
      }
    }
  }

  .feature-highlight-illustration {
    width: 100%;
    height: 100px;
    padding-top: 12px;
    padding-bottom: 12px;

    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 {
  width: 240px;
  padding: 0;
  border: 1px solid $dropdown-border-color;
  box-shadow: 0 2px 4px $dropdown-shadow-color;

  &.right > .arrow {
    border-right-color: $dropdown-border-color;
  }

  .popover-body {
    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;
  }
}