More languages
More actions
m (CriticalResist moved page Template:Essay quotation/style.css to Template:Essay quote/style.css without leaving a redirect: easier name) |
No edit summary |
||
(29 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
.essay- | @keyframes fadeIn { | ||
0% {opacity: 0;transform: translateY(15px);} | |||
100% {opacity: 1;transform: translateY(0px); } | |||
} | |||
.essay-quote{ | |||
/* container for whole quote thing */ | /* container for whole quote thing */ | ||
margin:35px; | |||
margin-bottom:0; | |||
animation: fadeIn 1.5s ease forwards; | |||
} | } | ||
.essay- | .essay-quote-mark{ | ||
/* just the quotation mark that appears behind the quote */ | /* just the quotation mark that appears behind the quote */ | ||
user-select:none; | user-select:none; | ||
font-size:8rem; | |||
position:relative; | |||
z-index:1; | |||
color:#7f7f7f; | |||
opacity:0.5; | |||
font-family: Serif; | |||
font-weight:bold; | |||
line-height:0; /* cancel line-height because it affects the quote due to sheer size of quotation marks*/ | |||
} | |||
.essay-quote-text{ | |||
position:relative; | |||
font-size:1.8rem; | |||
left:-15px; | |||
top:-50px; | |||
z-index:2; | |||
line-height:2.5rem; | |||
text-align:justify; | |||
text-justify:none; | |||
} | |||
h1,h2{ | |||
overflow:hidden; /* if the quote overlaps a title, the border at the bottom will be cut off. More aesthetic */ | |||
} | } | ||
.left{ | /* selectable alignment with {{{align}}} parameter */ | ||
.essay-quote-left{ | |||
float:left; | float:left; | ||
clear:both; | |||
max-width:35%; | |||
margin-left:0; | |||
margin-right:50px; | |||
} | } | ||
.right{ | .essay-quote-right{ | ||
float:right; | float:right; | ||
clear:both; | |||
max-width:35%; | |||
margin-right:0; | |||
margin-left:50px; | |||
} | |||
.essay-quote-center{ | |||
text-align: center!important; | |||
margin:0 auto; | |||
max-width:60%; | |||
padding-top:50px; | |||
text-align-last:center; | |||
} | |||
/* MOBILE POSITIONING */ | |||
@media screen and (max-width:768px){ | |||
.essay-quote-text{ | |||
font-size:1.5rem!important; | |||
} | |||
.essay-quote-left, .essay-quote-right{ | |||
text-align: center; | |||
text-align-last:center; | |||
margin: 0 auto; | |||
max-width:90%; | |||
padding-top:50px; /*undoes the relative positioning which moves only the content, not the frame with it*/ | |||
float:none; | |||
} | |||
.essay-quote-center{ | |||
max-width:90%; | |||
padding-top:50px; | |||
} | |||
} | } |
Latest revision as of 21:18, 20 October 2023
@keyframes fadeIn {
0% {opacity: 0;transform: translateY(15px);}
100% {opacity: 1;transform: translateY(0px); }
}
.essay-quote{
/* container for whole quote thing */
margin:35px;
margin-bottom:0;
animation: fadeIn 1.5s ease forwards;
}
.essay-quote-mark{
/* just the quotation mark that appears behind the quote */
user-select:none;
font-size:8rem;
position:relative;
z-index:1;
color:#7f7f7f;
opacity:0.5;
font-family: Serif;
font-weight:bold;
line-height:0; /* cancel line-height because it affects the quote due to sheer size of quotation marks*/
}
.essay-quote-text{
position:relative;
font-size:1.8rem;
left:-15px;
top:-50px;
z-index:2;
line-height:2.5rem;
text-align:justify;
text-justify:none;
}
h1,h2{
overflow:hidden; /* if the quote overlaps a title, the border at the bottom will be cut off. More aesthetic */
}
/* selectable alignment with {{{align}}} parameter */
.essay-quote-left{
float:left;
clear:both;
max-width:35%;
margin-left:0;
margin-right:50px;
}
.essay-quote-right{
float:right;
clear:both;
max-width:35%;
margin-right:0;
margin-left:50px;
}
.essay-quote-center{
text-align: center!important;
margin:0 auto;
max-width:60%;
padding-top:50px;
text-align-last:center;
}
/* MOBILE POSITIONING */
@media screen and (max-width:768px){
.essay-quote-text{
font-size:1.5rem!important;
}
.essay-quote-left, .essay-quote-right{
text-align: center;
text-align-last:center;
margin: 0 auto;
max-width:90%;
padding-top:50px; /*undoes the relative positioning which moves only the content, not the frame with it*/
float:none;
}
.essay-quote-center{
max-width:90%;
padding-top:50px;
}
}