Template:Wikipedia excerpt/styles.css: Difference between revisions

Template page
(Created page with "→‎Interwiki inclusion modifications: .wikipedia-excerpt .infobox,.navigation-not-searchable { display:none; } .wikipedia-excerpt .mw-references-wrap { height:0; overflow:hidden; margin-top:0; } →‎Limit paragraphs class number: .wikipedia-excerpt p { display:none; } .wikipedia-excerpt p:nth-of-type(1) { display:block; }")
 
No edit summary
Line 1: Line 1:
.card {
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-left: 1em solid #a2a9b1;
box-sizing: border-box;
break-inside: avoid;
margin: 1em 0;
padding: .5em;
overflow: hidden;
width: 670px;
max-width: 100%;
}
.card .right {
float: right;
}
.card-icon {
float: left;
margin: .5em;
}
.card-tooltip {
float: right;
margin: .5em;
}
.card-title {
font-weight: bold;
margin: .5em;
}
.card-content {
margin: .5em;
}
.card-content img {
vertical-align: middle;
max-width: 100%;
height: auto;
}
.card-content .thumb {
background: transparent;
border: none;
}
.card-content .thumbinner {
margin: 0;
}
.card-content .template-video {
background: transparent;
border: none;
padding: 0;
}
.card-grid {
display: grid;
grid-auto-rows: minmax( 100px, auto );
grid-gap: 10px;
grid-template-columns: repeat( auto-fit, minmax( 300px, 1fr ) );
margin: 1em 0;
width: auto;
}
/**
* Dark mode
*/
html.skin-citizen-dark .card {
background: #303134;
border-color: #3c4043;
color: #bdc1c6;
}
html.skin-citizen-dark .card-icon {
filter: invert( 1 );
}
/* Interwiki inclusion modifications */
/* Interwiki inclusion modifications */
.wikipedia-excerpt .infobox,.navigation-not-searchable {
.wikipedia-excerpt .infobox,.navigation-not-searchable {

Revision as of 19:00, 30 January 2024

.card {
	background: #f8f9fa;
	border: 1px solid #a2a9b1;
	border-left: 1em solid #a2a9b1;
	box-sizing: border-box;
	break-inside: avoid;
	margin: 1em 0;
	padding: .5em;
	overflow: hidden;
	width: 670px;
	max-width: 100%;
}
.card .right {
	float: right;
}
.card-icon {
	float: left;
	margin: .5em;
}
.card-tooltip {
	float: right;
	margin: .5em;
}
.card-title {
	font-weight: bold;
	margin: .5em;
}
.card-content {
	margin: .5em;
}
.card-content img {
	vertical-align: middle;
	max-width: 100%;
	height: auto;
}
.card-content .thumb {
	background: transparent;
	border: none;
}
.card-content .thumbinner {
	margin: 0;
}
.card-content .template-video {
	background: transparent;
	border: none;
	padding: 0;
}
.card-grid {
	display: grid;
	grid-auto-rows: minmax( 100px, auto );
	grid-gap: 10px;
	grid-template-columns: repeat( auto-fit, minmax( 300px, 1fr ) );
	margin: 1em 0;
	width: auto;
}

/**
 * Dark mode
 */
html.skin-citizen-dark .card {
	background: #303134;
	border-color: #3c4043;
	color: #bdc1c6;
}
html.skin-citizen-dark .card-icon {
	filter: invert( 1 );
}





/* Interwiki inclusion modifications */
.wikipedia-excerpt .infobox,.navigation-not-searchable {
	display:none;
}

.wikipedia-excerpt .mw-references-wrap {
	height:0;
	overflow:hidden;
	margin-top:0;
}

/* Limit paragraphs class number */
.wikipedia-excerpt p {
	display:none;
}

.wikipedia-excerpt p:nth-of-type(1) {
	display:block;
}