// Copyright (c) 2014, 2023, Oracle and/or its affiliates.  Licensed under The Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl/

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// WARNING: do not directly import this file, instead import the 
//          version in your base theme's directory, 
//          for example alta/widgets/_oj.alta.streamlist.scss
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@import "../../utilities/oj.utilities";

@if $includeStreamListClasses != false {
  @include module-include-once("common.streamlist") {

    // This is to prevent the flash of unstyled content before the html becomes JET components.
    @if $initialVisibility == hidden {
      oj-stream-list:not(.oj-complete) {
        visibility: hidden;
      }
    }

    /* Styling for the stream list widget container */
    .oj-streamlist {
      display: block;
      overflow:auto;
    }

    $streamListDefaultOptions: ();

    @if ($loadingIndicatorDelayDuration) {
      $streamListDefaultOptions: map-merge($streamListDefaultOptions, (showIndicatorDelay: $loadingIndicatorDelayDuration));
    }

    .oj-streamlist-option-defaults {
      font-family: oj-json($streamListDefaultOptions);
    }
  }
}