/* Theme Name: Karuna Description: Used to style Gutenberg Blocks. */ /*-------------------------------------------------------------- >>> TABLE OF CONTENTS: ---------------------------------------------------------------- 1.0 General Block Styles 2.0 Blocks - Common Blocks 3.0 Blocks - Formatting 4.0 Blocks - Layout Elements 5.0 Blocks - Widgets 6.0 Blocks - Colors --------------------------------------------------------------*/ /*-------------------------------------------------------------- 1.0 General Block Styles --------------------------------------------------------------*/ /* Alignments */ #page { overflow-x: hidden; /* prevents slight side-scroll with full aligned images. */ } /* Full Width */ .no-sidebar .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; position: relative; width: 100vw; } .no-sidebar .wp-block-columns.alignfull, .no-sidebar .wp-block-latest-comments.alignfull, .no-sidebar .wp-block-categories.alignfull, .no-sidebar .wp-block-archives.alignfull, .no-sidebar .wp-block-latest-posts.alignfull, .no-sidebar .wp-block-file.alignfull { padding-left: 1.6em; padding-right: 1.6em; } .no-sidebar .wp-block-embed.is-type-video.alignfull iframe { width: 100% !important; height: 100% !important; } .rtl.no-sidebar .alignfull { left: auto; right: 50%; transform: translateX(50%); } /* Wide Width */ @media (min-width: 1024px) { .no-sidebar .alignwide { width: 120%; max-width: 120%; margin-left: -10%; margin-right: -10%; position: relative; } .no-sidebar .wp-block-embed.is-type-video.alignwide iframe { width: 100% !important; height: 100% !important; } } /* Captions */ [class^="wp-block-"] figcaption { font-size: inherit; font-style: italic; text-align: center; } [class^="wp-block-"]:not(.wp-block-gallery) figcaption { color: inherit; } /*-------------------------------------------------------------- 2.0 Blocks - Common Blocks --------------------------------------------------------------*/ /* Paragraph */ p.has-drop-cap:not(:focus)::first-letter { font-size: 130px; } /* Images */ .wp-block-cover, .wp-block-cover.alignleft, .wp-block-cover.alignright, .wp-block-cover.aligncenter { display: flex; } /* Gallery */ .wp-block-gallery { margin-bottom: 1.6em; margin-left: auto; } .rtl .wp-block-gallery:not(.alignfull):not(.alignwide) { margin-right: auto; } /* Quote */ .wp-block-quote { font-size: 26px; font-style: normal; font-weight: bold; margin: 0 1.6em 1.6em; padding: 0; } .wp-block-quote, .wp-block-quote.is-large p, .wp-block-quote.is-style-large p { font-style: normal; } .wp-block-quote.alignleft { margin-right: 1.6em; } .wp-block-quote.alignright { margin-left: 1.6em; } .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft, .rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright { } .wp-block-quote cite { font-style: italic; } .wp-block-quote.is-large cite, .wp-block-quote.is-large footer, .wp-block-quote.is-style-large cite, .wp-block-quote.is-style-large footer { font-style: italic; font-size: inherit; } .wp-block-quote.is-large, .wp-block-quote.is-style-large { margin: 0 .8em .8em; } .wp-block-quote.is-large, .wp-block-quote.is-style-large, .wp-block-quote.is-large p, .wp-block-quote.is-style-large p { font-size: 32px; } .wp-block-quote.is-large p, .wp-block-quote.is-style-large p { margin-bottom: .8em; } .rtl .wp-block-quote { border: 0; } /* Audio */ .wp-block-audio audio { display: block; width: 100%; } /* File */ .wp-block-file { margin: 1.6em 0; } .wp-block-file a.wp-block-file__button, .wp-block-file a.wp-block-file__button:visited { border: 2px solid; border-color: #6636cc; border-radius: 10px; background: transparent; box-shadow: none; color: #6636cc; font-weight: bold; font-size: 16px; font-size: 1rem; letter-spacing: 1px; line-height: 1; padding: 0.8em 1.6em 0.8em; text-shadow: none; text-decoration: none; text-transform: uppercase; transition: 0.3s; } .wp-block-file a.wp-block-file__button:hover, .wp-block-file a.wp-block-file__button:focus { border-color: #85cc36; box-shadow: none; color: #85cc36; } .rtl .wp-block-file a.wp-block-file__button { margin-left: .8em; margin-right: 0; } /* Video */ .wp-block-video.alignfull video { width: 100%; } /*-------------------------------------------------------------- 3.0 Blocks - Formatting Blocks --------------------------------------------------------------*/ /* Verse */ .wp-block-verse { background: transparent; color: inherit; font-family: inherit; font-size: inherit; font-style: italic; line-height: inherit; margin-bottom: 1.6em; max-width: 100%; overflow: auto; padding: 0; } /* Code */ .wp-block-code { background: rgba(0, 0, 0, 0.02); font-family: "Courier 10 Pitch", Courier, monospace; font-size: 15px; line-height: 1.6; margin-bottom: 1.6em; max-width: 100%; overflow: auto; padding: 1.6em; } /* Pullquote */ .wp-block-pullquote { margin: 0; padding: 0; border: 0; } .wp-block-pullquote blockquote { border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; font-style: italic; font-size: 24px; margin: 0 0 1.6em; padding: .8em 0; } .wp-block-pullquote cite { font-size: 18px; font-style: normal; } .wp-block-pullquote.alignleft p, .wp-block-pullquote.alignright p { font-size: 24px; } .wp-block-pullquote.alignleft { margin-right: 1.6em; } .wp-block-pullquote.alignright { margin-left: 1.6em; } .wp-block-pullquote.alignfull blockquote { padding-left: 1.6em; padding-right: 1.6em; } .wp-block-pullquote p { margin: 0 0 .8em; } /* Table */ .no-sidebar .wp-block-table.alignfull { margin-left: .8em; margin-right: .8em; } /*-------------------------------------------------------------- 4.0 Blocks - Layout Elements --------------------------------------------------------------*/ /* Buttons */ .wp-block-button .wp-block-button__link { font-weight: bold; font-size: 16px; font-size: 1rem; letter-spacing: 1px; line-height: 1; padding: 0.8em 1.6em 0.8em; text-decoration: none; text-transform: uppercase; transition: 0.3s; } .wp-block-button__link { background-color: #6636cc; color: #fff; border-radius: 10px; } .wp-block-button__link:visited { color: #fff; } .is-style-outline .wp-block-button__link:not(.has-text-color) { color: #6636cc; } .wp-block-button__link:active, .wp-block-button__link:focus, .wp-block-button__link:hover { opacity: 0.8; } /* Seperator */ hr.wp-block-separator { border: 0; } .wp-block-separator { background-color: #dddddd; border: 0; height: 1px; margin-bottom: 1.6em; } .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { max-width: 100px; } .wp-block-separator.is-style-wide { max-width: 100%; } /* Media & Text */ .wp-block-media-text { margin-bottom: 1.6em; } .wp-block-media-text *:last-child { margin-bottom: 0; } /*-------------------------------------------------------------- 5.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; } /* Categories */ .wp-block-categories.aligncenter { margin-left: 1.6em; margin-right: 1.6em; } .wp-block-categories-list.alignleft { margin-left: 1.6em; } /* Latest Comments */ .wp-block-latest-comments { margin-left: 0; margin-right: 0; } .wp-block-latest-comments__comment-meta, .wp-block-latest-comments__comment-excerpt p { font-size: 16px; } .wp-block-latest-comments__comment-date { font-size: 14px; } @media screen and (min-width: 768px) { .wp-block-latest-comments__comment-meta, .wp-block-latest-comments__comment-excerpt p { font-size: 18px; } } .editor-block-list__block .wp-block-latest-comments__comment-meta a { box-shadow: none; font-weight: 700; text-decoration: none; } .wp-block-latest-comments .wp-block-latest-comments__comment { border-top: 1px solid #dddddd; margin-bottom: 0; padding: .8em 0; } .wp-block-latest-comments__comment-excerpt p:last-child { margin-bottom: 0; } /* Latest Posts */ .rtl .wp-block-latest-posts { margin-left: 0; margin-right: 0; } /*-------------------------------------------------------------- 6.0 Blocks - Colors --------------------------------------------------------------*/ .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: #999; } .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: #999; } .has-light-gray-color, .has-light-gray-color:hover, .has-light-gray-color:focus, .has-light-gray-color:active, .has-light-gray-color:visited { color: #ddd; } .has-light-gray-background-color, .has-light-gray-background-color:hover, .has-light-gray-background-color:focus, .has-light-gray-background-color:active, .has-light-gray-background-color:visited { background-color: #ddd; } .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; } .has-purple-color, .has-purple-color:hover, .has-purple-color:focus, .has-purple-color:active, .has-purple-color:visited { color: #6636cc; } .has-purple-background-color, .has-purple-background-color:hover, .has-purple-background-color:focus, .has-purple-background-color:active, .has-purple-background-color:visited { background-color: #6636cc; } .has-dark-purple-color, .has-dark-purple-color:hover, .has-dark-purple-color:focus, .has-dark-purple-color:active, .has-dark-purple-color:visited { color: #471e9e; } .has-dark-purple-background-color, .has-dark-purple-background-color:hover, .has-dark-purple-background-color:focus, .has-dark-purple-background-color:active, .has-dark-purple-background-color:visited { background-color: #471e9e; } .has-green-color, .has-green-color:hover, .has-green-color:focus, .has-green-color:active, .has-green-color:visited { color: #85cc36; } .has-green-background-color, .has-green-background-color:hover, .has-green-background-color:focus, .has-green-background-color:active, .has-green-background-color:visited { background-color: #85cc36; } .has-dark-green-color, .has-dark-green-color:hover, .has-dark-green-color:focus, .has-dark-green-color:active, .has-dark-green-color:visited { color: #609d1b; } .has-dark-green-background-color, .has-dark-green-background-color:hover, .has-dark-green-background-color:focus, .has-dark-green-background-color:active, .has-dark-green-background-color:visited { background-color: #609d1b; } .has-black-color, .has-black-color:hover, .has-black-color:focus, .has-black-color:active, .has-black-color:visited { color: #333; } .has-black-background-color, .has-black-background-color:hover, .has-black-background-color:focus, .has-black-background-color:active, .has-black-background-color:visited { background-color: #333; }