themes-wordpress/affinity/blocks.css

332 lines
7.2 KiB
CSS
Raw Permalink Normal View History

/*
Theme Name: Affinity
Description: Used to style Gutenberg Blocks.
*/
2018-10-19 02:09:22 +00:00
/*--------------------------------------------------------------
>>> 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
2018-10-19 02:09:22 +00:00
--------------------------------------------------------------*/
/*--------------------------------------------------------------
1.0 General Block Styles
--------------------------------------------------------------*/
2018-10-19 02:09:22 +00:00
/* Captions */
2018-10-19 02:09:22 +00:00
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
color: inherit;
font-size: 13.2px;
font-style: italic;
margin-bottom: 1.6em;
max-width: 100%;
}
2018-10-19 02:09:22 +00:00
/*--------------------------------------------------------------
2.0 Blocks - Common Blocks
--------------------------------------------------------------*/
/* Paragraph */
p.has-drop-cap:not(:focus)::first-letter {
font-family: Lora, Baskerville, Georgia, Times, serif;
font-size: 64px;
}
/* Images */
.wp-block-cover {
display: flex;
}
/* Gallery */
2018-10-19 02:09:22 +00:00
.wp-block-gallery {
margin-bottom: 1.6em;
margin-left: auto;
2018-10-19 02:09:22 +00:00
}
.wp-block-gallery.is-cropped .blocks-gallery-item a {
overflow: hidden;
}
/* Quote */
2018-10-19 02:09:22 +00:00
.wp-block-quote cite {
display: block;
text-align: right;
font-style: normal;
font-size: 16px;
}
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
padding: .4em 0 .8em;
}
2018-10-19 02:09:22 +00:00
.wp-block-quote.is-large p,
.wp-block-quote.is-style-large p {
font-size: 26px;
2018-10-19 18:22:09 +00:00
}
@media screen and ( min-width: 68em ) {
.wp-block-quote,
.wp-block-pullquote blockquote {
font-size: 26px;
}
.wp-block-quote.is-large p,
.wp-block-quote.is-style-large p {
font-size: 36px;
}
}
/* Audio */
.wp-block-audio audio {
2018-10-19 18:22:09 +00:00
display: block;
width: 100%;
}
2018-10-19 02:09:22 +00:00
/* File */
.wp-block-file .wp-block-file__button {
border-radius: 0;
display: inline-block;
font-size: 13.2px;
font-family: Raleway, "Helvetica Neue", sans-serif;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: bold;
line-height: 1;
transition: 0.3s;
text-decoration: none;
background-color: #99908a;
outline: 4px solid #99908a;
border: 2px solid white;
position: relative;
left: 4px;
2018-10-19 18:22:09 +00:00
}
.wp-block-file .wp-block-file__button:hover,
.wp-block-file .wp-block-file__button:focus,
.wp-block-file .wp-block-file__button:focus {
outline-color: #5e5853;
background-color: #5e5853;
color: #fff;
}
.rtl .wp-block-file * + .wp-block-file__button {
margin-left: 0.75em;
margin-right: 0;
}
/*--------------------------------------------------------------
3.0 Blocks - Formatting Blocks
--------------------------------------------------------------*/
/* Verse */
.wp-block-verse {
background-color: transparent;
padding: 0;
font-family: inherit;
color: inherit;
font-size: inherit;
}
/* Code */
.wp-block-code {
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 13.2px;
2018-10-19 02:09:22 +00:00
}
/* Pullquote */
2018-10-19 02:09:22 +00:00
.wp-block-pullquote {
padding: 0;
}
2018-10-19 02:09:22 +00:00
.wp-block-pullquote blockquote {
color: #99908a;
font-size: 18px;
font-style: italic;
margin: 0;
border-top: 3px solid #e8e9ea;
padding-top: .8em;
border-bottom: 1px solid #e8e9ea;
margin-bottom: .8em;
padding-bottom: .8em;
}
2018-10-26 00:19:35 +00:00
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
font-size: 18px;
}
.wp-block-pullquote cite {
color: #99908a;
2018-10-19 02:09:22 +00:00
display: block;
text-transform: uppercase;
2018-10-26 00:19:35 +00:00
text-align: center;
font-size: 14px;
2018-10-19 02:09:22 +00:00
}
/*--------------------------------------------------------------
4.0 Blocks - Layout Elements
--------------------------------------------------------------*/
2018-10-19 02:09:22 +00:00
/* Buttons */
2018-10-19 02:09:22 +00:00
.wp-block-button .wp-block-button__link {
display: inline-block;
2018-10-19 02:09:22 +00:00
font-size: 13.2px;
font-family: Raleway, "Helvetica Neue", sans-serif;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: bold;
left: 4px;
2018-10-19 02:09:22 +00:00
line-height: 1;
2019-02-06 21:41:15 +00:00
position: relative;
2018-10-19 02:09:22 +00:00
transition: 0.3s;
text-decoration: none;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
2019-02-06 21:41:15 +00:00
border: 2px solid white;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color),
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):focus,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):active {
color: white;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
background-color: #99908a;
box-shadow: 0 0 0 4px #99908a;
}
2019-02-06 21:41:15 +00:00
.entry-content .wp-block-button .wp-block-button__link:active,
.entry-content .wp-block-button .wp-block-button__link.has-background:active,
2019-02-06 21:41:15 +00:00
.entry-content .wp-block-button .wp-block-button__link:focus,
.entry-content .wp-block-button .wp-block-button__link.has-background:focus,
.entry-content .wp-block-button .wp-block-button__link:hover,
.entry-content .wp-block-button .wp-block-button__link.has-background:hover {
box-shadow: 0 0 0 4px #5e5853;
background-color: #5e5853;
2019-02-06 21:41:15 +00:00
color: #fff;
}
2018-10-19 02:09:22 +00:00
/* Seperator */
hr.wp-block-separator {
border: 0;
2018-10-19 02:09:22 +00:00
}
.wp-block-separator {
margin-left: auto;
margin-right: auto;
max-width: 66%;
2018-10-19 02:09:22 +00:00
}
.wp-block-separator.is-style-wide {
max-width: 100%;
2018-10-19 02:09:22 +00:00
}
/*--------------------------------------------------------------
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;
}
/* Latest Comments */
.wp-block-latest-comments {
margin-left: 0;
margin-right: 0;
}
.wp-block-latest-comments__comment-meta a {
box-shadow: none;
font-weight: 700;
2018-10-19 02:09:22 +00:00
}
.wp-block-latest-comments__comment-date {
font-size: 13px;
2018-10-19 02:09:22 +00:00
}
.wp-block-latest-comments .wp-block-latest-comments__comment {
margin-bottom: 1.6em;
padding: 0;
}
.wp-block-latest-comments__comment-excerpt p:last-child {
margin-bottom: 0;
}
/*--------------------------------------------------------------
6.0 Colors
--------------------------------------------------------------*/
.wp-block-button__link.has-pale-pink-background-color:link {
box-shadow: 0 0 0 4px #f78da7;
}
.wp-block-button__link.has-vivid-red-background-color:link {
box-shadow: 0 0 0 4px #cf2e2e;
}
.wp-block-button__link.has-luminous-vivid-orange-background-color:link {
box-shadow: 0 0 0 4px #ff6900;
}
.wp-block-button__link.has-luminous-vivid-amber-background-color:link {
box-shadow: 0 0 0 4px #fcb900;
}
.wp-block-button__link.has-light-green-cyan-background-color:link {
box-shadow: 0 0 0 4px #7bdcb5;
}
.wp-block-button__link.has-vivid-green-cyan-background-color:link {
box-shadow: 0 0 0 4px #00d084;
}
.wp-block-button__link.has-pale-cyan-blue-background-color:link {
box-shadow: 0 0 0 4px #8ed1fc;
}
.wp-block-button__link.has-vivid-cyan-blue-background-color:link {
box-shadow: 0 0 0 4px #0693e3;
}
.wp-block-button__link.has-very-light-gray-background-color:link {
box-shadow: 0 0 0 4px #eee;
}
.wp-block-button__link.has-cyan-bluish-gray-background-color:link {
box-shadow: 0 0 0 4px #abb8c3;
}
.wp-block-button__link.has-very-dark-gray-background-color:link {
box-shadow: 0 0 0 4px #313131;
}