Template:Quote fancy/style.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* Mobile version of the template has a vertical column layout */ | |||
.bg3wiki-image-quote { | .bg3wiki-image-quote { | ||
display: flex; | display: flex; | ||
Line 5: | Line 6: | ||
} | } | ||
/* Mobile version of the block quote */ | |||
.bg3wiki-image-quote-blockquote-left, .bg3wiki-image-quote-blockquote-right { | |||
padding: 8px 16px; | |||
margin: 0px; | |||
border-top: 2px solid #3d3d3d; | |||
} | |||
/* Non-mobile format */ | |||
@media screen and (min-width: 780px) { | @media screen and (min-width: 780px) { | ||
/* Layout is horizontal with the image on the left or right */ | |||
.bg3wiki-image-quote { | .bg3wiki-image-quote { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
flex-direction: row; | 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; | |||
border-left: 2px solid #3d3d3d !important | |||
} | |||
/* Blockquote style for when the image is on the right */ | |||
.bg3wiki-image-quote-blockquote-right { | |||
padding: 8px 16px; | |||
margin: 0px; | |||
margin-right: 10px; | |||
border-left: 0 !important; | |||
border-right: 2px solid #3d3d3d | |||
} | } | ||
} | } | ||
/* Style for the quote image, primarily used to round the corners */ | |||
.bg3wiki-image-quote-image { | .bg3wiki-image-quote-image { | ||
display: inline-block; | display: inline-block; | ||
Line 21: | Line 49: | ||
} | } | ||
/* Author/attribution of the quote is aligned to the bottom-right corner of the quote */ | |||
.bg3wiki-image-quote-author { | .bg3wiki-image-quote-author { | ||
margin-left: auto; | margin-left: auto; | ||
Line 47: | Line 61: | ||
} | } | ||
.bg3wiki-image-quote-begin { | /* Style for the beginning and ending quotation marks aligned with the corners of the quote */ | ||
.bg3wiki-image-quote-begin, .bg3wiki-image-quote-end { | |||
font-size: 300%; | font-size: 300%; | ||
font-family: serif; | font-family: serif; | ||
color: #3d3d3d; | |||
line-height: 1em; | line-height: 1em; | ||
} | |||
.bg3wiki-image-quote-begin { | |||
margin-bottom: auto; | margin-bottom: auto; | ||
margin-right: 8px | margin-right: 8px | ||
} | } | ||
.bg3wiki-image-quote-end { | .bg3wiki-image-quote-end { | ||
margin-top: auto; | margin-top: auto; | ||
margin-left: 8px | margin-left: 8px | ||
} | } |
Revision as of 09:18, 20 July 2024
/* Mobile version of the template has a vertical column layout */
.bg3wiki-image-quote {
display: flex;
align-items: center;
flex-direction: column !important;
}
/* Mobile version of the block quote */
.bg3wiki-image-quote-blockquote-left, .bg3wiki-image-quote-blockquote-right {
padding: 8px 16px;
margin: 0px;
border-top: 2px solid #3d3d3d;
}
/* Non-mobile format */
@media screen and (min-width: 780px) {
/* Layout is horizontal with the image on the left or right */
.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;
border-left: 2px solid #3d3d3d !important
}
/* Blockquote style for when the image is on the right */
.bg3wiki-image-quote-blockquote-right {
padding: 8px 16px;
margin: 0px;
margin-right: 10px;
border-left: 0 !important;
border-right: 2px solid #3d3d3d
}
}
/* Style for the quote image, primarily used to round the corners */
.bg3wiki-image-quote-image {
display: inline-block;
vertical-align: middle;
border: hidden;
border-radius:15%;
overflow: hidden;
}
/* Author/attribution of the quote is aligned to the bottom-right corner of the quote */
.bg3wiki-image-quote-author {
margin-left: auto;
margin-right: 16px;
margin-top: -8px;
padding-bottom: 8px;
margin-bottom: -2em;
line-height: 2em;
font-size: smaller;
font-weight: bold;
}
/* Style for the beginning and ending quotation marks aligned with the corners of the quote */
.bg3wiki-image-quote-begin, .bg3wiki-image-quote-end {
font-size: 300%;
font-family: serif;
color: #3d3d3d;
line-height: 1em;
}
.bg3wiki-image-quote-begin {
margin-bottom: auto;
margin-right: 8px
}
.bg3wiki-image-quote-end {
margin-top: auto;
margin-left: 8px
}