/*!
 * 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.
 */

// BOTTOM

.aligned-bottom {
  bottom: 0;
  top: auto;
  transform-origin: bottom center;
}

.aligned-bottom.aligned-left {
  transform-origin: bottom left;
}

.aligned-bottom.aligned-right {
  transform-origin: bottom right;
}

// CENTER

.aligned-center {
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.aligned-center-x {
  left: 50%;
}

.aligned-center-y {
  top: 50%;
}

// LEFT

.aligned-left {
  left: 0;
  right: auto;
  transform-origin: left center;
}

// RIGHT

.aligned-right {
  left: auto;
  right: 0;
  transform-origin: right center;
}

// TOP

.aligned-top {
  bottom: auto;
  top: 0;
  transform-origin: top center;
}

.aligned-top.aligned-left {
  transform-origin: top left;
}

.aligned-top.aligned-right {
  transform-origin: top right;
}
