⚠️ Please see plans to display ads on bg3.wiki. ⚠️

Template:Quote fancy/style.css: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
(Completed move)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Mobile-specific style */
/*
* The content of the template is layed out in a 3x3 grid with the main quote
* always at the center (2,2) and the author attribution just below at (2,3).
* The image may be placed to the left at (1,2), to the right at (3,2), or above
* at (2,1) depending on the specified layout.
*
* Mobile always uses the vertical layout.
*/
 
/* Main div for for the template */
.bg3wiki-fancy-quote {
display: flex;
}
 
/* Blockquote style changes depending if the image is on the left or right and on mobile */
.bg3wiki-fancy-quote-blockquote-left, .bg3wiki-fancy-quote-blockquote-right {
padding: 8px 16px;
margin: auto;
grid-row: 2;
grid-column: 2;
}
 
/* Mobile-specific style. Override the layout to be vertical and centered */
@media screen and (max-width: 779px) {
@media screen and (max-width: 779px) {
    /* Mobile version of the template has a vertical column layout */
.bg3wiki-fancy-quote-blockquote-left, .bg3wiki-fancy-quote-blockquote-right {
.bg3wiki-image-quote {
margin-top: 10px;
display: flex;
border-left: 0 !important;
align-items: center;
border-top: 2px solid #3d3d3d;
flex-direction: column !important;
}
}
 
 
/* Mobile version of the block quote */
.bg3wiki-fancy-quote-image {
.bg3wiki-image-quote-blockquote-left, .bg3wiki-image-quote-blockquote-right {
margin: auto;
padding: 8px 16px;
grid-row: 1 !important;
margin: 0px;
grid-column: 2 !important;
border-top: 2px solid #3d3d3d;
}
 
.bg3wiki-fancy-quote {
justify-content: center !important;
}
}
}
}
Line 18: Line 42:
/* Non-mobile style */
/* Non-mobile style */
@media screen and (min-width: 780px) {
@media screen and (min-width: 780px) {
/* Layout is horizontal with the image on the left or right */
.bg3wiki-fancy-quote-blockquote-left {
.bg3wiki-image-quote {
display: flex;
align-items: center;
flex-direction: row;
}
/* Blockquote style for when the image is on the left (default) */
.bg3wiki-image-quote-blockquote-left {
padding: 8px 16px;
margin: 0px;
margin-left: 10px;
margin-left: 10px;
border-left: 2px solid #3d3d3d !important
border-left: 2px solid #3d3d3d !important
}
}
 
.bg3wiki-fancy-quote-blockquote-right {
/* Blockquote style for when the image is on the right */
.bg3wiki-image-quote-blockquote-right {
padding: 8px 16px;
margin: 0px;
margin-right: 10px;
margin-right: 10px;
border-left: 0 !important;
border-left: 0 !important;
Line 44: Line 54:


/* Style for the quote image, primarily used to round the corners */
/* Style for the quote image, primarily used to round the corners */
.bg3wiki-image-quote-image {
.bg3wiki-fancy-quote-image {
  display: inline-block;
margin: auto;
  vertical-align: middle;
grid-row: 2;
  border: hidden;
  border-radius:15%;
  overflow: hidden;
}
}


/* Author/attribution of the quote is aligned to the bottom-right corner of the quote */
/* Author/attribution of the quote is aligned to the bottom-right corner of the quote */
.bg3wiki-image-quote-author {
.bg3wiki-fancy-quote-author {
margin-left: auto;
margin-left: auto;
margin-right: 16px;
margin-right: 32px;
margin-top: -4px;
padding-bottom: 4px;
margin-bottom: -2em;
line-height: 2em;
font-size: smaller;
font-size: smaller;
font-weight: bold;
font-weight: bold;
grid-row: 3;
grid-column: 2;
}
}


/* Style for the beginning and ending quotation marks aligned with the corners of the quote */
/* Style for the beginning and ending quotation marks aligned with the corners of the quote */
.bg3wiki-image-quote-begin, .bg3wiki-image-quote-end {
.bg3wiki-fancy-quote-begin, .bg3wiki-fancy-quote-end {
font-size: 300%;
font-size: 300%;
font-family: serif;
font-family: serif;
Line 71: Line 76:
line-height: 1em;
line-height: 1em;
}
}
.bg3wiki-image-quote-begin {
.bg3wiki-fancy-quote-begin {
margin-bottom: auto;
margin-bottom: auto;
margin-right: 8px
margin-right: 8px
}
}
.bg3wiki-image-quote-end {
.bg3wiki-fancy-quote-end {
margin-top: auto;
margin-top: auto;
margin-left: 8px
margin-left: 8px
}
}

Latest revision as of 01:11, 21 July 2024

/*
 * The content of the template is layed out in a 3x3 grid with the main quote
 * always at the center (2,2) and the author attribution just below at (2,3).
 * The image may be placed to the left at (1,2), to the right at (3,2), or above
 * at (2,1) depending on the specified layout.
 *
 * Mobile always uses the vertical layout.
 */

/* Main div for for the template */
.bg3wiki-fancy-quote {
	display: flex;
}

/* Blockquote style changes depending if the image is on the left or right and on mobile */
.bg3wiki-fancy-quote-blockquote-left, .bg3wiki-fancy-quote-blockquote-right {
	padding: 8px 16px;
	margin: auto;
	grid-row: 2;
	grid-column: 2;
}

/* Mobile-specific style. Override the layout to be vertical and centered */
@media screen and (max-width: 779px) {
	.bg3wiki-fancy-quote-blockquote-left, .bg3wiki-fancy-quote-blockquote-right {
		margin-top: 10px;
		border-left: 0 !important;
		border-top: 2px solid #3d3d3d;
	}
  
	.bg3wiki-fancy-quote-image {
		margin: auto;
		grid-row: 1 !important;
		grid-column: 2 !important;
	}
  
	.bg3wiki-fancy-quote {
		justify-content: center !important;
	}
}

/* Non-mobile style */
@media screen and (min-width: 780px) {
	.bg3wiki-fancy-quote-blockquote-left {
		margin-left: 10px;
		border-left: 2px solid #3d3d3d !important
	}
	.bg3wiki-fancy-quote-blockquote-right {
		margin-right: 10px;
		border-left: 0 !important;
		border-right: 2px solid #3d3d3d
	}
}

/* Style for the quote image, primarily used to round the corners */
.bg3wiki-fancy-quote-image {
	margin: auto;
	grid-row: 2;
}

/* Author/attribution of the quote is aligned to the bottom-right corner of the quote */
.bg3wiki-fancy-quote-author {
	margin-left: auto;
	margin-right: 32px;
	font-size: smaller;
	font-weight: bold;
	grid-row: 3;
	grid-column: 2;
}

/* Style for the beginning and ending quotation marks aligned with the corners of the quote */
.bg3wiki-fancy-quote-begin, .bg3wiki-fancy-quote-end {
	font-size: 300%;
	font-family: serif;
	color: #3d3d3d;
	line-height: 1em;
}
.bg3wiki-fancy-quote-begin {
	margin-bottom: auto;
	margin-right: 8px
}
.bg3wiki-fancy-quote-end {
	margin-top: auto;
	margin-left: 8px
}