/*!
 * The MIT License (MIT)
 *
 * Copyright (c) 2020 Karl STEIN
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
@import "./variables";

.cc-notification-stack {
  overflow: auto;
  padding-bottom: $shadow-y;
  position: absolute;
  transition-property: height, width, bottom, left, right, top, opacity, transform;
  z-index: 10;
}

body > .cc-notification-stack {
  position: fixed;
}

.cc-notification-stack .cc-notification {
  display: block;
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  top: auto;
}

// NOTIFICATIONS IN STACK

.cc-notification-stack.aligned-bottom .cc-notification {
  transform-origin: bottom center;
}

.cc-notification-stack.aligned-bottom.aligned-left .cc-notification {
  transform-origin: bottom left;
}

.cc-notification-stack.aligned-bottom.aligned-right .cc-notification {
  transform-origin: bottom right;
}

.cc-notification-stack.aligned-left .cc-notification {
  transform-origin: left center;
}

.cc-notification-stack.aligned-right .cc-notification {
  transform-origin: right center;
}

.cc-notification-stack.aligned-top .cc-notification {
  transform-origin: top center;
}

.cc-notification-stack.aligned-top.aligned-left .cc-notification {
  transform-origin: top left;
}

.cc-notification-stack.aligned-top.aligned-right .cc-notification {
  transform-origin: top right;
}
