/* Theme Name: Dyad 2 Description: Used to style Gutenberg Blocks. */ /*-------------------------------------------------------------- >>> TABLE OF CONTENTS: ---------------------------------------------------------------- 1.0 Block Alignments 2.0 General Block Styles 3.0 Blocks - Common Blocks 4.0 Blocks - Formatting 5.0 Blocks - Layout Elements 6.0 Blocks - Widgets 7.0 Blocks - Colors --------------------------------------------------------------*/ /*-------------------------------------------------------------- 1.0 Block Alignments --------------------------------------------------------------*/ .single .hentry { overflow-x: hidden; /* prevents side-scrolling caused by use of vw */ } .alignfull, .alignwide { clear: both; } @media (min-width: 1000px) { body:not(.has-post-thumbnail) .alignwide { margin-left: -20%; margin-right: -20%; width: auto; } body:not(.has-post-thumbnail) .alignfull *[class*="__inner-container"] .alignwide { margin-left: auto; margin-right: auto; max-width: calc(700px + 40%); } body:not(.has-post-thumbnail) *[class*="__inner-container"] .alignwide { margin-left: auto; margin-right: auto; } body:not(.has-post-thumbnail) *[class*="__inner-container"] > *:not(.alignwide):not(.alignfull) { margin-left: auto; margin-right: auto; max-width: 700px; } } body:not(.has-post-thumbnail) .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: auto; } body:not(.has-post-thumbnail) *[class*="__inner-container"] .alignfull { margin-left: 0; margin-right: 0; } /* Prevent children of columns from expanding outside of their container */ body:not(.has-post-thumbnail) .wp-block-column .alignfull, body:not(.has-post-thumbnail) .wp-block-column .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; width: 100%; } /* Make non image-based blocks a bit narrower, so they don't get cut off. */ body:not(.has-post-thumbnail) .wp-block-columns.alignfull, body:not(.has-post-thumbnail) .wp-block-audio.alignfull, body:not(.has-post-thumbnail) .wp-block-table.alignfull, body:not(.has-post-thumbnail) .wp-block-latest-comments.alignfull, body:not(.has-post-thumbnail) .wp-block-categories.alignfull, body:not(.has-post-thumbnail) .wp-block-latest-posts.alignfull { margin-left: calc(50% - 48vw); margin-right: calc(50% - 48vw); } /* Make sure video embeds actually fill the full available space. */ .wp-block-embed.is-type-video.alignfull iframe { height: 100% !important; width: 100% !important; } /*-------------------------------------------------------------- 2.0 General Block Styles --------------------------------------------------------------*/ /* Captions */ /*-------------------------------------------------------------- 3.0 Blocks - Common Blocks --------------------------------------------------------------*/ /* Paragraph */ p.has-drop-cap:not(:focus)::first-letter { font-size: 5em; margin-top: 0.1em; } /* Image */ .wp-block-image { margin-bottom: 0; max-width: 1000%; } .wp-block-image.is-resized { margin-left: auto; margin-right: auto; } /* Gallery */ .wp-block-gallery { margin: 0 0 1.5em; } /* Quote */ .wp-block-quote { margin-bottom: 1.5em; } .wp-block-quote:not(.is-large):not(.is-style-large), .rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style="text-align:left"] { border-left: 3px solid #ddd; border-right: 0; margin: 0 0 1.5em 1.5em; padding-left: 1.5em; padding-right: 0; } .rtl .wp-block-quote:not(.is-large):not(.is-style-large), .wp-block-quote:not(.is-large):not(.is-style-large)[style="text-align:right"] { border-left: 0; border-right: 3px solid #ddd; margin-left: 0; margin-right: 1.5em; padding-left: 0; padding-right: 1.5em; } .wp-block-quote:not(.is-large):not(.is-style-large)[style="text-align:center"] { border: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } .wp-block-quote p:not(:last-child) { margin-bottom: 0; padding-bottom: 0; } .wp-block-quote.is-large, .wp-block-quote.is-style-large { border: 0; padding-left: 1.5em; padding-right: 1.5em; } .wp-block-quote.is-large cite, .wp-block-quote.is-style-large cite { font-size: 80%; text-align: inherit; } /* Audio */ .wp-block-audio { margin-bottom: 1.5em; } .wp-block-audio audio { display: block; width: 100%; } /* Cover */ .wp-block-cover.aligncenter, .wp-block-cover-image.aligncenter, .wp-block-cover.alignleft, .wp-block-cover-image.alignleft, .wp-block-cover.alignright, .wp-block-cover-image.alignright { display: flex; } .wp-block-cover .wp-block-cover-text, .wp-block-cover-image .wp-block-cover-image-text { font-size: 24px; } /* File */ .wp-block-file .wp-block-file__button { background-color: #678db8; border-color: #678db8; border-radius: 0; color: #fff; font-size: 1.4rem; letter-spacing: 0.1em; padding: 1em; text-transform: uppercase; } .wp-block-file__button:hover, .wp-block-file__button:focus { background-color: #678db8; opacity: 0.75; } .wp-block-file a.wp-block-file__button:active { opacity: 0.9; } .rtl .wp-block-file * + .wp-block-file__button { margin-left: 0.75em; margin-right: 0; } /*-------------------------------------------------------------- 4.0 Blocks - Formatting Blocks --------------------------------------------------------------*/ /* Verse */ .wp-block-verse { background: none; color: #393d41; font-family: "Noto Serif", Georgia, serif; font-size: inherit; font-style: italic; padding: 0; } .wp-block-verse:before { display: none; } /* Code */ .wp-block-code { border: 0; color: #6a6c6e; border-radius: 0; } /* Pullquote */ .wp-block-pullquote { border-color: #ddd; margin-bottom: 1.5em; } .wp-block-pullquote blockquote { border: 0; margin: 0; padding: 0; } .wp-block-pullquote cite { color: #6c7781; font-size: 13px; text-transform: none; } /* Table */ .wp-block-table td, .wp-block-table th { border-color: #ddd; } body:not(.has-post-thumbnail) .wp-block-table.alignwide { width: 960px; /* 700px + ( 20% * 2 ) */ } body:not(.has-post-thumbnail) .wp-block-table.alignfull { width: 96vw; } /*-------------------------------------------------------------- 5.0 Blocks - Layout Elements --------------------------------------------------------------*/ /* Buttons */ .wp-block-button .wp-block-button__link { font-size: 1.4rem; letter-spacing: 0.1em; padding: 1em 1.5em; text-transform: uppercase; text-decoration: none; } .wp-block-button.aligncenter { text-align: center; margin-bottom: 1.5em; } .wp-block-button__link { background-color: #678db8; color: #fff; } .is-style-outline .wp-block-button__link { border-color: currentColor; } .is-style-outline .wp-block-button__link:not(.has-text-color) { color: #678db8; } .wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus { opacity: 0.75; } .wp-block-button .wp-block-button__link:active { opacity: 0.9; } /* Separator */ .wp-block-separator { border: 0; } /*-------------------------------------------------------------- 6.0 Blocks - Widget Blocks --------------------------------------------------------------*/ /* General Widget styles */ .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; } /* Latest Posts */ .wp-block-latest-posts.is-grid { margin-left: 0; margin-right: 0; } /* Latest Comments */ .wp-block-latest-comments { font-size: 17px; margin-left: 0; margin-right: 0; } .wp-block-latest-comments a { text-decoration: none; } .wp-block-latest-comments__comment-date { font-size: 15px; } .wp-block-latest-comments__comment-author, .wp-block-latest-comments__comment-link { font-weight: 700; text-decoration: none; } .wp-block-latest-comments__comment-excerpt p { font-size: inherit; margin: 0; } /*-------------------------------------------------------------- 7.0 Blocks - Colors --------------------------------------------------------------*/ .has-bright-blue-color, .has-bright-blue-color:hover, .has-bright-blue-color:focus, .has-bright-blue-color:active, .has-bright-blue-color:visited { color: #678db8; } .has-bright-blue-background-color, .has-bright-blue-background-color:hover, .has-bright-blue-background-color:focus, .has-bright-blue-background-color:active, .has-bright-blue-background-color:visited { background-color: #678db8; } .has-yellow-color, .has-yellow-color:hover, .has-yellow-color:focus, .has-yellow-color:active, .has-yellow-color:visited { color: #e7ae01; } .has-yellow-background-color, .has-yellow-background-color:hover, .has-yellow-background-color:focus, .has-yellow-background-color:active, .has-yellow-background-color:visited { background-color: #e7ae01; } .has-light-gray-blue-color, .has-light-gray-blue-color:hover, .has-light-gray-blue-color:focus, .has-light-gray-blue-color:active, .has-light-gray-blue-color:visited { color: #abb7c3; } .has-light-gray-blue-background-color, .has-light-gray-blue-background-color:hover, .has-light-gray-blue-background-color:focus, .has-light-gray-blue-background-color:active, .has-light-gray-blue-background-color:visited { background-color: #abb7c3; } .has-medium-gray-color, .has-medium-gray-color:hover, .has-medium-gray-color:focus, .has-medium-gray-color:active, .has-medium-gray-color:visited { color: #6a6c6e; } .has-medium-gray-background-color, .has-medium-gray-background-color:hover, .has-medium-gray-background-color:focus, .has-medium-gray-background-color:active, .has-medium-gray-background-color:visited { background-color: #6a6c6e; } .has-dark-gray-color, .has-dark-gray-color:hover, .has-dark-gray-color:focus, .has-dark-gray-color:active, .has-dark-gray-color:visited { color: #1a1c1e; } .has-dark-gray-background-color, .has-dark-gray-background-color:hover, .has-dark-gray-background-color:focus, .has-dark-gray-background-color:active, .has-dark-gray-background-color:visited { background-color: #1a1c1e; } .has-dark-gray-blue-color, .has-dark-gray-blue-color:hover, .has-dark-gray-blue-color:focus, .has-dark-gray-blue-color:active, .has-dark-gray-blue-color:visited { color: #292c2f; } .has-dark-gray-blue-background-color, .has-dark-gray-blue-background-color:hover, .has-dark-gray-blue-background-color:focus, .has-dark-gray-blue-background-color:active, .has-dark-gray-blue-background-color:visited { background-color: #292c2f; } .has-white-color, .has-white-color:hover, .has-white-color:focus, .has-white-color:active, .has-white-color:visited { color: #fff; } .has-white-background-color, .has-white-background-color:hover, .has-white-background-color:focus, .has-white-background-color:active, .has-white-background-color:visited { background-color: #fff; }