Jump to content

Module:interproject/style.css

From Wiktionary, the free dictionary
/* note: these styles are also used by some legacy templates that do not use the module. thus a full redesign should probably use a new class. */

.interproject-box {
	font-size: 90%;
	width: 250px;
	padding: 5px;
	text-align: left;
	background: var(--wikt-palette-paleblue, #f9f9f9);
	border: var(--border-color-base, #aaa) 1px solid;
	display: flex;
    flex-direction: row;
    align-items: center;
}

.interproject-box-logo {
	min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* override inline styles */
.interproject-box > div:first-child {
	float: none !important;
	flex: none;
}
.interproject-box > div:nth-child(2) {
	margin-left: 0.55em !important;
}

/* allow {{commonscat}} to be smaller in Vector skin */
body.skin-vector:not(.skin-vector-2022) .interproject-box .vector-hide {
	display: none;
}
body.skin-vector:not(.skin-vector-2022) .interproject-box .vector-inline-block {
	display: inline-block;
	margin-left: 0 !important;
}

@media screen and (max-width: 719px) { /* >=720px is the crossover point for floats to work */
	.interproject-box {
		box-sizing: border-box;
		line-height: 1.5;
		width: 100%;
		max-width: 100%;
		padding: 6px;
	}
}