Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

1.2 KB
Raw Blame
.spot-modal-overlay
  position: fixed
  top: 0
  left: 0
  right: 0
  bottom: 0
  @include spot-z-index("drop-modal")
  background: rgba(0, 0, 0, 0.5)
  justify-content: center
  align-items: center
  display: none

  .-browser-safari &
    // Again, iOS and Safari are being special. When the keyboard opens, that pushes the whole viewport to the top.
    // Thus, when using `top: 0` half of the modal is pushed out of the screen.
    // Instead, we only set `bottom: 0` and set the height to the app height which is set programmatically on every screen resize
    height: var(--app-height)
    top: unset

  &_active
    display: flex
    flex-direction: column-reverse

    @media (max-width: 680px)
      justify-content: center

    @media (max-height: 480px)
      // reorder elements to be displayed in row on very small heights
      flex-direction: row-reverse

  &_top
    @media (max-width: 680px)
      justify-content: flex-end
      padding-top: 10px

  &_not-full-screen
    background: transparent
    right: unset
    bottom: unset
    top: initial

  &--close-button
    display: block
    margin: 1rem

    @media #{$spot-mq-drop-modal-in-context}
      display: none

    @media (max-height: 480px)
      align-self: end