487 lines
No EOL
9.7 KiB
CSS
487 lines
No EOL
9.7 KiB
CSS
/*
|
|
Theme Name: Scratchpad
|
|
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
|
|
--------------------------------------------------------------*/
|
|
|
|
/* Alignments */
|
|
|
|
.no-sidebar #page {
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Captions */
|
|
|
|
[class^="wp-block-"] figcaption {
|
|
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
2.0 Blocks - Common Blocks
|
|
--------------------------------------------------------------*/
|
|
|
|
/* Paragraph */
|
|
|
|
p.has-drop-cap:not(:focus)::first-letter {
|
|
font-size: 80px;
|
|
}
|
|
|
|
/* Images */
|
|
|
|
.wp-block-cover,
|
|
.wp-block-cover.alignleft,
|
|
.wp-block-cover.alignright,
|
|
.wp-block-cover.aligncenter {
|
|
display: flex;
|
|
}
|
|
|
|
/* Gallery */
|
|
|
|
.wp-block-gallery {
|
|
margin-bottom: 1.75em;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.rtl .wp-block-gallery:not(.alignfull):not(.alignwide) {
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Quote */
|
|
|
|
.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: 1.5em;
|
|
}
|
|
|
|
.rtl .wp-block-quote {
|
|
border: 0;
|
|
}
|
|
|
|
/* Audio */
|
|
|
|
.wp-block-audio audio {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
/* File */
|
|
|
|
.wp-block-file {
|
|
margin: 1.5em 0;
|
|
}
|
|
|
|
.wp-block-file a.wp-block-file__button,
|
|
.wp-block-file a.wp-block-file__button:visited {
|
|
background: transparent;
|
|
border: 2px solid rgba(119, 119, 119, 0.5);
|
|
border-radius: 255px 15px 225px 15px/15px 225px 15px;
|
|
color: rgba(119, 119, 119, 0.8);
|
|
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
|
|
font-size: 14px;
|
|
letter-spacing: 0.05em;
|
|
outline: none;
|
|
padding: 10px 20px;
|
|
text-shadow: none;
|
|
text-transform: uppercase;
|
|
-webkit-transition: color 0.2s, border-color 0.2s;
|
|
-moz-transition: color 0.2s, border-color 0.2s;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.wp-block-file a.wp-block-file__button:hover,
|
|
.wp-block-file a.wp-block-file__button:focus,
|
|
.wp-block-file a.wp-block-file__button:active {
|
|
border-color: rgba(119, 119, 119, 0.8);
|
|
color: #777;
|
|
}
|
|
|
|
.rtl .wp-block-file a.wp-block-file__button {
|
|
margin-left: 10px;
|
|
margin-right: 0;
|
|
}
|
|
|
|
|
|
/*--------------------------------------------------------------
|
|
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;
|
|
font-size: 0.9375rem;
|
|
line-height: 1.6;
|
|
margin-bottom: 1.6em;
|
|
max-width: 100%;
|
|
overflow: auto;
|
|
padding: 1.6em;
|
|
}
|
|
|
|
/* Pullquote */
|
|
|
|
.wp-block-pullquote {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.wp-block-pullquote blockquote:before {
|
|
display: none;
|
|
}
|
|
|
|
.wp-block-pullquote blockquote {
|
|
border-left: 0;
|
|
border-bottom: 2px solid #bdcbcc;
|
|
border-top: 5px solid #bdcbcc;
|
|
font-size: 28px;
|
|
line-height: 1.6;
|
|
margin: 0 0 1.5em;
|
|
padding: 1.5em;
|
|
}
|
|
|
|
.rtl .wp-block-pullquote blockquote {
|
|
border-right: 0;
|
|
}
|
|
|
|
.wp-block-pullquote cite {
|
|
color: inherit;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.wp-block-pullquote.alignleft,
|
|
.wp-block-pullquote.alignright {
|
|
}
|
|
|
|
.wp-block-pullquote.alignleft blockquote,
|
|
.wp-block-pullquote.alignright blockquote {
|
|
padding: 1.5em 0;
|
|
margin: 0 0 .75em;
|
|
}
|
|
|
|
.wp-block-pullquote.alignleft p,
|
|
.wp-block-pullquote.alignright p {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.wp-block-pullquote p {
|
|
margin: 0 0 .75em;
|
|
}
|
|
|
|
|
|
/*--------------------------------------------------------------
|
|
4.0 Blocks - Layout Elements
|
|
--------------------------------------------------------------*/
|
|
|
|
/* Buttons */
|
|
|
|
.wp-block-button .wp-block-button__link {
|
|
border: 2px solid currentColor;
|
|
border-radius: 255px 15px 225px 15px/15px 225px 15px;
|
|
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
|
|
font-size: 14px;
|
|
letter-spacing: 0.05em;
|
|
outline: none;
|
|
padding: 10px 20px;
|
|
text-shadow: none;
|
|
text-transform: uppercase;
|
|
-webkit-transition: color 0.2s, border-color 0.2s;
|
|
-moz-transition: color 0.2s, border-color 0.2s;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.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;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.wp-block-button__link:not(.has-background) {
|
|
background: transparent;
|
|
border: 2px solid rgba(119, 119, 119, 0.5);
|
|
}
|
|
|
|
.wp-block-button__link:not(.has-text-color) {
|
|
color: rgba(119, 119, 119, 0.8);
|
|
}
|
|
|
|
.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: #777;
|
|
}
|
|
|
|
.wp-block-button__link:not(.has-background):active,
|
|
.wp-block-button__link:not(.has-background):focus,
|
|
.wp-block-button__link:not(.has-background):hover {
|
|
border-color: rgba(119, 119, 119, 0.8);
|
|
}
|
|
|
|
.wp-block-button.alignleft {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.wp-block-button.alignright {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.wp-block-button.aligncenter {
|
|
margin: 1.5em auto;
|
|
}
|
|
|
|
/* Seperator */
|
|
|
|
hr.wp-block-separator {
|
|
border: 0;
|
|
}
|
|
|
|
.wp-block-separator {
|
|
background-color: #ccc;
|
|
border: 0;
|
|
height: 1px;
|
|
margin-bottom: 1.5em;
|
|
max-width: 100px;
|
|
}
|
|
|
|
.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 .wp-block-latest-comments__comment {
|
|
border-top: 1px solid #ccc;
|
|
margin-bottom: 0;
|
|
padding: .75em 0;
|
|
}
|
|
|
|
.wp-block-latest-comments .avatar,
|
|
.wp-block-latest-comments__comment-avatar {
|
|
margin: 0;
|
|
}
|
|
|
|
.wp-block-latest-comments__comment-excerpt p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.wp-block-latest-posts.is-grid,
|
|
.rtl .wp-block-latest-posts.is-grid {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
6.0 Blocks - Colors
|
|
--------------------------------------------------------------*/
|
|
|
|
.has-medium-gray-color,
|
|
.has-medium-gray-color:hover,
|
|
.has-medium-gray-color:focus,
|
|
.has-medium-gray-color:active {
|
|
color: #999;
|
|
}
|
|
|
|
.has-medium-gray-background-color,
|
|
.has-medium-gray-background-color:hover,
|
|
.has-medium-gray-background-color:focus,
|
|
.has-medium-gray-background-color:active {
|
|
background-color: #999;
|
|
}
|
|
|
|
.has-light-gray-color,
|
|
.has-light-gray-color:hover,
|
|
.has-light-gray-color:focus,
|
|
.has-light-gray-color:active {
|
|
color: #bdcbcc;
|
|
}
|
|
|
|
.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: #bdcbcc;
|
|
}
|
|
|
|
.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-orange-color,
|
|
.has-orange-color:hover,
|
|
.has-orange-color:focus,
|
|
.has-orange-color:active {
|
|
color: #d16221;
|
|
}
|
|
|
|
.has-orange-background-color,
|
|
.has-orange-background-color:hover,
|
|
.has-orange-background-color:focus,
|
|
.has-orange-background-color:active {
|
|
background-color: #d16221;
|
|
}
|
|
|
|
.has-yellow-color,
|
|
.has-yellow-color:hover,
|
|
.has-yellow-color:focus,
|
|
.has-yellow-color:active {
|
|
color: #e4b500;
|
|
}
|
|
|
|
.has-yellow-background-color,
|
|
.has-yellow-background-color:hover,
|
|
.has-yellow-background-color:focus,
|
|
.has-yellow-background-color:active {
|
|
background-color: #e4b500;
|
|
}
|
|
|
|
.has-blue-color,
|
|
.has-blue-color:hover,
|
|
.has-blue-color:focus,
|
|
.has-blue-color:active {
|
|
color: #7ba6a9;
|
|
}
|
|
|
|
.has-blue-background-color,
|
|
.has-blue-background-color:hover,
|
|
.has-blue-background-color:focus,
|
|
.has-blue-background-color:active {
|
|
background-color: #7ba6a9;
|
|
}
|
|
|
|
.has-dark-blue-color,
|
|
.has-dark-blue-color:hover,
|
|
.has-dark-blue-color:focus,
|
|
.has-dark-blue-color:active {
|
|
color: #537375;
|
|
}
|
|
|
|
.has-dark-blue-background-color,
|
|
.has-dark-blue-background-color:hover,
|
|
.has-dark-blue-background-color:focus,
|
|
.has-dark-blue-background-color:active {
|
|
background-color: #537375;
|
|
}
|
|
|
|
.has-dark-gray-color,
|
|
.has-dark-gray-color:hover,
|
|
.has-dark-gray-color:focus,
|
|
.has-dark-gray-color:active {
|
|
color: #777;
|
|
}
|
|
|
|
.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: #777;
|
|
}
|
|
|
|
.has-black-color,
|
|
.has-black-color:hover,
|
|
.has-black-color:focus,
|
|
.has-black-color:active {
|
|
color: #222;
|
|
}
|
|
|
|
.has-black-background-color,
|
|
.has-black-background-color:hover,
|
|
.has-black-background-color:focus,
|
|
.has-black-background-color:active {
|
|
background-color: #222;
|
|
} |