More languages
More actions
No edit summary |
No edit summary |
||
(48 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
.essay-flex{ | .essay-flex{ | ||
display: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; | flex-direction:row; | ||
justify-content:flex-start; | justify-content:flex-start; | ||
align-items:center; | align-items:flex-start; | ||
*/ | |||
} | |||
p{ | |||
text-align:justify; | |||
text-justify:auto; | |||
} | |||
.essay-quote-center .essay-quote-text{ | |||
text-align:center!important; | |||
} | |||
.essay-disappear{ | |||
display:none; | |||
} | |||
.essay-template-title{ | |||
font-size:1.5em; | |||
border-bottom:1px gray solid; | |||
text-align:left; | |||
} | |||
.essay-template-title a:hover{ | |||
text-decoration:none; | |||
} | } | ||
.essay-picture{ | .essay-picture{ | ||
width: | width:100%; | ||
/*width:30%*/ | |||
border-radius:5px; | border-radius:5px; | ||
height:300px; | height:300px; | ||
/*margin-right:25px;*/ | |||
margin- | margin-top:15px; | ||
overflow:hidden; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
.essay-picture img{ | .essay-picture img{ | ||
width:100%; | |||
height: | height:inherit; | ||
} | } | ||
.essay-content{ | .essay-content{ | ||
width: | width:100%; | ||
/*width:70%;*/ | |||
} | } | ||
Line 30: | Line 64: | ||
.essay-big{ | .essay-big{ | ||
font-size:1.2em; | font-size:1.2em; | ||
} | |||
.essay-light{ | |||
font-weight:lighter; | |||
} | } | ||
.essay-offset{ | .essay-offset{ | ||
/*offsets the excerpt a bit to the right*/ | |||
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%; | |||
height:240px; /*80% of 300px which is the height for desktop view*/ | |||
margin:0 auto; | |||
} | |||
.essay-content{ | |||
width:100%; | |||
} | |||
} | } |
Latest revision as of 11:18, 4 September 2024
.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;
*/
}
p{
text-align:justify;
text-justify:auto;
}
.essay-quote-center .essay-quote-text{
text-align:center!important;
}
.essay-disappear{
display:none;
}
.essay-template-title{
font-size:1.5em;
border-bottom:1px gray solid;
text-align:left;
}
.essay-template-title a:hover{
text-decoration:none;
}
.essay-picture{
width:100%;
/*width:30%*/
border-radius:5px;
height:300px;
/*margin-right:25px;*/
margin-top:15px;
overflow:hidden;
display: flex;
align-items: center;
justify-content: center;
}
.essay-picture img{
width:100%;
height:inherit;
}
.essay-content{
width:100%;
/*width:70%;*/
}
.essay-small{
font-size:0.8em;
}
.essay-big{
font-size:1.2em;
}
.essay-light{
font-weight:lighter;
}
.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:100%;
height:240px; /*80% of 300px which is the height for desktop view*/
margin:0 auto;
}
.essay-content{
width:100%;
}
}