/*
 * Copyright 2020 Red Hat, Inc. and/or its affiliates.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License")
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *        http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import "./Colors.sass"

.pf-c-modal-box.kgt-dialog
  position: fixed
  min-height: 160px
  width: max-content
  max-width: 600px
  padding: var(--pf-global--spacer--xl) var(--pf-global--spacer--xl) var(--pf-global--spacer--2xl)
  left: 50%
  top: 50%
  transition: all .5s ease-out

  & > .pf-c-button + *
    margin-right: 0

  &--enabled
    display: block

  &--disabled
    display: none

  .kgt-slide--with-accent
    margin: 0 32px
    text-align: center

    .pf-c-content--align-left
      text-align: left

    & > svg
      color: $kgt-accent-color
      height: 6em
      width: 6em
      margin: 8px 0

      & + .pf-c-title
        margin-top: 0
  
    & + .kgt-nav-controls
      display: none
