themes-wordpress/affinity/blocks.css

264 lines
5.1 KiB
CSS
Raw 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 {
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
}
/* 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 cite:before {
}
.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
}
/* 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 {
background: #1a1a1a;
border: 0;
border-radius: 2px;
color: #fff;
font-family: Montserrat, "Helvetica Neue", sans-serif;
font-weight: 700;
letter-spacing: 0.046875em;
line-height: 1;
padding: 0.84375em 0.875em 0.78125em;
text-transform: uppercase;
2018-10-19 18:22:09 +00:00
}
.wp-block-file .wp-block-file__button:hover,
.wp-block-file .wp-block-file__button:focus {
background: #007acc;
2018-10-19 02:09:22 +00:00
}
.wp-block-file .wp-block-file__button:focus {
outline: thin dotted;
outline-offset: -4px;
}
.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 {
border-radius: 0;
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;
line-height: 1;
transition: 0.3s;
text-decoration: none;
}
.wp-block-button__link:not(.has-text-color),
.wp-block-button__link:not(.has-text-color):hover,
.wp-block-button__link:not(.has-text-color):focus,
.wp-block-button__link:not(.has-text-color):active {
color: white;
}
.wp-block-button__link:not(.has-background) {
background-color: #99908a;
outline: 4px solid #99908a;
border: 2px solid white;
position: relative;
left: 4px;
}
.wp-block-button__link:not(.has-background):active,
.wp-block-button__link:not(.has-background):focus,
.wp-block-button__link:not(.has-background):hover {
outline-color: #5e5853;
background-color: #5e5853;
}
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
--------------------------------------------------------------*/
/* 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;
}
/* Media queries */
@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;
}
}