/**
 * Gongbi Skin
 * © 2015-2021 Issara
 * © 2022-2024 WaitSpring
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * 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.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
@import '../variables.less';

@media screen {
	@media ( min-width: @desktop-mid-floor ) {
		.ve-init-mw-desktopArticleTarget-toolbar {
			margin: -1.125em -@content-padding - 0.5em 0;
		}

		.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
			top: @fixed-header-height;
		}

		/* Make the gutter area clickable (T162838) */
		/* .ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface { */
		/* 	margin-left: -@content-padding; */
		/* 	margin-right: -@content-padding; */
		/* } */

		/* .ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ce-documentNode, */
		.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ui-surface-placeholder {
			padding-right: @content-padding;
			padding-left: @content-padding;
		}
	}

	@media ( max-width: @mobile-width ) {
		.ve-init-mw-desktopArticleTarget-toolbar {
			margin: -0.125em -0.45em 0;
		}

		.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
			top: 0;
		}

		.ve-init-mw-desktopArticleTarget-toolbar .oo-ui-popupTool-popup {
			width: auto !important;
			max-width: 95vw;
			max-height: 95vw;

			.oo-ui-popupWidget-popup {
				max-width: 95vw;
				max-height: 95vw;

				.oo-ui-popupWidget-body {
					max-width: 95vw;
					max-height: 95vw;
					overflow-y: auto;
				}
			}
		}
	}
}
