|
@@ -0,0 +1,289 @@
|
|
|
+/*
|
|
|
+Theme Name: Independent Publisher 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
|
|
|
+--------------------------------------------------------------*/
|
|
|
+
|
|
|
+#page {
|
|
|
+ overflow-x: hidden; /* prevents side-scrolling caused by use of vw */
|
|
|
+}
|
|
|
+
|
|
|
+.alignfull,
|
|
|
+.alignwide {
|
|
|
+ clear: both;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+body:not(.has-sidebar) .alignwide {
|
|
|
+ margin-left: calc(25% - 25vw);
|
|
|
+ margin-right: calc(25% - 25vw);
|
|
|
+ width: auto;
|
|
|
+}
|
|
|
+
|
|
|
+body:not(.has-sidebar) .alignfull {
|
|
|
+ margin-left: calc(50% - 50vw);
|
|
|
+ margin-right: calc(50% - 50vw);
|
|
|
+ width: auto;
|
|
|
+}
|
|
|
+
|
|
|
+/* Make non image-based blocks a bit narrower, so they don't get cut off. */
|
|
|
+body:not(.has-sidebar) .wp-block-columns.alignfull,
|
|
|
+body:not(.has-sidebar) .wp-block-audio.alignfull,
|
|
|
+body:not(.has-sidebar) .wp-block-table.alignfull,
|
|
|
+body:not(.has-sidebar) .wp-block-latest-comments.alignfull,
|
|
|
+body:not(.has-sidebar) .wp-block-categories.alignfull,
|
|
|
+body:not(.has-sidebar) .wp-block-latest-posts.alignfull {
|
|
|
+ margin-left: calc(50% - 48vw);
|
|
|
+ margin-right: calc(50% - 48vw);
|
|
|
+}
|
|
|
+
|
|
|
+/*--------------------------------------------------------------
|
|
|
+2.0 General Block Styles
|
|
|
+--------------------------------------------------------------*/
|
|
|
+
|
|
|
+/* Override theme's large image styles when in blocks */
|
|
|
+body:not(.has-sidebar) [class^="wp-block-"] img.size-big {
|
|
|
+ margin-left: 0 !important;
|
|
|
+ max-width: 100% !important;
|
|
|
+ width: auto !important;
|
|
|
+}
|
|
|
+
|
|
|
+body:not(.has-sidebar) .wp-block-image.alignfull img.size-big,
|
|
|
+body:not(.has-sidebar) .wp-block-image.alignwide img.size-big {
|
|
|
+ max-width: 1000% !important;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/*--------------------------------------------------------------
|
|
|
+3.0 Blocks - Common Blocks
|
|
|
+--------------------------------------------------------------*/
|
|
|
+
|
|
|
+/* Paragraph */
|
|
|
+
|
|
|
+p.has-drop-cap:not(:focus)::first-letter {
|
|
|
+ font-size: 5em;
|
|
|
+ margin-top: 0.15em;
|
|
|
+}
|
|
|
+
|
|
|
+/* Gallery */
|
|
|
+
|
|
|
+.wp-block-gallery {
|
|
|
+ margin: 0 0 0.875em;
|
|
|
+}
|
|
|
+
|
|
|
+/* Quote */
|
|
|
+
|
|
|
+.wp-block-quote.is-large,
|
|
|
+.wp-block-quote.is-style-large {
|
|
|
+ border: 0;
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-quote.is-large cite,
|
|
|
+.wp-block-quote.is-style-large cite {
|
|
|
+ text-align: inherit;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/* Audio */
|
|
|
+
|
|
|
+.wp-block-audio {
|
|
|
+ margin-bottom: 0.875em;
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-audio audio {
|
|
|
+ display: block;
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+/* Cover */
|
|
|
+
|
|
|
+/* File */
|
|
|
+
|
|
|
+.wp-block-file__button {
|
|
|
+ box-sizing: content-box;
|
|
|
+ padding: .4375em .875em;
|
|
|
+ -webkit-transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
|
|
|
+ transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
|
|
|
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 400;
|
|
|
+ font-style: normal;
|
|
|
+ text-decoration: none;
|
|
|
+ color: #fff;
|
|
|
+ border: solid 1px transparent;
|
|
|
+ border-radius: 3px;
|
|
|
+ background: #0087be;
|
|
|
+ -webkit-font-smoothing: antialiased;
|
|
|
+ -moz-osx-font-smoothing: grayscale;
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-file__button:focus,
|
|
|
+.wp-block-file__button:active {
|
|
|
+ outline: 0;
|
|
|
+ background: #767676;
|
|
|
+ box-shadow: inset 0 2px 2px rgba(0, 0, 0, .25), 0 0 0 6px rgba(0, 0, 0, .08);
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-file__button:hover {
|
|
|
+ text-decoration: none;
|
|
|
+ color: #fff;
|
|
|
+ background: #767676;
|
|
|
+}
|
|
|
+
|
|
|
+/*--------------------------------------------------------------
|
|
|
+4.0 Blocks - Formatting
|
|
|
+--------------------------------------------------------------*/
|
|
|
+
|
|
|
+/* Verse */
|
|
|
+
|
|
|
+/* Code */
|
|
|
+
|
|
|
+/* Preformatted */
|
|
|
+
|
|
|
+/* Pullquote */
|
|
|
+
|
|
|
+.wp-block-pullquote {
|
|
|
+ border: #0087be solid;
|
|
|
+ border-width: 3px 0;
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-pullquote blockquote {
|
|
|
+ border: 0;
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-pullquote cite {
|
|
|
+ font-size: inherit;
|
|
|
+ font-style: italic;
|
|
|
+ text-transform: none;
|
|
|
+}
|
|
|
+
|
|
|
+/* Table */
|
|
|
+
|
|
|
+/*--------------------------------------------------------------
|
|
|
+5.0 Blocks - Layout Elements
|
|
|
+--------------------------------------------------------------*/
|
|
|
+
|
|
|
+/* Buttons */
|
|
|
+
|
|
|
+.wp-block-button__link {
|
|
|
+ box-sizing: content-box;
|
|
|
+ padding: .4375em .875em;
|
|
|
+ -webkit-transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
|
|
|
+ transition: background 120ms ease-in-out, box-shadow 120ms ease-in-out;
|
|
|
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 400;
|
|
|
+ font-style: normal;
|
|
|
+ text-decoration: none;
|
|
|
+ color: #fff;
|
|
|
+ border: solid 1px transparent;
|
|
|
+ border-radius: 3px;
|
|
|
+ background: #0087be;
|
|
|
+ -webkit-font-smoothing: antialiased;
|
|
|
+ -moz-osx-font-smoothing: grayscale;
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-button__link:focus,
|
|
|
+.wp-block-button__link:active {
|
|
|
+ outline: 0;
|
|
|
+ background: #767676;
|
|
|
+ box-shadow: inset 0 2px 2px rgba(0, 0, 0, .25), 0 0 0 6px rgba(0, 0, 0, .08);
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-button__link:hover {
|
|
|
+ text-decoration: none;
|
|
|
+ color: #fff;
|
|
|
+ background: #767676;
|
|
|
+}
|
|
|
+
|
|
|
+/* Columns */
|
|
|
+
|
|
|
+/* Separator */
|
|
|
+
|
|
|
+.wp-block-separator {
|
|
|
+ border: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-separator:not(.is-style-wide) {
|
|
|
+ margin-left: auto;
|
|
|
+ margin-right: auto;
|
|
|
+ max-width: 100px;
|
|
|
+}
|
|
|
+
|
|
|
+/* Media & Text */
|
|
|
+
|
|
|
+.wp-block-media-text {
|
|
|
+ margin-bottom: 0.875em;
|
|
|
+}
|
|
|
+
|
|
|
+/*--------------------------------------------------------------
|
|
|
+6.0 Blocks - Widgets
|
|
|
+--------------------------------------------------------------*/
|
|
|
+
|
|
|
+/* Latest Comments */
|
|
|
+
|
|
|
+.wp-block-latest-comments {
|
|
|
+ margin-left: 0;
|
|
|
+ margin-right: 0;
|
|
|
+}
|
|
|
+
|
|
|
+/*--------------------------------------------------------------
|
|
|
+7.0 Blocks - Colors
|
|
|
+--------------------------------------------------------------*/
|
|
|
+
|
|
|
+.has-medium-blue-color {
|
|
|
+ color: #0087be;
|
|
|
+}
|
|
|
+
|
|
|
+.has-medium-blue-background-color {
|
|
|
+ background-color: #0087be;
|
|
|
+}
|
|
|
+
|
|
|
+.has-bright-blue-color {
|
|
|
+ color: #00aadc;
|
|
|
+}
|
|
|
+
|
|
|
+.has-bright-blue-background-color {
|
|
|
+ background-color: #00aadc;
|
|
|
+}
|
|
|
+
|
|
|
+.has-dark-gray-color {
|
|
|
+ color: #4d4d4b;
|
|
|
+}
|
|
|
+
|
|
|
+.has-dark-gray-background-color {
|
|
|
+ background-color: #4d4d4b;
|
|
|
+}
|
|
|
+
|
|
|
+.has-light-gray-color {
|
|
|
+ color: #b3b3b1;
|
|
|
+}
|
|
|
+
|
|
|
+.has-light-gray-background-color {
|
|
|
+ background-color: #b3b3b1;
|
|
|
+}
|
|
|
+
|
|
|
+.has-white-color {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.has-white-background-color {
|
|
|
+ background-color: #fff;
|
|
|
+}
|