themes-wordpress/photos/blocks.css

474 lines
8.8 KiB
CSS
Raw Permalink Normal View History

/*
Theme Name: Photos
Description: Gutenberg Block Styles
*/
2018-09-25 02:26:10 +00:00
/* Alignments */
.alignfull {
max-width: 100%;
text-align: center;
2018-09-25 02:26:10 +00:00
}
.alignwide {
margin-left: auto;
margin-right: auto;
max-width: 80%;
}
@media screen and ( min-width: 660px ) {
[class^="wp-block"] .alignleft {
margin-left: calc( ( ( 100vw - 640px ) / -2 ) + 10px );
}
[class^="wp-block"] .alignright {
margin-right: calc( ( ( 100vw - 640px ) / -2 ) + 10px );
}
2018-09-25 02:26:10 +00:00
}
@media screen and ( min-width: 1080px ) {
.alignwide {
max-width: 1020px;
}
2018-09-25 02:26:10 +00:00
[class^="wp-block"] .alignleft {
margin-left: -190px;
}
[class^="wp-block"] .alignright {
margin-right: -190px;
}
}
2018-09-25 02:26:10 +00:00
.wp-block-embed.is-type-video iframe,
.wp-block-embed.is-type-video iframe {
max-height: 100%;
}
.wp-block-embed.is-type-video.alignwide iframe,
.wp-block-embed.is-type-video.alignwide iframe,
.wp-block-embed.is-type-video.alignfull iframe,
.wp-block-embed.is-type-video.alignfull iframe {
width: 100% !important;
height: 100% !important;
}
/* Colors */
.has-red-color,
.has-red-color:hover,
.has-red-color:active,
.has-red-color:focus,
.has-red-color:visited {
color: #d63031;
}
.has-red-background-color,
.has-red-background-color:hover,
.has-red-background-color:active,
.has-red-background-color:focus,
.has-red-background-color:visited {
background-color: #d63031;
}
.has-charcoal-color,
.has-charcoal-color:hover,
.has-charcoal-color:active,
.has-charcoal-color:focus,
.has-charcoal-color:visited {
color: #111;
}
.has-charcoal-background-color,
.has-charcoal-background-color:hover,
.has-charcoal-background-color:active,
.has-charcoal-background-color:focus,
.has-charcoal-background-color:visited {
background-color: #111;
}
.has-very-light-gray-color,
.has-very-light-gray-color:hover,
.has-very-light-gray-color:active,
.has-very-light-gray-color:focus,
.has-very-light-gray-color:visited {
color: #f0f0f0;
}
.has-very-light-gray-background-color,
.has-very-light-gray-background-color:hover,
.has-very-light-gray-background-color:active,
.has-very-light-gray-background-color:focus,
.has-very-light-gray-background-color:visited {
background-color: #f0f0f0;
}
.has-very-dark-gray-color,
.has-very-dark-gray-color:hover,
.has-very-dark-gray-color:active,
.has-very-dark-gray-color:focus,
.has-very-dark-gray-color:visited {
color: #404040;
}
.has-very-dark-gray-background-color,
.has-very-dark-gray-background-color:hover,
.has-very-dark-gray-background-color:active,
.has-very-dark-gray-background-color:focus,
.has-very-dark-gray-background-color:visited {
background-color: #404040;
}
.has-medium-gray-color,
.has-medium-gray-color:hover,
.has-medium-gray-color:active,
.has-medium-gray-color:focus,
.has-medium-gray-color:visited {
color: #606060;
}
.has-medium-gray-background-color,
.has-medium-gray-background-color:hover,
.has-medium-gray-background-color:active,
.has-medium-gray-background-color:focus,
.has-medium-gray-background-color:visited {
background-color: #606060;
}
2018-09-25 02:26:10 +00:00
/* Text sizing */
.is-small-text {}
.is-regular-text {}
.is-large-text {}
.is-larger-text {}
/* Dropcap */
p.has-drop-cap:not(:focus):first-letter {
2018-09-25 02:26:10 +00:00
font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
font-size: 106px;
font-size: 10.6rem;
font-weight: 300;
margin: 0.08em 0.1em 0 0;
2018-09-25 02:26:10 +00:00
}
.rtl p.has-drop-cap:not(:focus):first-letter {
margin: 0.08em 0 0 0.1em;
}
2018-09-25 02:26:10 +00:00
/* Images */
.wp-block-image {
margin-bottom: 1.5em;
}
.wp-block-image img {
display: block;
}
2018-09-25 02:26:10 +00:00
.wp-block-image figcaption {
font-size: 0.8em;
margin-top: 0;
padding-top: 0.625em;
text-align: center;
}
2018-09-25 02:26:10 +00:00
/* Galleries */
.wp-block-gallery {
margin-bottom: 3rem;
}
/* Captions */
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
color: inherit;
2018-09-25 02:26:10 +00:00
}
/* Blockquotes*/
.wp-block-quote,
.rtl .wp-block-quote[style*="text-align:left"] {
border-left: 4px solid #d63031;
}
.wp-block-quote[style*="text-align:right"] {
border: 0;
border-right: 4px solid #d63031;
2018-09-25 02:26:10 +00:00
}
.rtl .wp-block-quote {
border-left: none;
border-right: 4px solid #d63031;
}
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
2018-09-25 02:26:10 +00:00
margin-left: auto;
margin-right: auto;
margin-bottom: 3rem;
padding: 2rem 3rem;
2018-09-25 02:26:10 +00:00
}
.wp-block-quote p:last-of-type {
margin-bottom: 0;
}
.wp-block-quote cite {
color: #606060;
font-size: 16px;
font-weight: 300;
}
/* Pullquotes */
.wp-block-pullquote {
padding: 0;
2018-09-25 02:26:10 +00:00
}
.wp-block-pullquote blockquote {
background-color: #f0f0f0;
border-bottom: 4px solid #d63031;
2018-09-25 02:26:10 +00:00
border-left: none;
border-right: none;
border-top: 4px solid #d63031;
margin-bottom: 0;
padding: 1em 1.5em;
}
.wp-block-pullquote:not(.is-style-solid-color) blockquote {
background-color: #f0f0f0;
}
.wp-block-pullquote .is-style-solid-color blockquote {
border-top: none;
border-bottom: none;
2018-09-25 02:26:10 +00:00
}
.wp-block-pullquote p {
font-size: 24px;
margin-bottom: 1em;
}
2018-09-25 02:26:10 +00:00
.wp-block-pullquote cite {
color: #606060;
}
2018-09-25 02:26:10 +00:00
.wp-block-pullquote.alignleft,
.wp-block-pullquote.alignright {
max-width: 320px;
padding: 0;
}
.wp-block-pullquote.alignleft,
.wp-block-pullquote.alignright {
2018-09-25 02:26:10 +00:00
text-align: left;
}
.rtl .wp-block-pullquote.alignleft,
.rtl .wp-block-pullquote.alignright {
text-align: right;
2018-09-25 02:26:10 +00:00
}
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote {
padding: 2em;
}
.wp-block-pullquote.alignwide {
max-width: 830px;
width: 100%;
2018-09-25 02:26:10 +00:00
}
.wp-block-pullquote.alignfull {
padding: 0 calc( 50% - 510px );
}
@media screen and ( min-width: 1080px ) {
.wp-block-pullquote p {
font-size: 32px;
}
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
font-size: 27px;
}
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote {
padding: 3em;
}
.wp-block-pullquote.alignwide {
max-width: 830px;
width: 75%;
}
.wp-block-pullquote.alignfull {
padding: 0 calc( 50% - 510px );
}
2018-09-25 02:26:10 +00:00
}
/* Audio */
.wp-block-audio.alignleft,
.wp-block-audio.alignright {
width: 32rem;
}
.wp-block-video video,
.wp-block-audio audio {
width: 100%;
}
2018-09-25 02:26:10 +00:00
2020-05-22 16:52:58 +00:00
/* Video */
.wp-block-video video {
height: auto;
}
2018-09-25 02:26:10 +00:00
/* Tables */
.wp-block-table {
display: table;
}
.wp-block-table.alignleft,
.wp-block-table.alignright {
max-width: 50%;
}
/* Preformatted */
.wp-block-preformatted {}
/* Code */
.wp-block-code {}
/* Verse */
.wp-block-verse {}
.wp-block-verse.aligncenter {
text-align: center;
}
.wp-block-verse.alignleft {
text-align: left;
}
.wp-block-verse.alignright {
text-align: right;
}
/* Separator */
.wp-block-separator {
background-color: transparent;
border-bottom: 1px solid #dcdcdc;
margin-bottom: 1.5em;
width: 180px;
2018-09-25 02:26:10 +00:00
}
.wp-block-separator.alignwide,
.wp-block-separator.is-style-wide {
max-width: 75vw;
width: 100%;
2018-09-25 02:26:10 +00:00
}
.wp-block-separator.is-style-dots:before {
color: #d63031;
2018-09-25 02:26:10 +00:00
}
/* Buttons */
.wp-block-file .wp-block-file__button,
2018-09-25 02:26:10 +00:00
.wp-block-button .wp-block-button__link {
font-weight: bold;
font-size: inherit;
2018-09-25 02:26:10 +00:00
line-height: 1.5;
margin-left: 0.75em;
padding: 0.5em 0.75em;
2018-09-25 02:26:10 +00:00
text-align: center;
transition: background 150ms ease-in-out,
color 150ms ease-in-out;
}
.wp-block-file .wp-block-file__button {
border-radius: 4px;
}
.rtl .wp-block-file .wp-block-file__button,
.rtl .wp-block-button .wp-block-button__link {
margin-left: 0;
margin-right: 0.75em;
}
.wp-block-file .wp-block-file__button,
.wp-block-button__link {
2018-09-25 02:26:10 +00:00
color: #d63031;
}
.wp-block-file .wp-block-file__button:active,
.wp-block-file .wp-block-file__button:focus,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:active,
.wp-block-button__link:focus,
.wp-block-button__link:hover {
2018-09-25 02:26:10 +00:00
color: #fff;
}
.wp-block-file .wp-block-file__button,
.wp-block-button__link {
background: #f0f0f0;
}
.wp-block-file .wp-block-file__button:active,
.wp-block-file .wp-block-file__button:focus,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:active,
.wp-block-button__link:focus,
.wp-block-button__link:hover {
2018-09-25 02:26:10 +00:00
background-color: #d63031;
}
/* Text Columns */
.wp-block-text-columns {}
.wp-block-column {}
/* Latest Posts */
.wp-block-latest-posts {}
.wp-block-latest-posts__post-date {}
/*--------------------------------------------------------------
Widgets
--------------------------------------------------------------*/
/* Categories, Latest Posts & Archives */
.wp-block-categories.aligncenter,
.wp-block-categories.aligncenter ul,
.wp-block-archives.aligncenter,
.wp-block-latest-posts.aligncenter,
.wp-block-latest-comments.aligncenter {
list-style-position: inside;
text-align: center;
}
.wp-block-categories.alignfull,
.wp-block-archives.alignfull,
.wp-block-latest-posts.alignfull {
text-align: left;
}
.rtl .wp-block-categories.alignfull,
.rtl .wp-block-archives.alignfull,
.rtl .wp-block-latest-posts.alignfull {
text-align: right;
}
/* Latest comments */
.wp-block-latest-comments {
padding-left: 0;
padding-right: 0;
}
.wp-block-latest-comments.alignfull {
text-align: left;
}
.rtl .wp-block-latest-comments.alignfull {
text-align: right;
}