Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

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

Template page
No edit summary
No edit summary
Line 1: Line 1:
/* mobile view */
@media screen and (max-width: 768px) {
.essay-flex{
display:flex;
flex-direction:row;
flex-wrap:wrap;
justify-content:center;
}
.essay-picture{
width:100%;
}
.essay-content{
width:100%;
}
}
.essay-flex{
.essay-flex{
display:flex;
display:flex;
Line 62: Line 45:
.essay-offset{
.essay-offset{
margin-left:15px;
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:100%;
}
.essay-content{
width:100%;
}
}
}

Revision as of 16:16, 16 September 2023

.essay-flex{
	display:flex;
	flex-direction:row;
	justify-content:flex-start;
	align-items:center;
}

.essay-picture{
	width:25%;
	border-radius:5px;
	height:300px;
	border:1px solid black;
	margin-right:25px;
	overflow:hidden;
	text-align:center;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

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

.essay-content{
	width:75%;
}

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

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

.essay-offset{
	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:100%;
	}
	.essay-content{
		width:100%;
	}
}