Template:Infobox essay/style.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 4: Line 4:
justify-content:center;
justify-content:center;
align-items:center;
align-items:center;
/* swap the commented parts if you want the picture to be on the left of the excerpt instead of above. DO THIS IN THE ENTIRE CSS. */
/*
/*
flex-direction:row;
flex-direction:row;
Line 20: Line 21:
border-radius:5px;
border-radius:5px;
height:300px;
height:300px;
margin-right:25px;
/*margin-right:25px;*/
margin-top:10px;
margin-top:10px;
overflow:hidden;
overflow:hidden;
Line 54: Line 55:


.essay-offset{
.essay-offset{
/*offsets the excerpt a bit to the right*/
margin-left:15px;
margin-left:15px;
}
}
Line 67: Line 69:
.essay-picture{
.essay-picture{
width:80%;
width:80%;
height:240px; /*80% of 300 which is the height for desktop view*/
height:240px; /*80% of 300px which is the height for desktop view*/
margin:0 auto;
margin:0 auto;
}
}

Revision as of 12:05, 17 September 2023

.essay-flex{
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
/* swap the commented parts if you want the picture to be on the left of the excerpt instead of above. DO THIS IN THE ENTIRE CSS. */
	/*
	flex-direction:row;
	justify-content:flex-start;
	align-items:flex-start;
	*/
}

.infobox-essay{
	display:none;
}

.essay-picture{
	width:100%;
	/*width:30%*/
	border-radius:5px;
	height:300px;
	/*margin-right:25px;*/
	margin-top:10px;
	overflow:hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.essay-picture img{
	object-fit:cover;
	height:inherit;
	transform:scale(1);
	transition:transform 0.4s;
}

.essay-picture img:hover{
	transform:scale(1.1);
	transition:transform 0.4s;
}

.essay-content{
	width:100%;
	/*width:70%;*/
}

.essay-small{
	font-size:0.8em;
}

.essay-big{
	font-size:1.2em;
}

.essay-offset{
	/*offsets the excerpt a bit to the right*/
	margin-left:15px;
}

/* mobile view */
@media screen and (max-width: 768px) {
	.essay-flex{
		display:flex;
		flex-direction:row;
		flex-wrap:wrap;
		justify-content:center;
	}
	.essay-picture{
		width:80%;
		height:240px; /*80% of 300px which is the height for desktop view*/
		margin:0 auto;
	}
	.essay-content{
		width:100%;
	}
}