/*
 * LMS version 1.11-git
 *
 *  (C) Copyright 2001-2020 LMS Developers
 *
 *  Please, see the doc/AUTHORS for more information about authors!
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License Version 2 as
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 *  USA.
 *
 *  $Id$
 */

.lms-ui-modal-dialog-wrapper {
	&.ui-dialog .ui-dialog-buttonpane {
		margin-top: 0;
		padding-top: 0;
	}
}

#lms-ui-modal-dialog {
	padding-right: 1em;
	padding-left: 1em;
	padding-top: 0;
	padding-bottom: 0;

	display: flex;
	flex-direction: column;
	justify-content: center;

	& > * {
		margin-top: 0.6em;
		margin-bottom: 0.6em;
	}

	.status {
		font-weight: bold;
		max-height: 80vh;
		overflow-y: auto;
		overflow-x: hidden;
	}

	.progress-bar {
	}

	.log-messages {
		height: 30vh;
		min-width: 600px;
		width: 50vw;
		background-color: @light;
		border: @dotted-line;
		overflow: auto;
		padding: 0.4em;
	}
}

.lms-ui-modal-dialog-wrapper {
  @media screen and (max-width: @mobile-max-width) {
    font-size: 200%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;

    .ui-dialog-titlebar-close {
      text-indent: unset;
      border: 0 !important;
      background-color: transparent !important;
      box-shadow: unset !important;
      right: 0.5em !important;
      top: 40% !important;

      .lms-ui-icon-hide {
        position: absolute;
        text-indent: unset;
        width: 0;
        height: 0;
        left: 0;
        top: 0;
      }
    }
  }
}
