@import "../variables";

// Core variables and mixins

@import "assets/stylesheets/bootstrap/variables";
@import "assets/stylesheets/bootstrap/mixins";

// Reset and dependencies
@import "assets/stylesheets/bootstrap/normalize";
//@import "assets/stylesheets/bootstrap/print";
//@import "assets/stylesheets/bootstrap/glyphicons";

// Core CSS
@import "assets/stylesheets/bootstrap/scaffolding";
@import "assets/stylesheets/bootstrap/type";
//@import "assets/stylesheets/bootstrap/code";
@import "assets/stylesheets/bootstrap/grid";
@import "assets/stylesheets/bootstrap/tables";
@import "assets/stylesheets/bootstrap/forms";
@import "assets/stylesheets/bootstrap/buttons";

// Components
@import "assets/stylesheets/bootstrap/component-animations";
@import "assets/stylesheets/bootstrap/dropdowns";
@import "assets/stylesheets/bootstrap/button-groups";
@import "assets/stylesheets/bootstrap/input-groups";
@import "assets/stylesheets/bootstrap/navs";
@import "assets/stylesheets/bootstrap/navbar";
@import "assets/stylesheets/bootstrap/breadcrumbs";
@import "assets/stylesheets/bootstrap/pagination";
@import "assets/stylesheets/bootstrap/pager";
@import "assets/stylesheets/bootstrap/labels";
//@import "assets/stylesheets/bootstrap/badges";
@import "assets/stylesheets/bootstrap/jumbotron";
//@import "assets/stylesheets/bootstrap/thumbnails";
@import "assets/stylesheets/bootstrap/alerts";
//@import "assets/stylesheets/bootstrap/progress-bars";
@import "assets/stylesheets/bootstrap/media";
@import "assets/stylesheets/bootstrap/list-group";
@import "assets/stylesheets/bootstrap/panels";
//@import "assets/stylesheets/bootstrap/responsive-embed";
@import "assets/stylesheets/bootstrap/wells";
//@import "assets/stylesheets/bootstrap/close";

// Components w/ JavaScript
//@import "assets/stylesheets/bootstrap/modals";
@import "assets/stylesheets/bootstrap/tooltip";
@import "assets/stylesheets/bootstrap/popovers";
@import "assets/stylesheets/bootstrap/carousel";

// Utility classes
@import "assets/stylesheets/bootstrap/utilities";
@import "assets/stylesheets/bootstrap/responsive-utilities";

// Font awesome
@import "@fortawesome/fontawesome-free/scss/fontawesome.scss";
@import "@fortawesome/fontawesome-free/scss/brands.scss";
@import "@fortawesome/fontawesome-free/scss/solid.scss";
@import "@fortawesome/fontawesome-free/scss/regular.scss";
@import "@fortawesome/fontawesome-free/scss/v4-shims.scss";

// Spacing
@import "spacing";

// Lightbox
@import "lightbox";

@import "badges";

// Outdated
@import "outdated";

// NProgress
@import "nprogress";

@import "buttons";

// header
@import "../header/header";
@import "../header/legacy";

@import "search-form";

// Map
@import "_leaflet-1.7.1.scss";

// OA components
@import "../components/style";
@import "../form-components/style";

@import '@openagenda/react-shared/scss/react-date-range';

@import "form-feedback";


body {

  background-color: $oa-gray-lighter;

}

.mobile-only {
  display: block;

  @media (min-width: 768px) {
    display: none;
  }
}

/**
 * set display-none through class
 */
.display-none {

  display: none !important;

}

/**
 * white page
 */
.wsq {

  background: $oa-white;
  vertical-align: top;
  text-align: left;

  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;

}

.info-block, .info-block-sm {
  background-color: $oa-gray-lightest;
  padding: 1em 1.25em;
  border: 1px solid $oa-gray-lighter;

  &.warning {
    border-color: $oa-warning;
    color: $oa-warning;
  }

  &.warning-outline {
    border-color: $oa-warning;
  }

  &.danger {
    border-color: $oa-danger;
    color: $oa-danger;
  }

  &.success {
    border-color: $oa-green;
    color: $oa-green;
  }

  label {
    margin-right: 1em;
  }
}

.info-block-sm {
  padding: 0.5em 0.75em;
}

/**
 * content block of a white page
 */
.content {

  padding: 20px 30px;

}

/**
 * use for simple full page dialogs,
 * to give them some margin from the
 * top of the page
 */
.top-margined {

  margin-top: 60px;

}

.bottom-margined {

  margin-bottom: 60px;

}

/**
 * make whole alert box clickable
 */

.alert-clickable {

  cursor: pointer;

}

/**
 * avatars are round in shape
 */
.avatar-container {

  margin: 30px;

}

.avatar {

  border: 3px solid $oa-white;
  border-radius: 100px;
  display: inline-block;
  margin: auto;
  max-width: 140px;
  width: 100%;

}

/* hack to put crisp on the left */
.crisp-client-container .crisp-client-excerpt .crisp-client-excerpt-chat,
body .crisp-client-container .crisp-client-excerpt .crisp-client-excerpt-minimized {
  right: inherit !important;
  left: 80px !important;
}

/*
 * One pixel overflow input/button field
 */
.input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group {

  line-height: 1.45;

}

.list-item-actions {

  margin-left: -12px;

}

ul.nav.navbar-nav.navbar-right > li.notifications,
ul.nav.navbar-nav.navbar-right > li.inbox {

  position: relative;

  a {

    cursor: pointer;

  }

  .label {

    position: absolute;
    bottom: 10px;
    top: 50%;
    left: 24px;
    padding: 2px;

  }

}

/*
  little help <i> element to encase in a <a> with the class .help
 */

.help {

  i {

    color: $oa-blue;
    font-size: 1.3em;

    &:hover {

      color: darken($oa-blue, 5);

    }

  }

}

.js_call_to_action_canvas {

  .popup-overlay .popup-title {

    position: relative;
    padding-left: 50px;

    i.golden-icon {

      position: absolute;
      top: 0;
      left: 0;
      height: 40px;
      width: 40px;
      border-radius: 0;

    }

  }

}

.text-muted {

  color: $oa-gray;

}

.oa-col-canvas {

  max-width: 680px;

}

.breadcrumb > .active a {
  color: $oa-black;
}

a.discreet {

  color: inherit;
  cursor: pointer;

  label {
    cursor: pointer;
  }

  &:hover {

    color: $oa-blue;

  }

}

// Colored <a>
@each $name, $color in (
  primary: $brand-primary,
  success: $brand-success,
  info: $brand-info,
  warning: $brand-warning,
  danger: $brand-danger
) {
  .text-#{$name} a {
    color: $color;
    text-decoration: underline;

    &:hover, &:focus {
      color: darken($color, 15%);
    }
  }
}

// Colored announcements
.announcement {
  .pull-right + {
    h1, h2, h3, h4, h5, h6 {
      &:first-of-type {
        margin-top: 0;
      }
    }
  }

  @each $name, $color in (
    primary: $brand-primary,
    success: $brand-success,
    info: $brand-info,
    warning: $brand-warning,
    danger: $brand-danger,
  ) {
    &.bg-#{$name} {
      border-top: 1px solid $color;
      border-bottom: 1px solid $color;
      background-color: lighten($color, 40%);
    }
  }
}

.fa-xs {
  font-size: .75em;
}

.fa-sm {
  font-size: .875em;
}

.flex-auto {
  flex: auto;
}

.translate-button {
  padding: 13px;
  font-size: 22px;
  line-height: 14px;
}
