themes-wordpress/ixion/blocks.css

473 lines
9.2 KiB
CSS
Raw Normal View History

2018-11-06 14:59:31 +00:00
/*
Theme Name: Ixion
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
--------------------------------------------------------------*/
/* Captions */
[class^="wp-block-"] figcaption {
margin: 0.8em 0;
text-align: center;
}
/*--------------------------------------------------------------
2.0 Blocks - Common Blocks
--------------------------------------------------------------*/
/* Paragraph */
p.has-drop-cap:not(:focus)::first-letter {
font-size: 124px;
}
/* Images */
.wp-block-cover,
.wp-block-cover.alignleft,
.wp-block-cover.alignright,
.wp-block-cover.aligncenter {
display: flex;
}
/* Full Width */
.no-sidebar figure.alignfull,
.no-sidebar .wp-block-cover.alignfull,
.no-sidebar .wp-block-gallery.alignfull,
.no-sidebar .wp-block-embed.is-type-video.alignfull {
2018-11-06 14:59:31 +00:00
width: 100vw;
max-width: 100vw;
margin-left: 0;
margin-right: 0;
position: relative;
left: 50%;
transform: translateX( -50% );
}
.no-sidebar .wp-block-embed.is-type-video.alignfull iframe {
2018-11-06 14:59:31 +00:00
width: 100% !important;
height: 100% !important;
}
.rtl.no-sidebar figure.alignfull,
.rtl.no-sidebar .wp-block-cover.alignfull,
.rtl.no-sidebar .wp-block-gallery.alignfull,
.rtl.no-sidebar .wp-block-embed.is-type-video.alignfull {
2018-11-06 14:59:31 +00:00
left: auto;
right: 50%;
transform: translateX(50%);
}
/* Wide Width */
@media (min-width: 1024px) {
.no-sidebar figure.alignwide,
.no-sidebar .wp-block-cover.alignwide,
.no-sidebar .wp-block-gallery.alignwide,
.no-sidebar .wp-block-embed.is-type-video.alignwide {
2018-11-06 14:59:31 +00:00
width: 120%;
max-width: 120%;
margin-left: -10%;
margin-right: -10%;
position: relative;
}
.no-sidebar .wp-block-embed.is-type-video.alignwide iframe {
2018-11-06 14:59:31 +00:00
width: 100% !important;
height: 100% !important;
}
}
/* Gallery */
.wp-block-gallery {
margin-bottom: 1.5em;
margin-left: auto;
}
.rtl .wp-block-gallery:not(.alignfull):not(.alignwide) {
margin-right: auto;
}
/* Quote */
.wp-block-quote {
font-style: normal;
margin: 0 1.5em 1.5em;
2018-11-06 14:59:31 +00:00
}
.wp-block-quote,
.wp-block-quote.is-large p,
.wp-block-quote.is-style-large p {
font-style: normal;
2018-11-06 14:59:31 +00:00
}
.wp-block-quote.alignleft {
margin-right: 1.5em;
}
.wp-block-quote.alignright {
margin-left: 1.5em;
}
.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;
2018-11-06 14:59:31 +00:00
}
.wp-block-quote cite:before {
}
.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-size: 80%;
}
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
margin: 0 .75em 1.5em;
2018-11-06 14:59:31 +00:00
}
.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: 24px;
2018-11-06 14:59:31 +00:00
}
.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 a.wp-block-file__button,
.wp-block-file a.wp-block-file__button:visited {
border: 0;
border-radius: 0;
background: #d7b221;
box-shadow: none;
color: white;
font-size: 16px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 1;
padding: 1.4em 1.6em 1.2em;
transition: 0.3s;
}
.wp-block-file a.wp-block-file__button:hover,
.wp-block-file a.wp-block-file__button:focus {
background: #c1a01e;
box-shadow: none;
color: #fff;
transition: 0.3s;
text-decoration: none;
}
/*--------------------------------------------------------------
3.0 Blocks - Formatting Blocks
--------------------------------------------------------------*/
/* Verse */
.wp-block-verse {
background: transparent;
color: inherit;
font-family: inherit;
font-size: inherit;
line-height: inherit;
margin-bottom: 1.5em;
max-width: 100%;
overflow: auto;
padding: 0;
}
/* Code */
.wp-block-code {
background: #eee;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
line-height: 1.6;
margin-bottom: 1.875em;
max-width: 100%;
overflow: auto;
padding: 1.875em;
}
/* Pullquote */
.wp-block-pullquote {
margin: 0;
padding: 0;
border: 0;
}
.wp-block-pullquote blockquote {
2018-11-06 15:31:28 +00:00
border-top: 2px solid #d7b221;
border-bottom: 2px solid #d7b221;
2018-11-06 14:59:31 +00:00
font-style: italic;
font-size: 24px;
margin: 0 0 1.5em;
padding: .8em 0;
}
2018-11-06 15:31:28 +00:00
.wp-block-pullquote cite {
font-size: 18px;
font-style: normal;
}
2018-11-06 14:59:31 +00:00
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
font-size: 24px;
}
.wp-block-pullquote.alignleft {
margin-right: 1.5em;
}
.wp-block-pullquote.alignright {
margin-left: 1.5em;
}
.wp-block-pullquote.alignfull blockquote {
padding-left: 1.5em;
padding-right: 1.5em;
}
.rtl .wp-block-pullquote {
}
.wp-block-pullquote p {
margin: 0;
}
/*--------------------------------------------------------------
4.0 Blocks - Layout Elements
--------------------------------------------------------------*/
/* Buttons */
.wp-block-button .wp-block-button__link {
border: 0;
border-radius: 0;
box-shadow: none;
font-size: 16px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 1;
padding: 1.4em 1.6em 1.2em;
transition: 0.3s;
}
.wp-block-button .wp-block-button__link:active,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
box-shadow: none;
transition: 0.3s;
text-decoration: none;
}
.wp-block-button__link:not(.has-background) {
background: #d7b221;
}
.wp-block-button__link:not(.has-text-color) {
color: #fff;
}
.wp-block-button__link:not(.has-text-color):active,
.wp-block-button__link:not(.has-text-color):focus,
.wp-block-button__link:not(.has-text-color):hover {
color: #fff;
}
.wp-block-button__link:not(.has-background):active,
.wp-block-button__link:not(.has-background):focus,
.wp-block-button__link:not(.has-background):hover {
background: #c1a01e;
}
/* Seperator */
hr.wp-block-separator {
border: 0;
}
.wp-block-separator {
background-color: #eeece8;
border: 0;
height: 1px;
margin-bottom: 1.5em;
max-width: 66%;
}
.wp-block-separator.is-style-wide {
max-width: 100%;
}
/*--------------------------------------------------------------
5.0 Blocks - Widget Blocks
--------------------------------------------------------------*/
/* Categories */
.wp-block-categories.aligncenter {
margin-left: 1.5em;
margin-right: 1.5em;
text-align: center;
}
.wp-block-categories-list.alignleft {
margin-left: 1.5em;
}
/* Latest Comments */
.wp-block-latest-comments {
margin-left: 0;
margin-right: 0;
}
.editor-block-list__block .wp-block-latest-comments__comment-meta a {
box-shadow: none;
font-weight: 700;
text-decoration: none;
}
.wp-block-latest-comments__comment-date {
}
.wp-block-latest-comments .wp-block-latest-comments__comment {
border-top: 1px solid #eeece8;
margin-bottom: 0;
padding: .8em 0;
}
.wp-block-latest-comments__comment-excerpt p:last-child {
margin-bottom: 0;
}
/*--------------------------------------------------------------
6.0 Blocks - Colors
--------------------------------------------------------------*/
.has-dark-gray-color,
.has-dark-gray-color:hover,
.has-dark-gray-color:focus,
.has-dark-gray-color:active {
color: #333333;
}
.has-dark-gray-background-color,
.has-dark-gray-background-color:hover,
.has-dark-gray-background-color:focus,
.has-dark-gray-background-color:active {
background-color: #333333;
}
.has-light-gray-color,
.has-light-gray-color:hover,
.has-light-gray-color:focus,
.has-light-gray-color:active {
color: #eeece8;
}
.has-light-gray-background-color,
.has-light-gray-background-color:hover,
.has-light-gray-background-color:focus,
.has-light-gray-background-color:active {
background-color: #eeece8;
}
.has-white-color,
.has-white-color:hover,
.has-white-color:focus,
.has-white-color:active {
color: #fff;
}
.has-white-background-color,
.has-white-background-color:hover,
.has-white-background-color:focus,
.has-white-background-color:active {
background-color: #fff;
}
.has-yellow-color,
.has-yellow-color:hover,
.has-yellow-color:focus,
.has-yellow-color:active {
color: #d7b221;
2018-11-06 14:59:31 +00:00
}
.has-yellow-background-color,
.has-yellow-background-color:hover,
.has-yellow-background-color:focus,
.has-yellow-background-color:active {
background-color: #d7b221;
2018-11-06 14:59:31 +00:00
}
.has-dark-yellow-color,
.has-dark-yellow-color:hover,
.has-dark-yellow-color:focus,
.has-dark-yellow-color:active {
color: #c1a01e;
2018-11-06 14:59:31 +00:00
}
.has-dark-yellow-background-color,
.has-dark-yellow-background-color:hover,
.has-dark-yellow-background-color:focus,
.has-dark-yellow-background-color:active {
background-color: #c1a01e;
2018-11-06 14:59:31 +00:00
}
.has-black-color,
.has-black-color:hover,
.has-black-color:focus,
.has-black-color:active {
color: #192930;
2018-11-06 14:59:31 +00:00
}
.has-black-background-color,
.has-black-background-color:hover,
.has-black-background-color:focus,
.has-black-background-color:active {
background-color: #192930;
2018-11-06 14:59:31 +00:00
}