// ------------------------------------
// LMS support for legacy Sass partials
//
// The intention is that this makes it
// easier to reuse existing partials
// that were not built with Bootstrap
// in mind.
// ------------------------------------

@import 'vendor/bi-app/bi-app-ltr'; // set the layout for left to right languages

@mixin font-size($sizeValue: 16) {
  font-size: ($sizeValue/10) + rem;
}

// Adds a simple extension that indicates that this element should not print
%ui-print-excluded {
  @media print {
    display: none;
  }
}

// Support .sr as a synonym for .sr-only
.sr {
  @extend .sr-only;
}

// ----------------------------
// #LEGACY VARIABLES
// ----------------------------

// ----------------------------
// #GRID
// ----------------------------

$grid-breakpoints-sm: 576px !default;
$grid-breakpoints-md: 768px !default;
$grid-breakpoints-lg: 992px !default;

// Wrap grids with grid-container.
@mixin grid-container() {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  box-sizing: border-box;
  margin: 0 auto;
}

@mixin span($cols, $margin:'') {
  @include margin-left(calc(0.5 * #{$grid-gutter-width}));
  @include margin-right(calc(0.5 * #{$grid-gutter-width}));

  width: calc(#{cols($cols)} - #{$grid-gutter-width});

  @if ($margin == 'before') {
    @include margin-right(0);

    width: calc(#{cols($cols)} - 0.5 * #{$grid-gutter-width});
  } @else if ($margin == 'after') {
    @include margin-left(0);

    width: calc(#{cols($cols)} - 0.5 * #{$grid-gutter-width});
  } @else if ($margin == 'none') {
    @include margin-left(0);
    @include margin-right(0);

    width: cols($cols);
  }
}

// ----------------------------
// #FONTS
// ----------------------------

$body-font-size: $font-size-base !default;
$font-light: 300 !default;
$font-regular: 400 !default;
$font-semibold: 600 !default;
$font-bold: 700 !default;

// ----------------------------
// #COLORS
// ----------------------------

$gray: $gray-600 !default;
$lms-container-background-color: theme-color("inverse") !default;
$lms-preview-menu-color: $gray-400 !default;
$success-color-hover: darken($success, 15%) !default;
$lms-hero-color: #005e90 !default;
$border-color-2: $gray-400 !default;
$link-hover: #065683 !default; // wcag2a compliant

// Blacks
$black:     rgb(0, 0, 0) !default;
$black-t0:  rgba($black, 0.125) !default;
$black-t1:  rgba($black, 0.25) !default;
$black-t2:  rgba($black, 0.5) !default;
$black-t3:  rgba($black, 0.75) !default;

// Shadows
$shadow: rgba(0, 0, 0, 0.2) !default;
$shadow-l1: rgba(0, 0, 0, 0.1) !default;
$shadow-l2: rgba(0, 0, 0, 0.05) !default;
$shadow-d1: rgba(0, 0, 0, 0.4) !default;
$shadow-d2: rgba($black, 0.6) !default;
