summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/bootstrap/_popovers.scss
blob: a20f2d5a34a1decd4d2e5771dfd1a58b4b927c4d (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
// POPOVERS
// --------

.popover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: $zindexPopover;
  display: none;
  padding: 5px;
  &.top    { margin-top:  -5px; }
  &.right  { margin-left:  5px; }
  &.bottom { margin-top:   5px; }
  &.left   { margin-left: -5px; }
  &.top .arrow    { @include popoverArrow-top(); }
  &.right .arrow  { @include popoverArrow-right(); }
  &.bottom .arrow { @include popoverArrow-bottom(); }
  &.left .arrow   { @include popoverArrow-left();  }
  .arrow {
    position: absolute;
    width: 0;
    height: 0;
  }
}
.popover-inner {
  padding: 3px;
  width: 280px;
  overflow: hidden;
  background: $black; // has to be full background declaration for IE fallback
  background: rgba(0,0,0,.8);
  @include border-radius(6px);
  @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
}
.popover-title {
  padding: 9px 15px;
  line-height: 1;
  background-color: #f5f5f5;
  border-bottom:1px solid #eee;
  @include border-radius(3px 3px 0 0);
}
.popover-content {
  padding: 14px;
  background-color: $white;
  @include border-radius(0 0 3px 3px);
  @include background-clip(padding-box);
  p, ul, ol {
    margin-bottom: 0;
  }
}