/* ==========================================================================
  Specific styles to make the styleguide look better
  In the "real app" some HTML elements are hidden by default, or positioned in specific ways.
  In the styleguide sometimes we want to undo some of that for demonstrational purposes.
   ========================================================================== */

/* Taller samples
   ========================================================================== */

.c-sample-content-tall {
  min-height: 500px;
}

/* Make tooltips visible in styleguide
   ========================================================================== */

#component-tooltip,
#component-tooltip-2 {
  .br-sample-content {
    min-height: 100px;
  }
  .tooltip {
    display: block;
    opacity: 1;
  }
}

#component-tooltip-2 {
  .br-sample-content {
    min-height: 200px;
  }
}

/* Make popovers visible
   ========================================================================== */

.__prototype-popover-content {
  display: none;
}

div[id^="component-"] {
  .popover {
    position: relative;
    display: block;
    margin: 30px;
  }
}

/* Make app popover visible in styleguide
   ========================================================================== */

#component-app-popover .c-app-popover {
  display: block;
  position: static;
}

/* Make modals visible in styleguide
   ========================================================================== */

.c-sample-modal-visible .modal {
  display: block;
  opacity: 1;
  position: static;

  display: block;
  top: auto;
  left: auto;
  right: auto;
  margin: 20px;
  z-index: 1;
  max-width: 100%;

}

.br-sample-content {
  &.c-sample-overflow {
    overflow: initial;
  }
}

/* Adjust navbars so they aren't "fixed" in some examples
   ========================================================================== */

#component-01-navbar-primary,
#component-02-navbar-secondary-save,
#component-03-navbar-secondary-saving,
#component-04-navbar-secondary-add,
#component-05-navbar-branded,
#component-06-navbar-loading,
#component-07-navbar-secondary-navbar-nav {
  .bc-navbar {
    position: static;
    .container {
      width: auto;
    }
  }
}

/* Show floating containers (messaging)
   ========================================================================== */

.br-styleguide-content {
  .alert-floating-container {
    position: absolute;
    opacity: 1;
  }
}

/* Expand dropdowns in some component examples
   ========================================================================== */

#component-01-dropdown,
#component-02-dropdown-divider,
#component-03-dropdown-icons {
  .dropdown {
    > .dropdown-menu {
      position: static;
      display: block;
      margin-bottom: 5px;
      clear: left;
    }
    .btn {
      float: left;
    }
  }
}

/* Link list (styleguide introduction)
   ========================================================================== */

.br-link-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-top: 20px;

  li {
    margin-bottom: 2px;
  }

  a {
    display: block;
    padding: 15px;
    color: #414951;
    background-color: #F2F2F2;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;

    &:hover {
      background-color: #DDD;
    }
  }
}

/* Design principles 
   ========================================================================== */

.br-design-principles {
  column-count: 2;
  column-gap: 10px;
  padding: 0;
  li {
    list-style: none;
    margin: 10px 0;
    background-color: #F2F2F2;
    padding: 10px 20px;
    break-inside: avoid-column;
  }
}

/* Scroll context
   ========================================================================== */

#component-01-basic-scroll-context,
#component-02-basic-scroll-context-2,
#component-03-scroll-context-loading-bar {
  .br-sample-content {
    padding: 0;
    height: 320px;
  }
}

/* Make all containers in styleguide fluid so we can have a bit more responsiveness
  to be able to show all the patterns
   ========================================================================== */

.br-sample-content .container {
  width: auto;
}

/* Styleguide navigation extra styling
   ========================================================================== */

.br-styleguide-navigation-holder {
  background: #EEE;
}