superdesk/superdesk-client-core

View on GitHub
styles/sass/popovers.scss

Summary

Maintainability
Test Coverage
// POPOVERS
// --------

.popover {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: $zindexPopover;
  display: none;
  padding: 5px;
  &.top    { margin-block-start:  -5px; }
  &.right  { margin-inline-start:  5px; }
  &.bottom { margin-block-start:   5px; }
  &.left   { margin-inline-start: -5px; }
  // &.top .arrow    { #popoverArrow > .top(); }
  // &.right .arrow  { #popoverArrow > .right(); }
  // &.bottom .arrow { #popoverArrow > .bottom(); }
  // &.left .arrow   { #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-block-end: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-block-end: 0;
  }
}