themes-wordpress/intergalactic-2/blocks.css

530 lines
10 KiB
CSS
Raw Normal View History

/*
Theme Name: Intergalactic 2
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 {
font-size: .778em;
}
/*--------------------------------------------------------------
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 */
figure.alignfull,
.wp-block-cover.alignfull,
.wp-block-gallery.alignfull,
.wp-block-embed.is-type-video.alignfull {
width: 100vw;
max-width: 100vw;
margin-left: 0;
margin-right: 0;
position: relative;
left: 50%;
transform: translateX( -50% );
}
.wp-block-embed.is-type-video.alignfull iframe {
width: 100% !important;
height: 100% !important;
}
.rtl figure.alignfull,
.rtl .wp-block-cover.alignfull,
.rtl .wp-block-gallery.alignfull,
.rtl .wp-block-embed.is-type-video.alignfull {
left: auto;
right: 50%;
transform: translateX(50%);
}
/* Wide Width */
@media (min-width: 1024px) {
figure.alignwide,
.wp-block-cover.alignwide,
.wp-block-gallery.alignwide,
.wp-block-embed.is-type-video.alignwide {
width: 120%;
max-width: 120%;
margin-left: -10%;
margin-right: -10%;
position: relative;
}
.wp-block-embed.is-type-video.alignwide iframe {
width: 100% !important;
height: 100% !important;
}
}
/* Gallery */
.wp-block-gallery {
margin-bottom: 1.5em;
margin-left: auto;
}
2018-11-06 02:34:11 +00:00
.rtl .wp-block-gallery:not(.alignfull):not(.alignwide) {
margin-right: auto;
}
.wp-block-gallery img.size-big,
.wp-block-image img.size-big {
margin: 0;
max-width: 100%;
}
/* Quote */
.wp-block-quote {
margin-bottom: 1.5em;
}
.wp-block-quote,
.wp-block-quote.is-large p,
.wp-block-quote.is-style-large p {
}
2018-11-05 21:28:45 +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 {
}
.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 {
}
.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 a.wp-block-file__button,
.wp-block-file a.wp-block-file__button:visited {
border-radius: 0;
font-size: 18px;
font-weight: bold;
line-height: 1;
padding: .75em;
cursor: pointer;
-webkit-transition: .3s all ease-in-out;
-moz-transition: .3s all ease-in-out;
transition: .3s all ease-in-out;
text-transform: uppercase;
color: #222;
border: 2px solid #222;
background: transparent;
box-shadow: none;
text-shadow: none;
}
.wp-block-file a.wp-block-file__button:hover,
.wp-block-file a.wp-block-file__button:focus {
-webkit-transition: .3s all ease-in-out;
-moz-transition: .3s all ease-in-out;
transition: .3s all ease-in-out;
color: #fff;
border-color: #222;
background: #222;
box-shadow: none;
}
.rtl .wp-block-file * + .wp-block-file__button {
}
/*--------------------------------------------------------------
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 {
font-family: 'Courier 10 Pitch', Courier, monospace;
font-size: 15px;
line-height: 1.6;
overflow: auto;
max-width: 100%;
margin-bottom: 1.6em;
padding: 1.6em;
background: #eee;
}
/* Pullquote */
.wp-block-pullquote {
margin: 0;
padding: 0;
border: 0;
}
.wp-block-pullquote blockquote {
2018-11-05 21:25:30 +00:00
border-top: 2px solid currentColor;
border-bottom: 2px solid currentColor;
font-style: italic;
font-size: 24px;
2018-11-05 21:25:30 +00:00
margin: 0 0 1.5em;
padding: .75em 0;
color: #767676;
}
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
font-size: 24px;
}
2018-11-05 21:28:45 +00:00
.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;
}
/* Table */
.wp-block-table,
.wp-block-table th,
.wp-block-table td {
}
.wp-block-table {
}
.wp-block-table th,
.wp-block-table td {
}
.wp-block-table th {
}
.wp-block-table td {
}
.rtl .wp-block-table th,
.rtl .wp-block-table td {
}
/*--------------------------------------------------------------
4.0 Blocks - Layout Elements
--------------------------------------------------------------*/
/* Buttons */
.wp-block-button .wp-block-button__link {
border-radius: 0;
font-size: 18px;
font-weight: bold;
line-height: 1;
padding: .75em;
cursor: pointer;
-webkit-transition: .3s all ease-in-out;
-moz-transition: .3s all ease-in-out;
transition: .3s all ease-in-out;
text-transform: uppercase;
border: 2px solid currentColor;
box-shadow: none;
text-shadow: none;
}
.wp-block-button .wp-block-button__link:active,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
}
.wp-block-button__link:not(.has-background) {
background: transparent;
border: 2px solid #222;
}
.wp-block-button__link:not(.has-background):focus {
border-color: #222;
background: #222;
}
.wp-block-button__link:not(.has-text-color) {
color: #222;
}
.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: #222;
border: 2px solid #222;
}
/* Seperator */
hr.wp-block-separator {
border: 0;
}
.wp-block-separator {
height: 1px;
margin-bottom: 1.5em;
border: 0;
background-color: #ccc;
max-width: 100%;
}
.wp-block-separator.is-style-wide {
max-width: 120%;
margin-left: -10%;
margin-right: -10%;
}
/*--------------------------------------------------------------
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 #ccc;
margin-bottom: 0;
padding: .75em 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 {
2018-11-05 21:09:28 +00:00
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 {
2018-11-05 21:09:28 +00:00
background-color: #333333;
}
2018-11-05 21:09:28 +00:00
.has-dark-green-color,
.has-dark-green-color:hover,
.has-dark-green-color:focus,
.has-dark-green-color:active {
color: #557d73;
}
2018-11-05 21:09:28 +00:00
.has-dark-green-background-color,
.has-dark-green-background-color:hover,
.has-dark-green-background-color:focus,
.has-dark-green-background-color:active {
background-color: #557d73;
}
.has-light-gray-color,
.has-light-gray-color:hover,
.has-light-gray-color:focus,
.has-light-gray-color:active {
2018-11-05 21:09:28 +00:00
color: #cccccc;
}
.has-light-gray-background-color,
.has-light-gray-background-color:hover,
.has-light-gray-background-color:focus,
.has-light-gray-background-color:active {
2018-11-05 21:09:28 +00:00
background-color: #cccccc;
}
.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;
}
2018-11-05 21:09:28 +00:00
.has-purple-color,
.has-purple-color:hover,
.has-purple-color:focus,
.has-purple-color:active {
color: #81699b;
}
2018-11-05 21:09:28 +00:00
.has-purple-background-color,
.has-purple-background-color:hover,
.has-purple-background-color:focus,
.has-purple-background-color:active {
background-color: #81699b;
}
2018-11-05 21:09:28 +00:00
.has-dark-purple-color,
.has-dark-purple-color:hover,
.has-dark-purple-color:focus,
.has-dark-purple-color:active {
color: #553a72;
}
2018-11-05 21:09:28 +00:00
.has-dark-purple-background-color,
.has-dark-purple-background-color:hover,
.has-dark-purple-background-color:focus,
.has-dark-purple-background-color:active {
background-color: #553a72;
}
.has-black-color,
.has-black-color:hover,
.has-black-color:focus,
.has-black-color:active {
2018-11-05 21:09:28 +00:00
color: #222222;
}
.has-black-background-color,
.has-black-background-color:hover,
.has-black-background-color:focus,
.has-black-background-color:active {
2018-11-05 21:09:28 +00:00
background-color: #222222;
}