dev

Note: After publishing, you may have to bypass your browser's cache to see the changes.

/*
 * @title           MiniVisualEditorUI.css
 * @version         1.2.3
 * @description     Make the UCP VisualEditor's UI more compact
 * @author          Himmalerin
 * @license         CC-BY-SA-3.0
 */

/* April 2021 Update Bug Fix */
.ve-init-mw-desktopArticleTarget-originalContent {
    height: 100%;
    overflow: hidden;
}

/**
 * 2010 Wikitext Editor
 */

/* Remove empty space under the toolbar */
#editform .wikiEditor-ui-top {
	min-height: unset;
}

/* Remove excess whitespace */
.wikiEditor-ui .wikiEditor-ui-toolbar,
.wikiEditor-ui .wikiEditor-ui-toolbar .sections .section {
	margin: unset;
	padding: unset;
}
#msupload-dropzone {
	padding-top: unset;
	border-color: var(--theme-page-text-color);
}

/**
 * 2010 Wikitext Editor Summary Panel
 */

.editOptions {
	padding: 0;
}

.editOptions .oo-ui-fieldLayout-body {
	display: flex;
}

.editOptions .oo-ui-fieldLayout-field {
	flex: 1;
	margin-left: 0.5em;
}

.editOptions #wpSummaryWidget {
	margin: 0;
}

.editOptions .oo-ui-textInputWidget .oo-ui-inputWidget-input {
	padding: 0;
	height: 1.8em;
}

.mw-editform .editButtons .oo-ui-buttonElement,
.mw-editform .editHelp {
	margin-top: 0;
}

/**
 * VisualEditor/2017 Editor
 */

/* Reduce padding around the header text */
.ve-oasis-header {
	padding: 4px;
}

/* Hide "Edit Page" text */
.ve-oasis-header__label {
	display: none;
}

/* Shrink button padding */
.ve-oasis-header > .ve-oasis-header__actions .oo-ui-buttonElement-button {
	padding: 5px;
}

/* Sticky the toolbar  */
.ve-ui-oasisToolbar {
	position: sticky;
	top: 60px;
	z-index: 2;
}

/* Remove the upper border and rounded corners of the toolbar */
.skin-fandomdesktop .ve-ui-toolbar.ve-init-mw-desktopArticleTarget-toolbar > .oo-ui-toolbar-bar {
	padding: unset;
	background-color: var(--theme-page-background-color--secondary);
}

/* Prevent the floating and keep the top border hidden */
.ve-ui-oasisToolbar.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
	position: static;
	border: 1px solid var(--theme-border-color);
}

/* Shrink the space the page title takes up */
.ve-init-mw-desktopArticleTarget-originalContent
	.ve-init-mw-desktopArticleTarget-title {
	margin-bottom: 1ex;
	padding: unset;
}

/**
 * VisualEditor/2017 Editor Summary Panel
 */

.ve-ui-summaryPanel {
	padding-top: unset;
	box-shadow: 0 -8px 12px -12px rgba(0, 0, 0, 0.3);
}

/* Shrink spacing */
.ve-ui-summaryPanel-checkboxActionRow {
	margin: 2px 0 0;
}
.ve-ui-summaryPanel-checkboxActionRow .oo-ui-buttonElement-button {
	padding: 5px;
}

/* Recolor the copyright notice */
.ooui-theme-fandom .ve-ui-summaryPanel-copyrightWarningFooter {
	background-color: var(--theme-page-background-color);
}

/* Shrink the copyright notice */
.ve-ui-summaryPanel-copyrightWarningFooter {
	padding: 2px 4px;
}
.ve-ui-summaryPanel-copyrightWarningIcon {
	font-size: 1.5em;
}

/**
 * TemplateData buttons
 */

.ve-init-mw-desktopArticleTarget .tdg-editscreen-main {
	float: unset;
	position: absolute;
	right: 0;
	margin-top: -1px;
}

.tdg-editscreen-main .oo-ui-buttonElement-button {
	padding: 5px;
}