Merge branch 'master' into add/tools-resources
This commit is contained in:
commit
a1edbc21af
603 changed files with 172194 additions and 776 deletions
1
.github/ISSUE_TEMPLATE.md
vendored
1
.github/ISSUE_TEMPLATE.md
vendored
|
@ -12,4 +12,3 @@
|
|||
|
||||
* User report: [shortlink to chat/forum thread/ticket, ie #12345-hc]
|
||||
* Follow-up ticket: [shortlink to ticket, ie #12345-zd]
|
||||
* User's site: [link to user's site, including the specific page/post where issue is present]
|
||||
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
sidebarPosBottom = 0;
|
||||
}
|
||||
|
||||
// Add 'below-entry-meta' to elements below the entry meta.
|
||||
// Add 'below-sidebar' to elements below the sidebar.
|
||||
if ( elementPosTop > sidebarPosBottom ) {
|
||||
element.addClass( 'below-sidebar' );
|
||||
} else {
|
||||
|
@ -132,7 +132,7 @@
|
|||
} );
|
||||
}
|
||||
|
||||
//Apply classes to aligned left and right elements (blockquotes, captions, images)
|
||||
//Apply classes to aligned left, right, wide, and full elements (blockquotes, captions, images)
|
||||
function moveAlignedElements() {
|
||||
|
||||
var ltr = true;
|
||||
|
@ -145,6 +145,15 @@
|
|||
clearTimeout( resizeTimer );
|
||||
resizeTimer = setTimeout( function() {
|
||||
|
||||
belowEntryMetaClass( 'figure.wp-block-image.alignwide' );
|
||||
belowSidebarClass( 'figure.wp-block-image.alignfull, figure.wp-block-image.alignwide' );
|
||||
|
||||
belowEntryMetaClass( '.wp-block-cover.alignwide, .wp-block-gallery.alignwide' );
|
||||
belowSidebarClass( '.wp-block-cover.alignfull, .wp-block-cover.alignwide, .wp-block-gallery.alignfull, .wp-block-gallery.alignwide' );
|
||||
|
||||
belowEntryMetaClass( '.wp-block-embed.is-type-video.alignwide' );
|
||||
belowSidebarClass( '.wp-block-embed.is-type-video.alignfull, .wp-block-embed.is-type-video.alignwide' );
|
||||
|
||||
if ( true == ltr ) {
|
||||
belowEntryMetaClass( 'img.alignleft:not( figure > img.alignleft ), figure.alignleft' );
|
||||
belowEntryMetaClass( 'blockquote.alignleft' );
|
||||
|
@ -166,6 +175,15 @@
|
|||
}, 300 );
|
||||
} );
|
||||
|
||||
belowEntryMetaClass( 'figure.wp-block-image.alignwide' );
|
||||
belowSidebarClass( 'figure.wp-block-image.alignfull, figure.wp-block-image.alignwide' );
|
||||
|
||||
belowEntryMetaClass( '.wp-block-cover.alignwide, .wp-block-gallery.alignwide' );
|
||||
belowSidebarClass( '.wp-block-cover.alignfull, .wp-block-cover.alignwide, .wp-block-gallery.alignfull, .wp-block-gallery.alignwide' );
|
||||
|
||||
belowEntryMetaClass( '.wp-block-embed.is-type-video.alignwide' );
|
||||
belowSidebarClass( '.wp-block-embed.is-type-video.alignfull, .wp-block-embed.is-type-video.alignwide' );
|
||||
|
||||
if ( true == ltr ) {
|
||||
belowEntryMetaClass( 'img.alignleft:not( figure > img.alignleft ), figure.alignleft' );
|
||||
belowEntryMetaClass( 'blockquote.alignleft' );
|
||||
|
|
277
affinity/blocks.css
Normal file
277
affinity/blocks.css
Normal file
|
@ -0,0 +1,277 @@
|
|||
/*
|
||||
Theme Name: Affinity
|
||||
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-"]:not(.wp-block-gallery) figcaption {
|
||||
color: inherit;
|
||||
font-size: 13.2px;
|
||||
font-style: italic;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
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 */
|
||||
|
||||
.wp-block-gallery {
|
||||
margin-bottom: 1.6em;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.wp-block-gallery.is-cropped .blocks-gallery-item a {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
@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 {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft p,
|
||||
.wp-block-pullquote.alignright p {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
color: #99908a;
|
||||
display: block;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
|
||||
.wp-block-button .wp-block-button__link {
|
||||
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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* Seperator */
|
||||
|
||||
hr.wp-block-separator {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-separator {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 66%;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
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;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
805
affinity/editor-blocks.css
Normal file
805
affinity/editor-blocks.css
Normal file
|
@ -0,0 +1,805 @@
|
|||
|
||||
/*
|
||||
* Theme Name: Affinity
|
||||
* Description: Gutenberg Block Editor Styles
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
2.0 General Block Styles
|
||||
3.0 Blocks - Common Blocks
|
||||
4.0 Blocks - Formatting
|
||||
5.0 Blocks - Layout Elements
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.edit-post-visual-editor .editor-block-list__block p,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
font-size: 16px;
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block {
|
||||
color: #5e5853;
|
||||
}
|
||||
|
||||
.alignleft {
|
||||
margin: .8em 1.6em .8em 0;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
margin: .8em 0 .8em 1.6em;
|
||||
}
|
||||
|
||||
/* Title */
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
color: #5e5853;
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-size: 28px;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
|
||||
.edit-post-visual-editor h1,
|
||||
.edit-post-visual-editor h2,
|
||||
.edit-post-visual-editor h3,
|
||||
.edit-post-visual-editor h4,
|
||||
.edit-post-visual-editor h5,
|
||||
.edit-post-visual-editor h6 {
|
||||
clear: both;
|
||||
color: #5e5853;
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h1 {
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h2 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h3 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h5 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h6 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 46em) {
|
||||
.edit-post-visual-editor h1,
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-size: 47.12px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h2 {
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h3 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h4 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h5 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h6 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Paragraphs */
|
||||
|
||||
.edit-post-visual-editor p {
|
||||
margin: 0 0 1.6em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor blockquote p {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
|
||||
/* Images */
|
||||
|
||||
.wp-block-image figcaption {
|
||||
font-size: 13.2px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 48em ) {
|
||||
.edit-post-visual-editor .editor-block-list__block[data-align=wide] {
|
||||
max-width: 860px;
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 General Block Styles
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Main column width */
|
||||
|
||||
.wp-block {
|
||||
max-width: 567px; /* 537px + 30px padding */
|
||||
}
|
||||
|
||||
/* Link styles */
|
||||
|
||||
.edit-post-visual-editor a,
|
||||
.editor-block-list__block a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a {
|
||||
color: #99908a;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:hover,
|
||||
.edit-post-visual-editor a:focus,
|
||||
.edit-post-visual-editor a:active,
|
||||
.editor-block-list__block a:hover,
|
||||
.editor-block-list__block a:focus,
|
||||
.editor-block-list__block a:active,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:hover,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:focus,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:active {
|
||||
color: #383e44;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
/* List styles */
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul,
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol {
|
||||
margin: 0 0 1.6em 3.2em;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li,
|
||||
.edit-post-visual-editor ol li,
|
||||
.editor-block-list__block ol li,
|
||||
.block-library-list li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
|
||||
.block-library-list li > ul,
|
||||
.edit-post-visual-editor li > ol,
|
||||
.editor-block-list__block li > ol,
|
||||
.block-library-list li > ol {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.rtl .editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.rtl .block-library-list ul,
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 0;
|
||||
margin-right: 1.6em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 1.6em;
|
||||
margin-right: 1.6em;
|
||||
}
|
||||
|
||||
/* Quotes */
|
||||
|
||||
.rtl .editor-block-list__block blockquote {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* Captions */
|
||||
|
||||
[class^="wp-block-"] figcaption {
|
||||
color: #686868;
|
||||
font-style: italic;
|
||||
line-height: 1.6153846154;
|
||||
padding-top: 0.5384615385em;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote {
|
||||
color: #99908a;
|
||||
font-size: 18px;
|
||||
font-style: italic;
|
||||
margin: 0;
|
||||
margin-bottom: .8em;
|
||||
border-top: 3px solid #e8e9ea;
|
||||
border-bottom: 1px solid #e8e9ea;
|
||||
padding-top: .8em;
|
||||
padding-bottom: .8em;
|
||||
}
|
||||
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large),
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
|
||||
color: #99908a;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote__citation {
|
||||
color: #99908a;
|
||||
display: block;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-quote__citation:before {
|
||||
}
|
||||
|
||||
.wp-block-quote em,
|
||||
.wp-block-quote i,
|
||||
.wp-block-quote__citation:before {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-quote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote.alignleft {
|
||||
margin: .8em 1.6em .8em 0;
|
||||
}
|
||||
|
||||
.wp-block-quote.alignright {
|
||||
margin: .8em 0 .8em 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-quote.aligncenter {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
|
||||
.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.is-large,
|
||||
.wp-block-quote.is-style-large {
|
||||
padding: .4em 0 .8em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 68em ) {
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
|
||||
font-size: 36px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Audio */
|
||||
|
||||
/* Cover */
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
|
||||
font-size: 2.0em; /* Cover images inherit the paragraph size; this resets it */
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse pre {
|
||||
color: #5e5853;
|
||||
background: transparent;
|
||||
font-family: inherit;
|
||||
font-size: 18px;
|
||||
line-height: inherit;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 13.2px;
|
||||
}
|
||||
|
||||
/* Classic */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce address {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
color: #99908a;
|
||||
font-size: 18px;
|
||||
font-style: italic;
|
||||
margin: 0;
|
||||
padding: .8em 0;
|
||||
border-top: 3px solid #e8e9ea;
|
||||
border-bottom: 1px solid #e8e9ea;
|
||||
border-left: 0;
|
||||
margin-bottom: .8em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 68em ) {
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
|
||||
font-size: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
|
||||
display: block;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
margin: .8em 1.6em .8em 0;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
margin: .8em 0 .8em 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||
font-size: 18px;
|
||||
margin-top: 0.4em;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
font-size: 16px;
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
font-size: 14px;
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 48em ) {
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
font-size: 47.12px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce pre {
|
||||
background: #e8e9ea;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 13.2px;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table {
|
||||
display: table;
|
||||
margin: 0 0 1.6em;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce .alternate {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table td,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
padding: 0.4em 0.2em;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #e8e9ea;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
font-weight: bold;
|
||||
border-bottom-width: 3px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce th,
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce td {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Definition List styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dd {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* Code styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce code,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce kbd,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce tt,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce var {
|
||||
background: transparent;
|
||||
color: #777;
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
/* Mark, Ins styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce mark,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ins {
|
||||
background: #fff9c0;
|
||||
}
|
||||
|
||||
/* Preformatted */
|
||||
|
||||
.editor-block-list__block .wp-block-preformatted pre {
|
||||
background: #e8e9ea;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 13.2px;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 1.6em;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.editor-block-list__block .wp-block-pullquote blockquote {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
border-color: #e8e9ea;
|
||||
padding: 1.6em 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
font-size: 18px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p {
|
||||
color: #99908a;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation {
|
||||
color: #99908a;
|
||||
display: block;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation:before {
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 68em ) {
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p {
|
||||
font-size: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Table */
|
||||
|
||||
.editor-block-list__block table.wp-block-table {
|
||||
display: table;
|
||||
margin: 0 0 1.6em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-block-list__block table.wp-block-table td,
|
||||
.editor-block-list__block table.wp-block-table th {
|
||||
padding: 0.4em 0.2em;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #e8e9ea;
|
||||
}
|
||||
|
||||
.editor-block-list__block table.wp-block-table th {
|
||||
font-weight: bold;
|
||||
border-bottom-width: 3px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-table th,
|
||||
.rtl .wp-block-table td {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
.wp-block-button .wp-block-button__link {
|
||||
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 !important;
|
||||
transition: 0.3s;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link:hover,
|
||||
.wp-block-button .wp-block-button__link:focus,
|
||||
.wp-block-button .wp-block-button__link:active {
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.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: 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;
|
||||
}
|
||||
|
||||
/* Separator */
|
||||
.wp-block-separator {
|
||||
background-color: #e8e9ea;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin: 0.8em auto;
|
||||
max-width: 66%;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* General Widget styles */
|
||||
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-archives,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/* Latest Comments */
|
||||
|
||||
.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 #d1d1d1;
|
||||
margin-bottom: 0;
|
||||
padding: 1.75em 0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Latest Posts */
|
||||
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
|
||||
margin-bottom: 1em;
|
||||
}
|
503
affinity/editor-style.css
Normal file
503
affinity/editor-style.css
Normal file
|
@ -0,0 +1,503 @@
|
|||
/*
|
||||
Theme Name: Affinity
|
||||
Description: Used to style the TinyMCE editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Table of Contents:
|
||||
*
|
||||
* 1.0 - Body
|
||||
* 2.0 - Typography
|
||||
* 3.0 - Elements
|
||||
* 4.0 - Alignment
|
||||
* 5.0 - Caption
|
||||
* 6.0 - Galleries
|
||||
* 7.0 - Audio / Video
|
||||
* 8.0 - RTL
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* 1.0 - Body
|
||||
*/
|
||||
|
||||
body {
|
||||
color: #1e1c1b;
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
body.post-type-page {
|
||||
max-width: 716px;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 2.0 - Typography
|
||||
*/
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
clear: both;
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 34px;
|
||||
font-size: 2.125rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 29.2px;
|
||||
font-size: 1.825rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 26px;
|
||||
font-size: 1.625rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 18px;
|
||||
font-size: 1.125rem;
|
||||
margin-top: 0.4em;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 14px;
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 46em) {
|
||||
h1 {
|
||||
font-size: 47.12px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
dfn, cite, em, i {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 4px solid #1a1a1a;
|
||||
color: #686868;
|
||||
font-size: 19px;
|
||||
font-style: italic;
|
||||
line-height: 1.4736842105;
|
||||
margin-bottom: 28px;
|
||||
overflow: hidden;
|
||||
padding: 0 0 0 24px;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
blockquote.aligncenter {
|
||||
text-align: center;
|
||||
}
|
||||
blockquote p:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
blockquote blockquote {
|
||||
border-top: 0;
|
||||
border-bottom: 0;
|
||||
padding-left: .8em;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
blockquote cite {
|
||||
display: block;
|
||||
text-align: right;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: "" "";
|
||||
}
|
||||
blockquote:before, blockquote:after, q:before, q:after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
address {
|
||||
margin: 0 0 1.6em;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #e8e9ea;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 13.2px;
|
||||
font-size: 0.825rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 1.6em;
|
||||
}
|
||||
|
||||
code, kbd, tt, var {
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 13.2px;
|
||||
font-size: 0.825rem;
|
||||
}
|
||||
|
||||
abbr, acronym {
|
||||
border-bottom: 1px dotted #666666;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
mark, ins {
|
||||
background: #fff9c0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
big {
|
||||
font-size: 125%;
|
||||
}
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted #d1d1d1;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 3.0 - Elements
|
||||
*/
|
||||
|
||||
hr {
|
||||
background-color: #e8e9ea;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin: 0.8em auto;
|
||||
max-width: 66%;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
margin: 0 0 1.6em 3.2em;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
li > ul,
|
||||
li > ol {
|
||||
margin-bottom: 0;
|
||||
margin-left: 1.6em;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0 1.6em 1.6em;
|
||||
}
|
||||
|
||||
.mce-item-table,
|
||||
table {
|
||||
margin: 0 0 1.6em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
td,
|
||||
th
|
||||
.mce-item-table th,
|
||||
.mce-item-table td {
|
||||
padding: 0.4em 0.2em;
|
||||
border-bottom: 1px solid #e8e9ea;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: bold;
|
||||
border-bottom-width: 3px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
caption {
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
a img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
del {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #99908a;
|
||||
transition: 0.3s;
|
||||
}
|
||||
a:visited {
|
||||
color: #99908a;
|
||||
}
|
||||
a:hover, a:focus, a:active {
|
||||
color: #383e44;
|
||||
}
|
||||
a:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
a:hover, a:active {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 1px solid silver;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 4.0 - Alignment
|
||||
*/
|
||||
|
||||
.alignleft {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin: 0.4em 1.6em 0.4em 0;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
display: inline;
|
||||
float: right;
|
||||
margin: 0.4em 0 0.4em 1.6em;
|
||||
}
|
||||
|
||||
.aligncenter {
|
||||
clear: both;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 5.0 - Caption
|
||||
*/
|
||||
|
||||
.wp-caption {
|
||||
font-size: 13.2px;
|
||||
font-style: italic;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
}
|
||||
.wp-caption img[class*="wp-image-"] {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.wp-caption-text,
|
||||
.wp-caption-dd {
|
||||
margin: 0.8em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 6.0 - Galleries
|
||||
*/
|
||||
|
||||
.mce-content-body .wpview-wrap {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
|
||||
.gallery .gallery-item {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
padding: .4em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.gallery-columns-1 .gallery-item {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.gallery-columns-2 .gallery-item {
|
||||
max-width: 50%;
|
||||
}
|
||||
.gallery-columns-3 .gallery-item {
|
||||
max-width: 33.33%;
|
||||
}
|
||||
.gallery-columns-4 .gallery-item {
|
||||
max-width: 25%;
|
||||
}
|
||||
.gallery-columns-5 .gallery-item {
|
||||
max-width: 20%;
|
||||
}
|
||||
.gallery-columns-6 .gallery-item {
|
||||
max-width: 16.66%;
|
||||
}
|
||||
.gallery-columns-7 .gallery-item {
|
||||
max-width: 14.28%;
|
||||
}
|
||||
.gallery-columns-8 .gallery-item {
|
||||
max-width: 12.5%;
|
||||
}
|
||||
.gallery-columns-9 .gallery-item {
|
||||
max-width: 11.11%;
|
||||
}
|
||||
|
||||
.gallery .gallery-caption {
|
||||
display: block;
|
||||
font-size: 13.2px;
|
||||
font-size: 0.825rem;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 7.0 - Audio / Video
|
||||
*/
|
||||
|
||||
.wp-audio-shortcode a,
|
||||
.wp-playlist a {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.mce-content-body .wp-audio-playlist {
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.mce-content-body .wp-playlist-tracks {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.mce-content-body .wp-playlist-item {
|
||||
padding: .8em 0;
|
||||
}
|
||||
|
||||
.mce-content-body .wp-playlist-item-length {
|
||||
top: .8em;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 8.0 - RTL
|
||||
*/
|
||||
|
||||
.rtl blockquote:not(.alignleft):not(.alignright) {
|
||||
padding: 0 1.6em 0 0;
|
||||
}
|
||||
|
||||
.rtl blockquote blockquote:not(.alignleft):not(.alignright) {
|
||||
margin-right: 0;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.rtl li > ul,
|
||||
.rtl blockquote > ul {
|
||||
margin-right: 1.6em;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.rtl li > ol,
|
||||
.rtl blockquote > ol {
|
||||
margin-right: 1.6em;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.rtl table th,
|
||||
.rtl .mce-item-table th,
|
||||
.rtl table caption {
|
||||
text-align: right;
|
||||
}
|
|
@ -35,6 +35,16 @@ function affinity_setup() {
|
|||
*/
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
/*
|
||||
* Add editor styles
|
||||
*/
|
||||
add_editor_style();
|
||||
|
||||
/*
|
||||
* Add support for responsive embeds.
|
||||
*/
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
/**
|
||||
* Add support for core custom logo
|
||||
* - also see fallback in inc/jetpack.php
|
||||
|
@ -109,7 +119,7 @@ function affinity_content_width() {
|
|||
// Largest width at mobile breakpoint 46em is 820px
|
||||
// Actual width at largest possible screen size is 540px
|
||||
|
||||
$GLOBALS['content_width'] = apply_filters( 'affinity_content_width', 820 );
|
||||
$GLOBALS['content_width'] = apply_filters( 'affinity_content_width', 820 );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'affinity_content_width', 0 );
|
||||
|
||||
|
@ -233,6 +243,9 @@ function affinity_fonts_url() {
|
|||
function affinity_scripts() {
|
||||
wp_enqueue_style( 'affinity-style', get_stylesheet_uri() );
|
||||
|
||||
// Gutenberg styles
|
||||
wp_enqueue_style( 'affinity-blocks', get_template_directory_uri() . '/blocks.css' );
|
||||
|
||||
wp_enqueue_style( 'affinity-fonts', affinity_fonts_url(), array(), null );
|
||||
|
||||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons/genericons.css', array(), '3.4.1' );
|
||||
|
@ -253,6 +266,15 @@ function affinity_scripts() {
|
|||
}
|
||||
add_action( 'wp_enqueue_scripts', 'affinity_scripts' );
|
||||
|
||||
/**
|
||||
* Gutenberg Editor Styles
|
||||
*/
|
||||
function affinity_editor_styles() {
|
||||
wp_enqueue_style( 'affinity-blocks-editor-style', get_template_directory_uri() . '/editor-blocks.css');
|
||||
wp_enqueue_style( 'affinity-fonts', affinity_fonts_url(), array(), null );
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'affinity_editor_styles' );
|
||||
|
||||
|
||||
/* Allow user to adjust opacity of overlay to work with lighter/darker photos */
|
||||
function affinity_style_options() {
|
||||
|
|
|
@ -175,6 +175,7 @@ th {
|
|||
.site-title {
|
||||
right: 1.6em;
|
||||
left: auto;
|
||||
margin: 0 0 0 30%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
|
@ -206,7 +207,7 @@ th {
|
|||
.menu-toggle {
|
||||
right: 100%;
|
||||
left: auto;
|
||||
transform: translateX(100%) translateX(1.6em);
|
||||
transform: translateX(100%) translateX(0.9em);
|
||||
}
|
||||
|
||||
.comment-navigation .nav-next,
|
||||
|
@ -659,4 +660,4 @@ th {
|
|||
transform: translateX(-100%) translateX(-1.6em);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ Theme URI: http://wordpress.com/themes/affinity/
|
|||
Author: Automattic
|
||||
Author URI: http://wordpress.com/themes/
|
||||
Description: Affinity is a classic one-page theme designed with weddings and family announcements in mind.
|
||||
Version: 1.1.0-wpcom
|
||||
Version: 1.1.3-wpcom
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: affinity
|
||||
|
@ -1265,7 +1265,7 @@ body {
|
|||
font-size: 0.825rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
margin: 0;
|
||||
margin: 0 30% 0 0;
|
||||
position: absolute;
|
||||
left: 1.6em;
|
||||
top: 1.6em;
|
||||
|
@ -2436,7 +2436,8 @@ object {
|
|||
.site-title {
|
||||
text-align: left;
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
width: 100%;
|
||||
position: relative;
|
||||
top: auto;
|
||||
left: auto;
|
||||
|
|
413
altofocus/assets/stylesheets/blocks.css
Normal file
413
altofocus/assets/stylesheets/blocks.css
Normal file
|
@ -0,0 +1,413 @@
|
|||
/*
|
||||
Theme Name: Altofocus
|
||||
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
|
||||
7.0 Blocks - Animations
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Block Styles
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Captions */
|
||||
|
||||
[class^="wp-block-"] figcaption {
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
p.has-drop-cap:not(:focus)::first-letter {
|
||||
font-size: 5em;
|
||||
}
|
||||
|
||||
/* Gallery */
|
||||
|
||||
.wp-block-gallery {
|
||||
margin: 0 0 1.75em;
|
||||
}
|
||||
|
||||
.wp-block-gallery figcaption {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote {
|
||||
margin-bottom: 1.75em;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-style: normal;
|
||||
margin-bottom: 1.0em;
|
||||
}
|
||||
|
||||
.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 {
|
||||
text-align: inherit;
|
||||
}
|
||||
|
||||
/* Audio */
|
||||
|
||||
.wp-block-audio {
|
||||
margin-bottom: 1.75em;
|
||||
}
|
||||
|
||||
.wp-block-audio audio {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Cover */
|
||||
|
||||
.wp-block-cover.aligncenter,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-cover-text,
|
||||
.wp-block-cover-image h2 {
|
||||
font-size: 24px;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file a.wp-block-file__button,
|
||||
.wp-block-file a.wp-block-file__button:visited {
|
||||
-webkit-border-radius: 30px;
|
||||
-moz-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
background-color: #fff;
|
||||
border: 1px solid;
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.25);
|
||||
color: #111;
|
||||
display: inline-block;
|
||||
font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 13.875px;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
outline: none;
|
||||
padding: 1em 25px;
|
||||
text-transform: uppercase;
|
||||
-webkit-transition: all 0.3s ease;
|
||||
-moz-transition: all 0.3s ease;
|
||||
-o-transform: all 0.3s ease;
|
||||
-ms-transform: all 0.3s ease;
|
||||
transition: all 0.3s ease;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.wp-block-file a.wp-block-file__button:hover {
|
||||
-webkit-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-moz-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-o-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
background-color: #e38900;
|
||||
border-color: #e38900;
|
||||
color: #fff;
|
||||
opacity: 1;
|
||||
|
||||
}
|
||||
|
||||
.wp-block-file a.wp-block-file__button:focus,
|
||||
.wp-block-file a.wp-block-file__button:active {
|
||||
border-color: #aaa #bbb #bbb;
|
||||
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.125);
|
||||
-webkit-transform: scale(0.925);
|
||||
-moz-transform: scale(0.925);
|
||||
-o-transform: scale(0.925);
|
||||
-ms-transform: scale(0.925);
|
||||
transform: scale(0.925);
|
||||
color: #111;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 37.5em) {
|
||||
.wp-block-file .wp-block-file__button {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse {
|
||||
background: transparent;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
font-style: italic;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
|
||||
.wp-block-button__link {
|
||||
-webkit-border-radius: 30px;
|
||||
-moz-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
border: 1px solid currentColor;
|
||||
box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.25) !important;
|
||||
display: inline-block;
|
||||
font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 13.875px;
|
||||
font-size: 0.925rem;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
outline: none;
|
||||
padding: 1em 25px;
|
||||
text-transform: uppercase;
|
||||
-webkit-transition: all 0.3s ease;
|
||||
-moz-transition: all 0.3s ease;
|
||||
-o-transform: all 0.3s ease;
|
||||
-ms-transform: all 0.3s ease;
|
||||
transition: all 0.3s ease;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color) {
|
||||
color: #111;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.wp-block-button__link:hover {
|
||||
-webkit-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-moz-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-o-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):hover {
|
||||
background: #e38900;
|
||||
border-color: #e38900;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color):hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wp-block-button__link:focus,
|
||||
.wp-block-button__link:active {
|
||||
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.125);
|
||||
-webkit-transform: scale(0.925);
|
||||
-moz-transform: scale(0.925);
|
||||
-o-transform: scale(0.925);
|
||||
-ms-transform: scale(0.925);
|
||||
transform: scale(0.925);
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):focus,
|
||||
.wp-block-button__link:not(.has-background):active {
|
||||
border-color: #aaa #bbb #bbb;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color):focus,
|
||||
.wp-block-button__link:not(.has-text-color):active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 37.5em) {
|
||||
.wp-block-button .wp-block-button__link,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background) {
|
||||
font-size: 15px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Seperator */
|
||||
|
||||
hr.wp-block-separator {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-separator {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 100px;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Media & Text */
|
||||
|
||||
.wp-block-media-text {
|
||||
margin-bottom: 1.75em;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* General Widget styles */
|
||||
|
||||
.wp-block-archives.aligncenter,
|
||||
.wp-block-categories.aligncenter,
|
||||
.wp-block-categories.aligncenter ul,
|
||||
.wp-block-latest-posts.aligncenter,
|
||||
.wp-block-latest-comments.aligncenter {
|
||||
list-style-position: inside;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Latest Posts */
|
||||
|
||||
.wp-block-latest-posts.is-grid {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/* Latest Comments */
|
||||
|
||||
.wp-block-latest-comments {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Colors
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.has-orange-color {
|
||||
color: #e38900 !important;
|
||||
}
|
||||
|
||||
.has-orange-background-color {
|
||||
background-color: #e38900 !important;
|
||||
}
|
||||
|
||||
.has-dark-gray-color {
|
||||
color: #111 !important;
|
||||
}
|
||||
|
||||
.has-dark-gray-background-color {
|
||||
background-color: #111 !important;
|
||||
}
|
||||
|
||||
.has-medium-888-color {
|
||||
color: #111111 !important;
|
||||
}
|
||||
|
||||
.has-medium-gray-background-color {
|
||||
background-color: #888 !important;
|
||||
}
|
||||
|
||||
.has-light-gray-color {
|
||||
color: #ccc !important;
|
||||
}
|
||||
|
||||
.has-light-gray-background-color {
|
||||
background-color: #ccc !important;
|
||||
}
|
||||
|
||||
.has-white-color {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
.has-white-background-color {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
7.0 Blocks - Animations
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
@-webkit-keyframes bounce-reveal {
|
||||
0%,
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
33% {
|
||||
-webkit-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
66% {
|
||||
-webkit-transform: scale(0.9);
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-keyframes bounce-reveal {
|
||||
0%,
|
||||
100% {
|
||||
-moz-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
33% {
|
||||
-moz-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
66% {
|
||||
-moz-transform: scale(0.9);
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
|
||||
@-o-keyframes bounce-reveal {
|
||||
0%,
|
||||
100% {
|
||||
-o-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
33% {
|
||||
-o-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
66% {
|
||||
-o-transform: scale(0.9);
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce-reveal {
|
||||
0%,
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
33% {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
66% {
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
646
altofocus/assets/stylesheets/editor-blocks.css
Normal file
646
altofocus/assets/stylesheets/editor-blocks.css
Normal file
|
@ -0,0 +1,646 @@
|
|||
/*
|
||||
Theme Name: Altofocus
|
||||
Description: Used to style Gutenberg Blocks in the editor.
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
2.0 General Block Styles
|
||||
3.0 Blocks - Common Blocks
|
||||
4.0 Blocks - Formatting
|
||||
5.0 Blocks - Layout Elements
|
||||
6.0 Blocks - Widgets
|
||||
7.0 Blocks - Animations
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
font-size: 13.875px;
|
||||
font-family: "Libre Baskerville", "Georgia", Georgia, "Times New Roman", Times, serif;
|
||||
font-weight: 300;
|
||||
line-height: 1.75em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block {
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block p {
|
||||
font-size: 13.875px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block p:not(:last-child) {
|
||||
margin-bottom: 1.75em
|
||||
}
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-size: 19.6875px;
|
||||
font-family: "Libre Baskerville", "Georgia", Georgia, "Times New Roman", Times, serif;
|
||||
font-weight: 300;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.wp-block-heading h1,
|
||||
.wp-block-heading h2,
|
||||
.wp-block-heading h3,
|
||||
.wp-block-heading h4,
|
||||
.wp-block-heading h5,
|
||||
.wp-block-heading h6,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.wp-block-heading h1,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.wp-block-heading h2,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.wp-block-heading h3,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.wp-block-heading h4,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.wp-block-heading h5,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.wp-block-heading h6,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 37.5em) {
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.edit-post-visual-editor .editor-block-list__block p,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
font-size: 16.875px;
|
||||
}
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-size: 37.5px;
|
||||
}
|
||||
|
||||
.wp-block-heading h1,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
.wp-block-heading h2,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
font-size: 27px;
|
||||
}
|
||||
|
||||
.wp-block-heading h3,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.wp-block-heading h4,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.wp-block-heading h5,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.wp-block-heading h6,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 General Block Styles
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Main column width */
|
||||
|
||||
.wp-block {
|
||||
max-width: 777px; /* 747px + 30px for padding; should be 840px for pages */
|
||||
}
|
||||
|
||||
/* Alignments */
|
||||
|
||||
.alignleft {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
/* Link styles */
|
||||
|
||||
.edit-post-visual-editor a,
|
||||
.editor-block-list__block a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a {
|
||||
color: #e38900;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Caption styles */
|
||||
|
||||
[class^="wp-block-"] figcaption {
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
/* Blockquote styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce cite {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce cite:before {
|
||||
content: "\2014";
|
||||
}
|
||||
|
||||
/* List styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ol {
|
||||
list-style: decimal;
|
||||
margin-left: 1.5em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce li > ol {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
/* Table styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table {
|
||||
border-collapse: collapse;
|
||||
border: 0;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.2);
|
||||
margin: 0 0 1.75em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table td {
|
||||
border: 0;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
||||
padding: 12.5px;
|
||||
}
|
||||
|
||||
/* Definition List styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Pre */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce pre {
|
||||
background-color: #eee;
|
||||
padding: 1.6em;
|
||||
}
|
||||
|
||||
/* Address */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce address {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
/* Definition List styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dd {
|
||||
margin: 0 1.5em 1.5em;
|
||||
}
|
||||
|
||||
/* Code styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce code,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce kbd,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce tt,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce var {
|
||||
background: transparent;
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 14.0625px;
|
||||
}
|
||||
|
||||
/* Mark, Ins styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce mark,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ins {
|
||||
background: #fff9c0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
p.has-drop-cap:not(:focus)::first-letter {
|
||||
font-size: 5em;
|
||||
}
|
||||
|
||||
/* List */
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul,
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol.editor-rich-text__tinymce {
|
||||
margin: 0 0 1.75em 25px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol.editor-rich-text__tinymce {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
|
||||
.block-library-list li > ul,
|
||||
.edit-post-visual-editor li > ol,
|
||||
.editor-block-list__block li > ol,
|
||||
.block-library-list li > ol {
|
||||
margin-bottom: 0;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.rtl .editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.rtl .block-library-list ul,
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol.editor-rich-text__tinymce {
|
||||
margin-left: 0;
|
||||
margin-right: 1.5em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border: 0;
|
||||
margin: 0 25px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote .wp-block-quote__citation {
|
||||
color: #888;
|
||||
font-size: inherit;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.wp-block-quote .wp-block-quote__citation:before{
|
||||
content: "\2014";
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-size: 24px;
|
||||
font-style: normal;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Cover */
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block p.wp-block-cover-text {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file .wp-block-file__textlink {
|
||||
color: #e38900;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
-webkit-border-radius: 30px;
|
||||
-moz-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
background: #fff;
|
||||
border: 1px solid;
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.25);
|
||||
color: #111111;
|
||||
display: inline-block;
|
||||
font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 13.875px;
|
||||
font-size: 0.925rem;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
outline: none;
|
||||
padding: 1em 25px;
|
||||
text-transform: uppercase;
|
||||
-webkit-transition: all 0.3s ease;
|
||||
-moz-transition: all 0.3s ease;
|
||||
-o-transform: all 0.3s ease;
|
||||
-ms-transform: all 0.3s ease;
|
||||
transition: all 0.3s ease;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.wp-block-file a.wp-block-file__button:hover {
|
||||
-webkit-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-moz-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-o-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
background: #e38900;
|
||||
border-color: #e38900;
|
||||
color: #fff;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.wp-block-file a.wp-block-file__button:focus,
|
||||
.wp-block-file a.wp-block-file__button:active {
|
||||
border-color: #aaa #bbb #bbb;
|
||||
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.125);
|
||||
-webkit-transform: scale(0.925);
|
||||
-moz-transform: scale(0.925);
|
||||
-o-transform: scale(0.925);
|
||||
-ms-transform: scale(0.925);
|
||||
transform: scale(0.925);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse pre {
|
||||
font-style: italic;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
background: #eee;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
margin-bottom: 1.75em;
|
||||
padding: 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-code textarea {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Preformatted */
|
||||
|
||||
.wp-block-preformatted {
|
||||
background: #eee;
|
||||
margin-bottom: 1.75em;
|
||||
padding: 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-preformatted pre {
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 14.0625px;
|
||||
line-height: 1.875;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
|
||||
.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation {
|
||||
color: #888;
|
||||
font-size: inherit;
|
||||
font-style: italic;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation:before{
|
||||
content: "\2014";
|
||||
}
|
||||
|
||||
/* Table */
|
||||
|
||||
.wp-block-table {
|
||||
border-collapse: collapse;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.2);
|
||||
margin: 0 0 1.75em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-table th,
|
||||
.wp-block-table td {
|
||||
border: 0;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
||||
padding: 12.5px;
|
||||
}
|
||||
|
||||
.wp-block-table__cell-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Button */
|
||||
|
||||
.wp-block-button .wp-block-button__link {
|
||||
-webkit-border-radius: 30px;
|
||||
-moz-border-radius: 30px;
|
||||
border-radius: 30px;
|
||||
background: #fff;
|
||||
border: 1px solid;
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.25);
|
||||
color: #111111;
|
||||
display: inline-block;
|
||||
font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 13.875px;
|
||||
font-size: 0.925rem;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
outline: none;
|
||||
padding: 1em 25px;
|
||||
text-transform: uppercase;
|
||||
-webkit-transition: all 0.3s ease;
|
||||
-moz-transition: all 0.3s ease;
|
||||
-o-transform: all 0.3s ease;
|
||||
-ms-transform: all 0.3s ease;
|
||||
transition: all 0.3s ease;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link:hover {
|
||||
-webkit-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-moz-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
-o-animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
animation: bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
background: #e38900;
|
||||
border-color: #e38900;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link:focus,
|
||||
.wp-block-button .wp-block-button__link:active {
|
||||
border-color: #aaa #bbb #bbb;
|
||||
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.125);
|
||||
-webkit-transform: scale(0.925);
|
||||
-moz-transform: scale(0.925);
|
||||
-o-transform: scale(0.925);
|
||||
-ms-transform: scale(0.925);
|
||||
transform: scale(0.925);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 37.5em) {
|
||||
.wp-block-button .wp-block-button__link {
|
||||
font-size: 15px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Seperator */
|
||||
|
||||
.wp-block-separator {
|
||||
background-color: #ccc;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.editor-styles-wrapper .wp-block-archives ul,
|
||||
.editor-styles-wrapper .wp-block-categories ul,
|
||||
.editor-styles-wrapper .wp-block-categories ul ul,
|
||||
.editor-styles-wrapper .wp-block-latest-posts ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-archives,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-archives li,
|
||||
.editor-styles-wrapper .wp-block-categories li,
|
||||
.editor-styles-wrapper .wp-block-latest-posts li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-latest-posts.is-grid {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
7.0 Blocks - Animations
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
@-webkit-keyframes bounce-reveal {
|
||||
0%,
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
33% {
|
||||
-webkit-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
66% {
|
||||
-webkit-transform: scale(0.9);
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-keyframes bounce-reveal {
|
||||
0%,
|
||||
100% {
|
||||
-moz-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
33% {
|
||||
-moz-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
66% {
|
||||
-moz-transform: scale(0.9);
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
|
||||
@-o-keyframes bounce-reveal {
|
||||
0%,
|
||||
100% {
|
||||
-o-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
33% {
|
||||
-o-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
66% {
|
||||
-o-transform: scale(0.9);
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce-reveal {
|
||||
0%,
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
33% {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
66% {
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
|
|
@ -85,6 +85,38 @@ function altofocus_setup() {
|
|||
'wp-head-callback' => 'altofocus_custom_background_cb'
|
||||
) ) );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add support for custom color scheme.
|
||||
add_theme_support( 'editor-color-palette', array(
|
||||
array(
|
||||
'name' => esc_html__( 'Orange', 'altofocus' ),
|
||||
'slug' => 'orange',
|
||||
'color' => '#e38900',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Dark Gray', 'altofocus' ),
|
||||
'slug' => 'dark-gray',
|
||||
'color' => '#111',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Medium Gray', 'altofocus' ),
|
||||
'slug' => 'medium-gray',
|
||||
'color' => '#888',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Light Gray', 'altofocus' ),
|
||||
'slug' => 'light-gray',
|
||||
'color' => '#ccc',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'White', 'altofocus' ),
|
||||
'slug' => 'white',
|
||||
'color' => '#fff',
|
||||
),
|
||||
) );
|
||||
|
||||
}
|
||||
endif;
|
||||
add_action( 'after_setup_theme', 'altofocus_setup' );
|
||||
|
@ -223,6 +255,9 @@ function altofocus_scripts() {
|
|||
// Stylesheet
|
||||
wp_enqueue_style( 'altofocus-style', get_stylesheet_uri() );
|
||||
|
||||
// Block stylesheets
|
||||
wp_enqueue_style( 'altofocus-block-style', get_template_directory_uri() . '/assets/stylesheets/blocks.css', array( 'altofocus-style' ), '20181018' );
|
||||
|
||||
/*
|
||||
* Scripts
|
||||
*/
|
||||
|
@ -270,6 +305,22 @@ function altofocus_scripts() {
|
|||
}
|
||||
add_action( 'wp_enqueue_scripts', 'altofocus_scripts' );
|
||||
|
||||
/**
|
||||
* Enqueue editor styles for Gutenberg
|
||||
*/
|
||||
function altofocus_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'altofocus-block-editor-style', get_template_directory_uri() . '/assets/stylesheets/editor-blocks.css' );
|
||||
|
||||
// Libre Franklin font
|
||||
wp_enqueue_style( 'altofocus-libre-baskerville', altofocus_libre_baskerville_url(), array(), null );
|
||||
|
||||
// Karla font
|
||||
wp_enqueue_style( 'altofocus-karla', altofocus_karla_url(), array(), null );
|
||||
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'altofocus_block_editor_styles' );
|
||||
|
||||
/**
|
||||
* Check whether the browser supports JavaScript
|
||||
*/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Theme Name: AltoFocus
|
||||
Theme URI: https://wordpress.com/themes/altofocus/
|
||||
Description: AltoFocus is a theme for photographers, artists, and other creative types in search of a simple and easy way to display their work.
|
||||
Version: 1.0.7-wpcom
|
||||
Version: 1.0.9-wpcom
|
||||
Author: Automattic, Inc
|
||||
Author URI: http://automattic.com
|
||||
License: GNU General Public License v2 or later
|
||||
|
|
522
apostrophe-2/css/blocks.css
Normal file
522
apostrophe-2/css/blocks.css
Normal file
|
@ -0,0 +1,522 @@
|
|||
/*
|
||||
Theme Name: Apostrophe 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-style: italic;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
p.has-drop-cap:not(:focus)::first-letter {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
/* Images */
|
||||
|
||||
.wp-block-cover,
|
||||
.wp-block-cover-image,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover-image.alignleft,
|
||||
.wp-block-cover.alignright,
|
||||
.wp-block-cover-image.alignright,
|
||||
.wp-block-cover.aligncenter,
|
||||
.wp-block-cover-image.aligncenter {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* Full Width */
|
||||
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.apostrophe-2-no-sidebar .alignfull {
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
transform: translateX( -50% );
|
||||
}
|
||||
|
||||
.rtl.apostrophe-2-no-sidebar .alignfull {
|
||||
left: auto;
|
||||
right: 50%;
|
||||
transform: translateX(50%);
|
||||
}
|
||||
|
||||
.apostrophe-2-no-sidebar .wp-block-columns.alignfull,
|
||||
.apostrophe-2-no-sidebar .wp-block-latest-comments.alignfull,
|
||||
.apostrophe-2-no-sidebar .wp-block-archives.alignfull,
|
||||
.apostrophe-2-no-sidebar .wp-block-categories.alignfull,
|
||||
.apostrophe-2-no-sidebar .wp-block-archives.alignfull,
|
||||
.apostrophe-2-no-sidebar .wp-block-latest-posts.alignfull,
|
||||
.apostrophe-2-no-sidebar .wp-block-file.alignfull {
|
||||
padding-left: 2em;
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull iframe {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull:before {
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
|
||||
.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignfull iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
/* Wide Width */
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.apostrophe-2-no-sidebar .alignwide {
|
||||
width: 860px;
|
||||
max-width: 860px;
|
||||
margin-left: -65px;
|
||||
margin-right: -65px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignwide:before {
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
|
||||
.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignwide iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Gallery */
|
||||
|
||||
.wp-block-gallery {
|
||||
margin-bottom: 1.5em;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.wp-block-gallery figcaption {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
}
|
||||
|
||||
.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.is-large cite,
|
||||
.wp-block-quote.is-large footer,
|
||||
.wp-block-quote.is-style-large cite,
|
||||
.wp-block-quote.is-style-large footer {
|
||||
color: gray;
|
||||
display: block;
|
||||
font-style: normal;
|
||||
margin-top: 0.25em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-quote.is-large cite,
|
||||
.rtl .wp-block-quote.is-large footer,
|
||||
.rtl .wp-block-quote.is-style-large cite,
|
||||
.rtl .wp-block-quote.is-style-large footer {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.wp-block-quote cite:before {
|
||||
content: "-";
|
||||
}
|
||||
|
||||
.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: 120%;
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
border: 2px solid #117bb8;
|
||||
border-radius: 0;
|
||||
color: #159ae7;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
padding: 12px 24px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-file a.wp-block-file__button:hover {
|
||||
border: 2px solid #117bb8;
|
||||
background-color: #e5f4fd;
|
||||
color: #159ae7;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:focus {
|
||||
background-color: #ceeafa;
|
||||
border-color: #0d5c89;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.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: transparent;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
line-height: inherit;
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
border-bottom: 2px solid #a6a6a6;
|
||||
border-left: 0;
|
||||
border-top: 4px solid #d9d9d9;
|
||||
color: #a6a6a6;
|
||||
font-size: 1.2em;
|
||||
font-style: normal;
|
||||
margin: 0 0 1.5em;
|
||||
padding: .75em 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft p,
|
||||
.wp-block-pullquote.alignright p {
|
||||
}
|
||||
|
||||
.rtl .wp-block-pullquote blockquote {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite:before {
|
||||
content: "-";
|
||||
}
|
||||
|
||||
/* 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;
|
||||
border: 2px solid currentColor;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
margin: 5px 0;
|
||||
padding: 12px 24px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
border: 2px solid #117bb8;
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):focus {
|
||||
background-color: #ceeafa;
|
||||
border-color: #0d5c89;
|
||||
margin-top: 6px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.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: #159ae7;
|
||||
}
|
||||
|
||||
.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-color: #e5f4fd;
|
||||
border-color: #159ae7;
|
||||
}
|
||||
|
||||
/* Seperator */
|
||||
|
||||
hr.wp-block-separator {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-separator {
|
||||
background-color: #ccc;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-separator:not(.is-style-wide) {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 100px;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-dots::before {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
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 {
|
||||
padding: 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 #d1d1d1;
|
||||
margin-bottom: 0;
|
||||
padding: 1.5em 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: #686868;
|
||||
}
|
||||
|
||||
.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: #686868;
|
||||
}
|
||||
|
||||
.has-medium-gray-color,
|
||||
.has-medium-gray-color:hover,
|
||||
.has-medium-gray-color:focus,
|
||||
.has-medium-gray-color:active {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.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: #999999;
|
||||
}
|
||||
|
||||
.has-light-gray-color,
|
||||
.has-light-gray-color:hover,
|
||||
.has-light-gray-color:focus,
|
||||
.has-light-gray-color:active {
|
||||
color: #d9d9d9;
|
||||
}
|
||||
|
||||
.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: #d9d9d9;
|
||||
}
|
||||
|
||||
.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-blue-color,
|
||||
.has-blue-color:hover,
|
||||
.has-blue-color:focus,
|
||||
.has-blue-color:active {
|
||||
color: #159ae7;
|
||||
}
|
||||
|
||||
.has-blue-background-color,
|
||||
.has-blue-background-color:hover,
|
||||
.has-blue-background-color:focus,
|
||||
.has-blue-background-color:active {
|
||||
background-color: #159ae7;
|
||||
}
|
||||
|
||||
.has-dark-blue-color,
|
||||
.has-dark-blue-color:hover,
|
||||
.has-dark-blue-color:focus,
|
||||
.has-dark-blue-color:active {
|
||||
color: #362e77;
|
||||
}
|
||||
|
||||
.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: #362e77;
|
||||
}
|
||||
|
||||
.has-black-color,
|
||||
.has-black-color:hover,
|
||||
.has-black-color:focus,
|
||||
.has-black-color:active {
|
||||
color: #404040;
|
||||
}
|
||||
|
||||
.has-black-background-color,
|
||||
.has-black-background-color:hover,
|
||||
.has-black-background-color:focus,
|
||||
.has-black-background-color:active {
|
||||
background-color: #404040;
|
||||
}
|
802
apostrophe-2/css/editor-blocks.css
Normal file
802
apostrophe-2/css/editor-blocks.css
Normal file
|
@ -0,0 +1,802 @@
|
|||
|
||||
/*
|
||||
* Theme Name: Apostrophe 2
|
||||
* Description: Gutenberg Block Editor Styles
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
2.0 General Block Styles
|
||||
3.0 Blocks - Common Blocks
|
||||
4.0 Blocks - Formatting
|
||||
5.0 Blocks - Layout Elements
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
color: #404040;
|
||||
font-family: "PT Serif", Georgia, "Times New Roman", serif;
|
||||
font-size: 19px;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block {
|
||||
color: #404040;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block p {
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.alignleft {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-columns.alignfull,
|
||||
.editor-block-list__layout .editor-block-list__block[data-align=full] {
|
||||
padding-left: 60px;
|
||||
padding-right: 60px;
|
||||
}
|
||||
|
||||
/* Title */
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
-ms-word-wrap: break-word;
|
||||
clear: both;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
margin: 1.13636% 0 0.50505%;
|
||||
word-wrap: break-word;
|
||||
color: silver;
|
||||
font-size: 42px;
|
||||
font-weight: 300;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
|
||||
.edit-post-visual-editor h1,
|
||||
.edit-post-visual-editor h2,
|
||||
.edit-post-visual-editor h3,
|
||||
.edit-post-visual-editor h4,
|
||||
.edit-post-visual-editor h5,
|
||||
.edit-post-visual-editor h6 {
|
||||
-ms-word-wrap: break-word;
|
||||
clear: both;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
margin: 1.13636% 0 0.50505%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h1 {
|
||||
color: silver;
|
||||
font-size: 42px;
|
||||
font-weight: 300;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h2 {
|
||||
color: #999;
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h3 {
|
||||
color: gray;
|
||||
font-size: 28px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h4 {
|
||||
color: gray;
|
||||
font-size: 21px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h5 {
|
||||
color: #5a5a5a;
|
||||
font-size: 19px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h6 {
|
||||
color: #5a5a5a;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Paragraphs */
|
||||
|
||||
.edit-post-visual-editor p {
|
||||
margin: 0 0 1.5em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor blockquote p {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
/* Images */
|
||||
|
||||
.wp-block-image figcaption {
|
||||
font-style: italic;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 48em ) {
|
||||
.edit-post-visual-editor .editor-block-list__block[data-align=wide] {
|
||||
max-width: 860px;
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 General Block Styles
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Main column width */
|
||||
|
||||
.wp-block {
|
||||
max-width: 760px; /* 730px + 30px padding */
|
||||
}
|
||||
|
||||
/* Link styles */
|
||||
|
||||
.edit-post-visual-editor a,
|
||||
.editor-block-list__block a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a {
|
||||
color: #117bb8;
|
||||
transition: 100ms all ease-in;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:hover,
|
||||
.edit-post-visual-editor a:focus,
|
||||
.edit-post-visual-editor a:active,
|
||||
.editor-block-list__block a:hover,
|
||||
.editor-block-list__block a:focus,
|
||||
.editor-block-list__block a:active,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:hover,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:focus,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:active {
|
||||
color: #362e77;
|
||||
}
|
||||
|
||||
/* List styles */
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul,
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol {
|
||||
margin: 0 0 1.5em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) ul,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) ul,
|
||||
.block-library-list ul ul,
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) ul ul ul,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) ul ul ul,
|
||||
.block-library-list ul ul ul ul {
|
||||
list-style: circle;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) ul ul,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) ul ul,
|
||||
.block-library-list ul ul ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ol ol,
|
||||
.editor-block-list__block ol ol,
|
||||
.block-library-list ol ol,
|
||||
.edit-post-visual-editor ol ol ol ol,
|
||||
.editor-block-list__block ol ol ol ol,
|
||||
.block-library-list ol ol ol ol {
|
||||
list-style-type: lower-alpha;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ol ol ol,
|
||||
.editor-block-list__block ol ol ol,
|
||||
.block-library-list ol ol ol {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li,
|
||||
.edit-post-visual-editor ol li,
|
||||
.editor-block-list__block ol li,
|
||||
.block-library-list li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
|
||||
.block-library-list li > ul,
|
||||
.edit-post-visual-editor li > ol,
|
||||
.editor-block-list__block li > ol,
|
||||
.block-library-list li > ol {
|
||||
margin-bottom: 0;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.rtl .editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.rtl .block-library-list ul,
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 0;
|
||||
margin-right: 1.5em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 1.5em;
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
/* Quotes */
|
||||
|
||||
.rtl .editor-block-list__block blockquote {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Captions */
|
||||
|
||||
[class^="wp-block-"] figcaption {
|
||||
color: #686868;
|
||||
font-style: italic;
|
||||
line-height: 1.6153846154;
|
||||
padding-top: 0.5384615385em;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.editor-block-list__block .wp-block-quote {
|
||||
border-left: 4px solid #d9d9d9;
|
||||
font-size: 19px;
|
||||
font-style: italic;
|
||||
margin: 0 1.5em 1.5em 0;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote p {
|
||||
color: inherit;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-quote {
|
||||
border-left: 0;
|
||||
border-right: 4px solid #d9d9d9;
|
||||
margin: 0 0 1.5em 1.5em;
|
||||
padding-left: 0;
|
||||
padding-right: 1.5em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large),
|
||||
.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
border-left: 4px solid #d9d9d9;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote__citation {
|
||||
color: gray;
|
||||
display: block;
|
||||
font-size: 19px;
|
||||
font-style: normal;
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote__citation:before {
|
||||
content: "—";
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote em,
|
||||
.editor-block-list__block .wp-block-quote i,
|
||||
.editor-block-list__block .wp-block-quote__citation:before {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.alignleft {
|
||||
margin: .75em 1.5em .75em 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.alignright {
|
||||
margin: .75em 0 .75em 1.5em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.aligncenter {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.is-large,
|
||||
.editor-block-list__block .wp-block-quote.is-style-large,
|
||||
.editor-block-list__block .wp-block-quote.is-large p,
|
||||
.editor-block-list__block .wp-block-quote.is-style-large p {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
/* Audio */
|
||||
|
||||
/* Cover */
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
|
||||
font-size: 2.0em; /* Cover images inherit the paragraph size; this resets it */
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file__textlink {
|
||||
box-shadow: 0 1px 0 0 currentColor;
|
||||
color: #007acc;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
border: 2px solid #117bb8;
|
||||
border-radius: 0;
|
||||
color: #159ae7;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
margin: 5px 0;
|
||||
padding: 12px 24px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse pre {
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
line-height: inherit;
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
/* Classic */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
border-left: 4px solid #d9d9d9;
|
||||
font-style: italic;
|
||||
margin: 0 1.5em 1.5em 0;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
|
||||
color: gray;
|
||||
display: block;
|
||||
font-style: normal;
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
|
||||
content: "-";
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
border-left: 0;
|
||||
border-right: 4px solid #d9d9d9;
|
||||
margin: 0 0 1.5em 1.5em;
|
||||
padding-left: 0;
|
||||
padding-right: 1.5em;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
margin: .75em 1.5em .75em 0;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
margin: .75em 0 .75em 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
color: silver;
|
||||
font-size: 42px;
|
||||
font-weight: 300;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
color: #999;
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
color: gray;
|
||||
font-size: 28px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||
color: gray;
|
||||
font-size: 21px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
color: #5a5a5a;
|
||||
font-size: 19px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
color: #5a5a5a;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce pre {
|
||||
background: #eee;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 0.85em;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 1.5em;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table {
|
||||
font-size: 0.85em;
|
||||
display: table;
|
||||
margin: 0 0 1.5em;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce .alternate {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table td,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
padding: 8px 8px;
|
||||
border: 0;
|
||||
border-bottom: solid 1px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table td a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
border-bottom: solid 3px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table tbody th {
|
||||
border-bottom: solid 1px;
|
||||
}
|
||||
|
||||
/* Address */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce address {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
/* Definition List styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dd {
|
||||
margin: 0 1.5em 1.5em;
|
||||
}
|
||||
|
||||
/* Code styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce code,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce kbd,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce tt,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce var {
|
||||
background: transparent;
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 14.0625px;
|
||||
}
|
||||
|
||||
/* Mark, Ins styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce mark,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ins {
|
||||
background: #fff9c0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Preformatted */
|
||||
|
||||
.editor-block-list__block .wp-block-preformatted pre {
|
||||
background: #eee;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 0.85em;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 1.5em;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.editor-block-list__block .wp-block-pullquote blockquote {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
border-bottom: 2px solid #a6a6a6;
|
||||
border-left: 0;
|
||||
border-top: 4px solid #d9d9d9;
|
||||
color: #a6a6a6;
|
||||
font-size: 28px;
|
||||
margin: 0 0 1.5em;
|
||||
padding: .75em 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote blockquote p {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignright {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote > .editor-rich-text p {
|
||||
color: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft,
|
||||
.wp-block-pullquote.alignright {
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation {
|
||||
font-size: 18px;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation:before {
|
||||
content: "-";
|
||||
}
|
||||
|
||||
/* Table */
|
||||
|
||||
.editor-block-list__block table.wp-block-table {
|
||||
display: table;
|
||||
font-size: 0.85em;
|
||||
margin: 0 0 1.5em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-block-list__block table.wp-block-table td,
|
||||
.editor-block-list__block table.wp-block-table th {
|
||||
padding: 8px 8px;
|
||||
border: 0;
|
||||
border-bottom: solid 1px;
|
||||
}
|
||||
|
||||
.editor-block-list__block table.wp-block-table th {
|
||||
border-bottom: solid 3px;
|
||||
}
|
||||
|
||||
.editor-block-list__block table.wp-block-table tbody th {
|
||||
border-bottom: solid 1px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border-radius: 0;
|
||||
border: 2px solid currentColor;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
margin: 5px 0;
|
||||
padding: 12px 24px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link:hover,
|
||||
.wp-block-button .wp-block-button__link:focus,
|
||||
.wp-block-button .wp-block-button__link:active {
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.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: #159ae7;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
border: 2px solid #117bb8;
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):active,
|
||||
.wp-block-button__link:not(.has-background):hover {
|
||||
background-color: #e5f4fd;
|
||||
border-color: #159ae7;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):focus {
|
||||
background-color: #ceeafa;
|
||||
border-color: #0d5c89;
|
||||
margin-top: 6px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Separator */
|
||||
.wp-block-separator {
|
||||
background-color: #ccc;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-wide {
|
||||
max-width: 120%;
|
||||
margin-left: -10%;
|
||||
margin-right: -10%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Categories & Archives */
|
||||
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-archives,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/* Latest Comments */
|
||||
|
||||
.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 #d1d1d1;
|
||||
margin-bottom: 0;
|
||||
padding: 1.5em 0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Latest Posts */
|
||||
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
|
||||
margin-bottom: 1em;
|
||||
}
|
|
@ -36,8 +36,52 @@ if ( ! function_exists( 'apostrophe_2_setup' ) ) :
|
|||
// Add default posts and comments RSS feed links to head.
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
// Load editor styles and custom fonts.
|
||||
add_editor_style( array( 'editor-style.css', apostrophe_2_fonts_url() ) );
|
||||
// Add wide styles support for Gutenberg
|
||||
add_theme_support( 'align-wide' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add custom colors to Gutenberg
|
||||
add_theme_support(
|
||||
'editor-color-palette', array(
|
||||
array(
|
||||
'name' => esc_html__( 'Black', 'apostrophe-2' ),
|
||||
'slug' => 'black',
|
||||
'color' => '#404040',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Dark Gray', 'apostrophe-2' ),
|
||||
'slug' => 'dark-gray',
|
||||
'color' => '#686868',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Medium Gray', 'apostrophe-2' ),
|
||||
'slug' => 'medium-gray',
|
||||
'color' => '#999999',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Light Gray', 'apostrophe-2' ),
|
||||
'slug' => 'light-gray',
|
||||
'color' => '#d9d9d9',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'White', 'apostrophe-2' ),
|
||||
'slug' => 'white',
|
||||
'color' => '#ffffff',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Blue', 'apostrophe-2' ),
|
||||
'slug' => 'blue',
|
||||
'color' => '#159ae7',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Dark Blue', 'apostrophe-2' ),
|
||||
'slug' => 'dark-blue',
|
||||
'color' => '#362e77',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
/*
|
||||
* Let WordPress manage the document title.
|
||||
|
@ -192,6 +236,9 @@ function apostrophe_2_fonts_url() {
|
|||
*/
|
||||
function apostrophe_2_scripts() {
|
||||
|
||||
// Gutenberg styles
|
||||
wp_enqueue_style( 'apostrophe-2-blocks', get_template_directory_uri() . '/css/blocks.css' );
|
||||
|
||||
wp_enqueue_style( 'apostrophe-2-style', get_stylesheet_uri(), array(), '20140520' );
|
||||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/css/genericons.css', array(), '20131222' );
|
||||
wp_enqueue_style( 'apostrophe-2-fonts', apostrophe_2_fonts_url(), array(), null );
|
||||
|
@ -211,6 +258,15 @@ function apostrophe_2_scripts() {
|
|||
}
|
||||
add_action( 'wp_enqueue_scripts', 'apostrophe_2_scripts' );
|
||||
|
||||
/**
|
||||
* Gutenberg Editor Styles
|
||||
*/
|
||||
function apostrophe_2_editor_styles() {
|
||||
wp_enqueue_style( 'apostrophe-2-editor-block-style', get_template_directory_uri() . '/css/editor-blocks.css');
|
||||
wp_enqueue_style( 'apostrophe-2-fonts', apostrophe_2_fonts_url(), array(), null );
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'apostrophe_2_editor_styles' );
|
||||
|
||||
/**
|
||||
* Use a specific size for the gallery shortcode.
|
||||
*
|
||||
|
|
|
@ -33,7 +33,7 @@ function apostrophe_2_posted_on() {
|
|||
esc_html_x( '%s', 'post author', 'apostrope-2' ),
|
||||
'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
|
||||
);
|
||||
if ( is_sticky() && ! is_single() && ! is_archive() ) {
|
||||
if ( is_sticky() && ! is_single() && ! is_archive() && ! is_paged() ) {
|
||||
echo '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . esc_html__( 'Featured', 'apostrophe-2' ) . '</a><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
|
||||
} else {
|
||||
echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
|
||||
|
|
|
@ -66,6 +66,17 @@ add_color_rule( 'txt', '#117bb8', array(
|
|||
.sidebar-primary input[type="reset"],
|
||||
.sidebar-primary input[type="submit"]', 'color', 'link', 10 ),
|
||||
|
||||
array( '.sidebar-primary button:hover,
|
||||
.sidebar-primary button:focus,
|
||||
.sidebar-primary input[type="button"]:focus,
|
||||
.sidebar-primary input[type="button"]:hover,
|
||||
.sidebar-primary input[type="reset"]:focus,
|
||||
.sidebar-primary input[type="reset"]:hover,
|
||||
.sidebar-primary input[type="submit"]:focus,
|
||||
.sidebar-primary input[type="submit"]:hover,
|
||||
#subscribe-blog input[type="submit"]:focus,
|
||||
#subscribe-blog input[type="submit"]:hover', 'color', 'txt', 10 ),
|
||||
|
||||
array( '.sidebar-primary button:hover,
|
||||
.sidebar-primary input[type="button"]:hover,
|
||||
.sidebar-primary input[type="reset"]:hover,
|
||||
|
|
|
@ -5,7 +5,7 @@ Theme URI: https://wordpress.com/themes/apostrophe-2
|
|||
Author: Automattic
|
||||
Author URI: https://wordpress.com/themes/
|
||||
Description: A clean, no-nonsense magazine theme
|
||||
Version: 2.0.1-wpcom
|
||||
Version: 2.0.7-wpcom
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: apostrophe-2
|
||||
|
@ -1288,6 +1288,16 @@ a:active {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
/* Follow Blog widget */
|
||||
#subscribe-blog input[type="submit"] {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#subscribe-blog input[type="submit"]:focus,
|
||||
#subscribe-blog input[type="submit"]:hover {
|
||||
color: #159ae7;
|
||||
}
|
||||
|
||||
/* Remove exatra spacing below lists and other elements. */
|
||||
.widget > ol,
|
||||
.widget > ul,
|
||||
|
@ -1436,6 +1446,10 @@ a:active {
|
|||
width: auto;
|
||||
}
|
||||
|
||||
.site-footer .widget-area input.search-field {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.site-footer .site-info {
|
||||
border-top: 2px solid #ccc;
|
||||
font-size: 16px;
|
||||
|
@ -1880,7 +1894,8 @@ article:hover .apostrophe-2-inline-controls {
|
|||
}
|
||||
|
||||
.widget-area .sidebar-primary aside .widgettitle,
|
||||
.widget-area .sidebar-primary aside .widget-title {
|
||||
.widget-area .sidebar-primary aside .widget-title,
|
||||
.widget-area .sidebar-primary aside .widget-title label {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
|
24
button-2/assets/js/block-variations.js
Normal file
24
button-2/assets/js/block-variations.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* File block-variations.js
|
||||
*
|
||||
* Adds block variation options for blocks in the new editor.
|
||||
*
|
||||
*/
|
||||
|
||||
// Image Block - Since this block doesn't have core block variations, add a 'default' so the "fancy" option can be turned off.
|
||||
|
||||
wp.blocks.registerBlockStyle( 'core/image', {
|
||||
isDefault: true,
|
||||
name: 'default', // Class will be turned into '.is-style-default', though no styles needed.
|
||||
label: 'Default'
|
||||
} );
|
||||
|
||||
// Image Block - Add a 'fancy' class, to match theme's existing "framed" style.
|
||||
|
||||
wp.blocks.registerBlockStyle( 'core/image', {
|
||||
name: 'fancy', // Class will be turned into '.is-style-fancy'
|
||||
label: 'Fancy'
|
||||
} );
|
||||
|
||||
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
( function( $ ) {
|
||||
|
||||
function fancyImages() {
|
||||
var imgs = $( '.entry-content img.fancy' );
|
||||
var imgs = $( '.entry-content img.fancy, .entry-content .is-style-fancy, .entry-content .wp-block-image.fancy' );
|
||||
|
||||
for ( var i = 0, imgslength = imgs.length; i < imgslength; i++ ) {
|
||||
if ( '' !== $( imgs[i] ) ) {
|
||||
|
|
429
button-2/blocks.css
Normal file
429
button-2/blocks.css
Normal file
|
@ -0,0 +1,429 @@
|
|||
/*
|
||||
Theme Name: Button 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 {}
|
||||
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
p.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: Lora, Garamond, serif;
|
||||
font-size: 3.75em;
|
||||
}
|
||||
|
||||
|
||||
/* Images */
|
||||
|
||||
.wp-block-image .alignleft {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
.rtl .wp-block-image .alignleft {
|
||||
margin-left: 1.5em;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.wp-block-image .alignright {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
.rtl .wp-block-image .alignright {
|
||||
margin-left: 0;
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
/* Images - Fancy styles */
|
||||
|
||||
.wp-block-image.is-style-fancy {
|
||||
position: relative;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy .alignright,
|
||||
.wp-block-image.is-style-fancy .alignleft,
|
||||
.wp-block-image.is-style-fancy .aligncenter {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy img {
|
||||
display: inline-block;
|
||||
max-width: 99.9%;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy .shadow {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: inset 0 0 85px 1px rgba(0, 0, 0, .1);
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy:before,
|
||||
.wp-block-image.is-style-fancy:after {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
display: block;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
content: "";
|
||||
background-image: url(img/corner.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 45px;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy:after {
|
||||
right: -1px;
|
||||
left: auto;
|
||||
-webkit-transform: rotate(90deg);
|
||||
-ms-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy > .corners:before,
|
||||
.wp-block-image.is-style-fancy > .corners:after {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: -1px;
|
||||
left: -1px;
|
||||
display: block;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
content: "";
|
||||
-webkit-transform: rotate(-90deg);
|
||||
-ms-transform: rotate(-90deg);
|
||||
transform: rotate(-90deg);
|
||||
background-image: url(img/corner.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 45px;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy > .corners:after {
|
||||
right: -1px;
|
||||
left: auto;
|
||||
-webkit-transform: rotate(-180deg);
|
||||
-ms-transform: rotate(-180deg);
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
|
||||
/* Alignments */
|
||||
|
||||
.alignwide {
|
||||
margin-left: -0.875em;
|
||||
margin-right: -0.875em;
|
||||
max-width: calc( 100% + 1.75em );
|
||||
width: calc( 100% + 1.75em );
|
||||
}
|
||||
|
||||
.alignfull {
|
||||
margin-left: -1.75em;
|
||||
margin-right: -1.75em;
|
||||
max-width: calc( 100% + 3.5em );
|
||||
width: calc( 100% + 3.5em );
|
||||
}
|
||||
|
||||
@media only screen and ( min-width: 40.063em ) {
|
||||
.alignwide {
|
||||
margin-left: -1em;
|
||||
margin-right: -1em;
|
||||
max-width: calc( 100% + 2em );
|
||||
width: calc( 100% + 2em );
|
||||
}
|
||||
|
||||
.alignfull {
|
||||
margin-left: -2em;
|
||||
margin-right: -2em;
|
||||
max-width: calc( 100% + 4em );
|
||||
width: calc( 100% + 4em );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 64.063em) {
|
||||
.alignwide {
|
||||
margin-left: -1.5em;
|
||||
margin-right: -1.5em;
|
||||
max-width: calc( 100% + 3em );
|
||||
width: calc( 100% + 3em );
|
||||
}
|
||||
|
||||
.rtl .alignwide {
|
||||
margin-left: 0;
|
||||
max-width: calc( 100% + 1.5em );
|
||||
width: calc( 100% + 1.5em );
|
||||
}
|
||||
|
||||
.alignfull {
|
||||
margin-left: -3em;
|
||||
margin-right: -3em;
|
||||
max-width: 1142px;
|
||||
width: calc( 100% + 6em );
|
||||
}
|
||||
|
||||
.rtl .alignfull {
|
||||
margin-left: 0;
|
||||
max-width: calc( 100% + 3em );
|
||||
width: calc( 100% + 3em );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 75em) {
|
||||
.alignwide {
|
||||
margin-left: -2.5em;
|
||||
margin-right: 0;
|
||||
max-width: calc( 100% + 2.5em );
|
||||
width: calc( 100% + 2.5em );
|
||||
}
|
||||
|
||||
.rtl .alignwide {
|
||||
margin-right: -2.5em;
|
||||
margin-left: 0;
|
||||
max-width: calc( 100% + 2.5em );
|
||||
width: calc( 100% + 2.5em );
|
||||
}
|
||||
|
||||
.no-sidebar .alignwide {
|
||||
margin-right: -2.5em;
|
||||
max-width: calc( 100% + 5em );
|
||||
width: calc( 100% + 5em );
|
||||
}
|
||||
|
||||
.alignfull {
|
||||
margin-left: -5em;
|
||||
margin-right: 0;
|
||||
max-width: 1142px;
|
||||
width: calc( 100% + 5em );
|
||||
}
|
||||
|
||||
.rtl .alignfull {
|
||||
margin-left: 0;
|
||||
margin-right: -5em;
|
||||
max-width: 1142px;
|
||||
width: calc( 100% + 5em );
|
||||
}
|
||||
|
||||
.no-sidebar .alignfull {
|
||||
margin-right: -5em;
|
||||
max-width: 1142px;
|
||||
width: calc( 100% + 10em );
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-columns.alignfull,
|
||||
.wp-block-latest-comments.alignfull,
|
||||
.wp-block-archives.alignfull,
|
||||
.wp-block-categories.alignfull,
|
||||
.wp-block-archives.alignfull,
|
||||
.wp-block-latest-posts.alignfull,
|
||||
.wp-block-file.alignfull {
|
||||
padding-left: 1.5em;
|
||||
padding-right: 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-cover-image .wp-block-cover-image-text {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Gallery */
|
||||
|
||||
.wp-block-gallery {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote p:last-of-type {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.wp-block-quote cite {
|
||||
color: #999;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large,
|
||||
.wp-block-quote.is-style-large {
|
||||
padding: 0;
|
||||
margin-left: 30px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.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: 1em;
|
||||
}
|
||||
|
||||
/* Audio */
|
||||
|
||||
.wp-block-audio audio {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* File */
|
||||
.wp-block-file {
|
||||
line-height: 52px;
|
||||
}
|
||||
|
||||
/* Video */
|
||||
|
||||
.wp-block-video {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Table */
|
||||
.wp-block-table th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-table th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
|
||||
.wp-block-file .wp-block-file__button,
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border-radius: 0;
|
||||
border: 1px dashed white;
|
||||
box-shadow: none;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
margin: 5px;
|
||||
padding: .75em 1em;
|
||||
text-shadow: none;
|
||||
text-transform: uppercase;
|
||||
transition: .3s;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button,
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
background: #bbb;
|
||||
outline: 5px solid #bbb;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button,
|
||||
a.wp-block-button__link:not(.has-text-color),
|
||||
a.wp-block-button__link:not(.has-text-color):active,
|
||||
a.wp-block-button__link:not(.has-text-color):focus,
|
||||
a.wp-block-button__link:not(.has-text-color):hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:active,
|
||||
.wp-block-file .wp-block-file__button:focus,
|
||||
.wp-block-file .wp-block-file__button:hover,
|
||||
.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: #f78769;
|
||||
outline: 5px solid #f78769;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
margin-left: 17px;
|
||||
}
|
||||
|
||||
/* Seperator */
|
||||
|
||||
hr.wp-block-separator {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-separator {
|
||||
background-color: #f3f3f3;
|
||||
border: 0;
|
||||
height: 2px;
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 20%;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-dots::before {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* 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:not(.alignfull):not(.alignwide) {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* Latest Posts */
|
||||
|
||||
.wp-block-latest-posts.is-grid {
|
||||
margin: 0;
|
||||
}
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Colors
|
||||
--------------------------------------------------------------*/
|
669
button-2/editor-blocks.css
Normal file
669
button-2/editor-blocks.css
Normal file
|
@ -0,0 +1,669 @@
|
|||
/*
|
||||
Theme Name: Button 2
|
||||
Description: Gutenberg Block Editor Styles
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
2.0 General Block Styles
|
||||
3.0 Blocks - Common Blocks
|
||||
4.0 Blocks - Formatting
|
||||
5.0 Blocks - Layout Elements
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.editor-styles-wrapper,
|
||||
.editor-styles-wrapper p,
|
||||
.editor-styles-wrapper .mce-content-body {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
color: #777;
|
||||
font-family: Lato, Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.alignleft,
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="left"] .editor-block-list__block-edit {
|
||||
margin-right: 24px;
|
||||
}
|
||||
|
||||
.alignright,
|
||||
.editor-block-list__layout .editor-block-list__block[data-align="right"] .editor-block-list__block-edit {
|
||||
margin-left: 24px;
|
||||
}
|
||||
|
||||
/* Title */
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
clear: both;
|
||||
color: #777;
|
||||
font-family: Lora, Garamond, serif;
|
||||
font-size: 31.25px;
|
||||
font-weight: normal;
|
||||
margin-top: 0;
|
||||
text-align: center;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
|
||||
.edit-post-visual-editor h1,
|
||||
.edit-post-visual-editor h2,
|
||||
.edit-post-visual-editor h3,
|
||||
.edit-post-visual-editor h4,
|
||||
.edit-post-visual-editor h5,
|
||||
.edit-post-visual-editor h6 {
|
||||
clear: both;
|
||||
font-family: Lora, Garamond, serif;
|
||||
font-weight: normal;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h1 {
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h2 {
|
||||
font-size: 39px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h3 {
|
||||
font-size: 31px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h4 {
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h5 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h6 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Paragraphs */
|
||||
|
||||
.edit-post-visual-editor p {
|
||||
margin: 0 0 1.5em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor blockquote p {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 General Block Styles
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Main column width */
|
||||
|
||||
.wp-block {
|
||||
max-width: 750px; /* 720px + 30px padding */
|
||||
}
|
||||
|
||||
@media screen and (min-width: 960px) {
|
||||
.wp-block {
|
||||
max-width: 584px; /* 554px + 30px padding */
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1080px) {
|
||||
.wp-block {
|
||||
max-width: 674px; /* 644px + 30px padding */
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1380px) {
|
||||
.wp-block {
|
||||
max-width: 899px; /* 869px + 30px padding */
|
||||
}
|
||||
}
|
||||
|
||||
/* Link styles */
|
||||
|
||||
.edit-post-visual-editor a,
|
||||
.editor-block-list__block a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a {
|
||||
color: #f78769;
|
||||
}
|
||||
|
||||
/* List styles */
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li,
|
||||
.edit-post-visual-editor ol li,
|
||||
.editor-block-list__block ol li,
|
||||
.block-library-list li,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ul li,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ol li {
|
||||
line-height: 1.6;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Captions */
|
||||
|
||||
[class^="wp-block-"] figcaption {
|
||||
color: #555d66;
|
||||
font-family: Lato, Helvetica, sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: Lora, Garamond, serif;
|
||||
font-size: 3.75em;
|
||||
}
|
||||
|
||||
/* Images - Fancy styles */
|
||||
|
||||
.wp-block-image.is-style-fancy,
|
||||
.wp-block-image.fancy {
|
||||
position: relative;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy .alignright,
|
||||
.wp-block-image.fancy .alignright,
|
||||
.wp-block-image.is-style-fancy .alignleft,
|
||||
.wp-block-image.fancy .alignleft,
|
||||
.wp-block-image.is-style-fancy .aligncenter,
|
||||
.wp-block-image.fancy .aligncenter {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy img,
|
||||
.wp-block-image.fancy img {
|
||||
display: inline-block;
|
||||
max-width: 99.9%;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy:before,
|
||||
.wp-block-image.fancy:before,
|
||||
.wp-block-image.is-style-fancy:after,
|
||||
.wp-block-image.fancy:after {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
display: block;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
content: "";
|
||||
background-image: url(img/corner.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 45px;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy:after,
|
||||
.wp-block-image.fancy:after {
|
||||
right: -1px;
|
||||
left: auto;
|
||||
-webkit-transform: rotate(90deg);
|
||||
-ms-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy .components-resizable-box__container:before,
|
||||
.wp-block-image.fancy .components-resizable-box__container:before,
|
||||
.wp-block-image.is-style-fancy .components-resizable-box__container:after,
|
||||
.wp-block-image.fancy .components-resizable-box__container:after {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: -1px;
|
||||
left: -1px;
|
||||
display: block;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
content: "";
|
||||
-webkit-transform: rotate(-90deg);
|
||||
-ms-transform: rotate(-90deg);
|
||||
transform: rotate(-90deg);
|
||||
background-image: url(img/corner.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 45px;
|
||||
}
|
||||
|
||||
.wp-block-image.is-style-fancy .components-resizable-box__container:after,
|
||||
.wp-block-image.fancy .components-resizable-box__container:after {
|
||||
right: -1px;
|
||||
left: auto;
|
||||
-webkit-transform: rotate(-180deg);
|
||||
-ms-transform: rotate(-180deg);
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 40.063em) {
|
||||
.wp-block-image.is-style-fancy:before,
|
||||
.wp-block-image.fancy:before,
|
||||
.wp-block-image.is-style-fancy:after,
|
||||
.wp-block-image.fancy:after,
|
||||
.wp-block-image.is-style-fancy .components-resizable-box__container:before,
|
||||
.wp-block-image.fancy .components-resizable-box__container:before,
|
||||
.wp-block-image.is-style-fancy .components-resizable-box__container:after,
|
||||
.wp-block-image.fancy .components-resizable-box__container:after {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
background-size: 75px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Improve appearance of fancy image block in preview */
|
||||
|
||||
.editor-block-styles__item-preview .wp-block-image.is-style-fancy:before,
|
||||
.editor-block-styles__item-preview .wp-block-image.is-style-fancy:after,
|
||||
.editor-block-styles__item-preview .wp-block-image.is-style-fancy .components-resizable-box__container:before,
|
||||
.editor-block-styles__item-preview .wp-block-image.is-style-fancy .components-resizable-box__container:after {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-size: 20px;
|
||||
}
|
||||
|
||||
.editor-block-preview .wp-block-image.is-style-fancy:before,
|
||||
.editor-block-preview .wp-block-image.is-style-fancy:after,
|
||||
.editor-block-preview .wp-block-image.is-style-fancy .components-resizable-box__container:before,
|
||||
.editor-block-preview .wp-block-image.is-style-fancy .components-resizable-box__container:after {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background-size: 30px;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote {
|
||||
color: #bbb;
|
||||
font-family: Lora, Garamond, serif;
|
||||
font-size: 20px;
|
||||
font-style: italic;
|
||||
margin-left: 30px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote p {
|
||||
font-size: 20px;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote p:last-of-type {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.wp-block-quote__citation {
|
||||
font-size: 16px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large .wp-block-quote__citation,
|
||||
.wp-block-quote.is-style-large .wp-block-quote__citation {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file__textlink {
|
||||
color: #f78769;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse pre {
|
||||
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
background-color: #f3f3f3;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.wp-block-code textarea.editor-plain-text {
|
||||
background-color: #f3f3f3;
|
||||
color: #777;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Classic */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
font-size: 48px
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
font-size: 39px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
font-size: 31px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce q,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
box-shadow: none;
|
||||
font-family: Lora, Garamond, serif;
|
||||
font-size: 20px;
|
||||
font-style: italic;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
margin-left: 30px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
margin: 0.75em 1.5em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-block-freeform .mce-item-table,
|
||||
.wp-block-freeform .mce-item-table th,
|
||||
.wp-block-freeform .mce-item-table td {
|
||||
border-collapse: collapse;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.wp-block-freeform .mce-item-table td,
|
||||
.wp-block-freeform .mce-item-table th {
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 5px 3px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
border-bottom: 3px solid #ddd;
|
||||
}
|
||||
|
||||
/* Lists */
|
||||
.wp-block-freeform dl dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-freeform dl dd {
|
||||
margin: 0 1.5em 1.5em;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-freeform ul,
|
||||
.editor-styles-wrapper .wp-block-freeform ul ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper .wp-block-freeform li > ul,
|
||||
.editor-styles-wrapper .wp-block-freeform li > ol {
|
||||
margin-left: 0.75em;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.rtl .editor-styles-wrapper .wp-block-freeform li > ul,
|
||||
.rtl .editor-styles-wrapper .wp-block-freeform li > ol {
|
||||
margin-right: 0.75em;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce pre {
|
||||
background-color: #f3f3f3;
|
||||
color: #777;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
padding: 1.6em;
|
||||
overflow: auto;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.wp-block-freeform address {
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-freeform abbr,
|
||||
.wp-block-freeform acronym {
|
||||
border-bottom: 1px dotted #f78769;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce code,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce kbd,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce tt,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce var {
|
||||
background-color: transparent;
|
||||
color: #777;
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 15px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-freeform mark,
|
||||
.wp-block-freeform ins {
|
||||
background: #f3f3f3;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Preformatted */
|
||||
|
||||
pre,
|
||||
.wp-block-code,
|
||||
.wp-block-preformatted pre,
|
||||
.wp-block-verse pre,
|
||||
pre.wp-block-verse {
|
||||
background: #f3f3f3;
|
||||
color: #777;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
padding: 1.6em;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
border-bottom: none;
|
||||
border-top: none;
|
||||
color: #bbb;
|
||||
font-family: Lora, Garamond, serif;
|
||||
font-size: 1.25em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote__citation,
|
||||
.wp-block-pullquote cite,
|
||||
.wp-block-pullquote footer {
|
||||
text-transform: capitalize;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft {}
|
||||
.wp-block-pullquote.alignright {}
|
||||
|
||||
.wp-block-pullquote blockquote > .editor-rich-text p {}
|
||||
|
||||
.wp-block-pullquote.alignleft blockquote p,
|
||||
.wp-block-pullquote.alignright blockquote p {}
|
||||
|
||||
.wp-block-pullquote.alignleft .wp-block-pullquote__citation,
|
||||
.wp-block-pullquote.alignright .wp-block-pullquote__citation {}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation {}
|
||||
|
||||
/* Table */
|
||||
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.wp-block-table .wp-block-table__cell-content {
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 5px 3px;
|
||||
}
|
||||
|
||||
.wp-block-table th .wp-block-table__cell-content {
|
||||
border-bottom: 3px solid #ddd;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-table th .wp-block-table__cell-content {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
|
||||
.wp-block-file .wp-block-file__button,
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border-radius: 0;
|
||||
border: 1px dashed white;
|
||||
box-shadow: none;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
margin: 5px;
|
||||
padding: .75em 1em;
|
||||
text-shadow: none;
|
||||
text-transform: uppercase;
|
||||
transition: .3s;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button,
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
background: #bbb;
|
||||
outline: 5px solid #bbb;
|
||||
}
|
||||
|
||||
.wp-block-button .editor-rich-text__tinymce.mce-content-body {
|
||||
line-height: 14px;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button,
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.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-file .wp-block-file__button:active,
|
||||
.wp-block-file .wp-block-file__button:focus,
|
||||
.wp-block-file .wp-block-file__button:hover,
|
||||
.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: #f78769;
|
||||
outline: 5px solid #f78769;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Separator */
|
||||
|
||||
.wp-block-separator {
|
||||
background-color: #f3f3f3;
|
||||
height: 2px;
|
||||
margin-bottom: 24px;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-wide {}
|
||||
|
||||
.wp-block-separator.is-style-dots::before {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Categories, Archives & Latest Posts */
|
||||
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-archives,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
|
||||
list-style-position: inside;
|
||||
}
|
|
@ -82,6 +82,12 @@ function button_2_setup() {
|
|||
|
||||
'default-image' => esc_url( get_template_directory_uri() ) . '/img/buttonbg20170303.png',
|
||||
) ) );
|
||||
|
||||
// Add support for wide images in Gutenberg
|
||||
add_theme_support( 'align-wide' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
}
|
||||
endif; // button_2_setup
|
||||
add_action( 'after_setup_theme', 'button_2_setup' );
|
||||
|
@ -160,6 +166,8 @@ function button_2_scripts() {
|
|||
|
||||
wp_enqueue_style( 'button-2-fonts', button_2_fonts_url(), array(), null );
|
||||
|
||||
wp_enqueue_style( 'button-2-blocks', get_template_directory_uri() . '/blocks.css' );
|
||||
|
||||
wp_enqueue_script( 'button-2-scripts', get_template_directory_uri() . '/assets/js/main.js', array(), '20170303', true );
|
||||
|
||||
wp_enqueue_script( 'button-2-navigation', get_template_directory_uri() . '/assets/js/navigation.js', array(), '20151215', true );
|
||||
|
@ -213,6 +221,21 @@ function button_2_fonts_url() {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Gutenberg Editor Styles
|
||||
*/
|
||||
function button_2_editor_styles() {
|
||||
// Load fonts.
|
||||
wp_enqueue_style( 'button-2-fonts', button_2_fonts_url() );
|
||||
|
||||
// Load block editor styles.
|
||||
wp_enqueue_style( 'button-2-editor-block-style', get_template_directory_uri() . '/editor-blocks.css' );
|
||||
|
||||
// Load option for 'Fancy' image class.
|
||||
wp_enqueue_script( 'button-2-block-customization', get_template_directory_uri() . '/assets/js/block-variations.js', array( 'wp-blocks' ), '20181211', true );
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'button_2_editor_styles' );
|
||||
|
||||
/**
|
||||
* Implement the Custom Header feature.
|
||||
*/
|
||||
|
|
|
@ -67,7 +67,7 @@ add_filter( 'infinite_scroll_has_footer_widgets', 'button_2_has_footer_widgets'
|
|||
* @since button 1.0
|
||||
*/
|
||||
function button_2_infinite_scroll_render() {
|
||||
if ( class_exists( 'WooCommerce' ) && ( is_shop() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
if ( class_exists( 'WooCommerce' ) && ( button_2_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
button_2_woocommerce_product_columns_wrapper();
|
||||
woocommerce_product_loop_start();
|
||||
}
|
||||
|
@ -75,14 +75,16 @@ function button_2_infinite_scroll_render() {
|
|||
while ( have_posts() ) {
|
||||
the_post();
|
||||
|
||||
if ( class_exists( 'WooCommerce' ) && ( is_shop() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) :
|
||||
if ( is_search() ) :
|
||||
get_template_part( 'components/content', 'search' );
|
||||
elseif ( class_exists( 'WooCommerce' ) && ( button_2_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) :
|
||||
wc_get_template_part( 'content', 'product' );
|
||||
else :
|
||||
get_template_part( 'components/content', get_post_format() );
|
||||
endif;
|
||||
}
|
||||
|
||||
if ( class_exists( 'WooCommerce' ) && ( is_shop() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
if ( class_exists( 'WooCommerce' ) && ( button_2_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
woocommerce_product_loop_end();
|
||||
button_2_woocommerce_product_columns_wrapper_close();
|
||||
}
|
||||
|
|
|
@ -16,10 +16,18 @@
|
|||
* @return void
|
||||
*/
|
||||
function button_2_woocommerce_setup() {
|
||||
add_theme_support( 'woocommerce', array(
|
||||
'thumbnail_image_width' => 584,
|
||||
'single_image_width' => 584,
|
||||
) );
|
||||
add_theme_support( 'woocommerce', apply_filters( 'button_2_woocommerce_args', array(
|
||||
'single_image_width' => 366,
|
||||
'thumbnail_image_width' => 390,
|
||||
'product_grid' => array(
|
||||
'default_columns' => 3,
|
||||
'default_rows' => 4,
|
||||
'min_columns' => 1,
|
||||
'max_columns' => 6,
|
||||
'min_rows' => 2
|
||||
)
|
||||
) ) );
|
||||
|
||||
add_theme_support( 'wc-product-gallery-zoom' );
|
||||
add_theme_support( 'wc-product-gallery-lightbox' );
|
||||
add_theme_support( 'wc-product-gallery-slider' );
|
||||
|
@ -83,9 +91,11 @@ add_filter( 'body_class', 'button_2_woocommerce_active_body_class' );
|
|||
* @return integer number of products.
|
||||
*/
|
||||
function button_2_woocommerce_products_per_page() {
|
||||
return 12;
|
||||
return absint( apply_filters( 'button_2_woocommerce_products_per_page', 12 ) );
|
||||
}
|
||||
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '3.3', '<' ) ) {
|
||||
add_filter( 'loop_shop_per_page', 'button_2_woocommerce_products_per_page' );
|
||||
}
|
||||
add_filter( 'loop_shop_per_page', 'button_2_woocommerce_products_per_page' );
|
||||
|
||||
/**
|
||||
* Product gallery thumnbail columns.
|
||||
|
@ -93,7 +103,7 @@ add_filter( 'loop_shop_per_page', 'button_2_woocommerce_products_per_page' );
|
|||
* @return integer number of columns.
|
||||
*/
|
||||
function button_2_woocommerce_thumbnail_columns() {
|
||||
return 4;
|
||||
return absint( apply_filters( 'button_2_woocommerce_product_thumbnail_columns', 4 ) );
|
||||
}
|
||||
add_filter( 'woocommerce_product_thumbnails_columns', 'button_2_woocommerce_thumbnail_columns' );
|
||||
|
||||
|
@ -103,9 +113,13 @@ add_filter( 'woocommerce_product_thumbnails_columns', 'button_2_woocommerce_thum
|
|||
* @return integer products per row.
|
||||
*/
|
||||
function button_2_woocommerce_loop_columns() {
|
||||
return 3;
|
||||
return absint( apply_filters( 'button_2_woocommerce_loop_columns', 3 ) );
|
||||
}
|
||||
|
||||
// Legacy WooCommerce columns filter.
|
||||
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '3.3', '<' ) ) {
|
||||
add_filter( 'loop_shop_columns', 'button_2_woocommerce_loop_columns' );
|
||||
}
|
||||
add_filter( 'loop_shop_columns', 'button_2_woocommerce_loop_columns' );
|
||||
|
||||
/**
|
||||
* Related Products Args.
|
||||
|
@ -114,12 +128,10 @@ add_filter( 'loop_shop_columns', 'button_2_woocommerce_loop_columns' );
|
|||
* @return array $args related products args.
|
||||
*/
|
||||
function button_2_woocommerce_related_products_args( $args ) {
|
||||
$defaults = array(
|
||||
$args = apply_filters( 'button_2_woocommerce_related_products_args', array(
|
||||
'posts_per_page' => 3,
|
||||
'columns' => 3,
|
||||
);
|
||||
|
||||
$args = wp_parse_args( $defaults, $args );
|
||||
) );
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
@ -132,12 +144,27 @@ if ( ! function_exists( 'button_2_woocommerce_product_columns_wrapper' ) ) {
|
|||
* @return void
|
||||
*/
|
||||
function button_2_woocommerce_product_columns_wrapper() {
|
||||
$columns = button_2_woocommerce_loop_columns();
|
||||
$columns = button_2_loop_columns();
|
||||
echo '<div class="columns columns-' . absint( $columns ) . '">';
|
||||
}
|
||||
}
|
||||
add_action( 'woocommerce_before_shop_loop', 'button_2_woocommerce_product_columns_wrapper', 40 );
|
||||
|
||||
if ( ! function_exists( 'button_2_loop_columns' ) ) {
|
||||
/**
|
||||
* Default loop columns on product archives
|
||||
*
|
||||
* @return integer products per row
|
||||
*/
|
||||
function button_2_loop_columns() {
|
||||
$columns = 3; // 3 products per row
|
||||
if ( function_exists( 'wc_get_default_products_per_row' ) ) {
|
||||
$columns = wc_get_default_products_per_row();
|
||||
}
|
||||
return apply_filters( 'button_2_loop_columns', $columns );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'button_2_woocommerce_product_columns_wrapper_close' ) ) {
|
||||
/**
|
||||
* Product columns wrapper close.
|
||||
|
@ -280,35 +307,3 @@ function button_2_woocommerce_is_shop_page() {
|
|||
|
||||
return $is_shop_page;
|
||||
}
|
||||
|
||||
/**
|
||||
* Jetpack infinite scroll duplicates posts where orderby is anything other than modified or date
|
||||
* This filter offsets the products returned by however many are displayed per page
|
||||
*
|
||||
* @link https://github.com/Automattic/jetpack/issues/1135
|
||||
* @param array $args infinite scroll args.
|
||||
* @return array infinite scroll args.
|
||||
*/
|
||||
function button_2_woocommerce_jetpack_duplicate_products( $args ) {
|
||||
if ( ( isset( $args['post_type'] ) && 'product' === $args['post_type'] ) || ( isset( $args['taxonomy'] ) && 'product_cat' === $args['taxonomy'] ) ) {
|
||||
$args['offset'] = $args['posts_per_page'] * $args['paged'];
|
||||
}
|
||||
|
||||
return $args;
|
||||
}
|
||||
add_filter( 'infinite_scroll_query_args', 'button_2_woocommerce_jetpack_duplicate_products', 100 );
|
||||
|
||||
/**
|
||||
* Override number of products per page in Jetpack infinite scroll.
|
||||
*
|
||||
* @param array $args infinite scroll args.
|
||||
* @return array infinite scroll args.
|
||||
*/
|
||||
function button_2_woocommerce_jetpack_products_per_page( $args ) {
|
||||
if ( is_array( $args ) && ( button_2_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
$args['posts_per_page'] = button_2_woocommerce_products_per_page();
|
||||
}
|
||||
|
||||
return $args;
|
||||
}
|
||||
add_filter( 'infinite_scroll_settings', 'button_2_woocommerce_jetpack_products_per_page' );
|
|
@ -4,7 +4,7 @@ Theme URI: http://wordpress.com/themes/button-2/
|
|||
Author: Automattic
|
||||
Author URI: http://automattic.com
|
||||
Description: A stylish, lighthearted theme for crafters, hobbyists, and creatives.
|
||||
Version: 2.1.2-wpcom
|
||||
Version: 2.1.5-wpcom
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: button
|
||||
|
|
|
@ -390,9 +390,14 @@ table.cart .product-remove a {
|
|||
float: left;
|
||||
margin-right: -10px; } }
|
||||
|
||||
/**
|
||||
* Checkout
|
||||
*/
|
||||
dl.variation {
|
||||
font-size: .875em;
|
||||
margin: .875em 0 0 0; }
|
||||
|
||||
dl.variation dd,
|
||||
dl.variation p {
|
||||
margin: 0; }
|
||||
|
||||
/**
|
||||
* Checkout
|
||||
*/
|
||||
|
|
|
@ -357,6 +357,14 @@ table.cart .product-remove a {
|
|||
text-align: right;
|
||||
vertical-align: top; }
|
||||
|
||||
dl.variation {
|
||||
font-size: .875em;
|
||||
margin: .875em 0 0 0; }
|
||||
|
||||
dl.variation dd,
|
||||
dl.variation p {
|
||||
margin: 0; }
|
||||
|
||||
@media screen and (min-width: 48em) {
|
||||
table.cart tr {
|
||||
display: table-row;
|
||||
|
|
94
calm-business/functions.php
Normal file
94
calm-business/functions.php
Normal file
|
@ -0,0 +1,94 @@
|
|||
<?php
|
||||
/**
|
||||
* Calm (Twenty Nineteen) functions and definitions.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package Calm_business
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'calm_business_setup' ) ) {
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
* Note that this function is hooked into the after_setup_theme hook, which
|
||||
* runs before the init hook. The init hook is too late for some features, such
|
||||
* as indicating support for post thumbnails.
|
||||
*/
|
||||
function calm_business_setup() {
|
||||
|
||||
/**
|
||||
* Add support for core custom logo.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Theme_Logo
|
||||
*/
|
||||
add_theme_support(
|
||||
'custom-logo',
|
||||
array(
|
||||
'height' => 176,
|
||||
'width' => 176,
|
||||
'flex-width' => true,
|
||||
'flex-height' => false,
|
||||
'header-text' => array( 'site-title' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
} // calm_business_setup
|
||||
add_action( 'after_setup_theme', 'calm_business_setup', 30 );
|
||||
|
||||
function calm_business_fonts_url() {
|
||||
|
||||
$fonts_url = '';
|
||||
|
||||
/* Translators: If there are characters in your language that are not
|
||||
* supported by Poppins, translate this to 'off'. Do not translate
|
||||
* into your own language.
|
||||
*/
|
||||
$poppins = esc_html_x( 'on', 'Poppins font: on or off', 'calm_business' );
|
||||
|
||||
if ( 'off' !== $poppins ) {
|
||||
$font_families = array();
|
||||
|
||||
if ( 'off' !== $poppins ) {
|
||||
$font_families[] = 'Poppins:400,400i,600,600i,700,700i';
|
||||
}
|
||||
|
||||
$query_args = array(
|
||||
'family' => urlencode( implode( '|', $font_families ) ),
|
||||
'subset' => urlencode( 'latin,latin-ext' ),
|
||||
);
|
||||
|
||||
$fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
|
||||
}
|
||||
|
||||
return esc_url_raw( $fonts_url );
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function calm_business_scripts() {
|
||||
|
||||
/**
|
||||
* Styles
|
||||
*/
|
||||
wp_enqueue_style( 'calm_business-fonts', calm_business_fonts_url(), array(), null );
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'calm_business_scripts' );
|
||||
add_action( 'enqueue_block_editor_assets', 'calm_business_scripts' );
|
||||
|
||||
/**
|
||||
* Load WPCom compatibility file.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/wpcom.php';
|
||||
|
||||
/**
|
||||
* Load Jetpack compatibility file.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/jetpack.php';
|
||||
|
||||
/**
|
||||
* Customizer additions.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/customizer.php';
|
12
calm-business/inc/customizer.php
Normal file
12
calm-business/inc/customizer.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
/**
|
||||
* Change the label of the Site Title option.
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*
|
||||
* @package Calm_business
|
||||
*/
|
||||
function calm_business_customize_register( $wp_customize ) {
|
||||
$wp_customize->get_control( 'header_text' )->label = __( 'Display Site Title', 'calm_business' );
|
||||
}
|
||||
add_action( 'customize_register', 'calm_business_customize_register' );
|
33
calm-business/inc/jetpack.php
Normal file
33
calm-business/inc/jetpack.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* Jetpack Compatibility File.
|
||||
*
|
||||
* @link https://jetpack.com/
|
||||
*
|
||||
* @package Calm_business
|
||||
*/
|
||||
/**
|
||||
* Jetpack Setup
|
||||
*/
|
||||
function calm_business_jetpack_setup() {
|
||||
/*
|
||||
* The Parent theme alredy comes with Jetpack compatibility
|
||||
*
|
||||
* Tweaking the compatibility rules might be done here,
|
||||
* if even necessary at all.
|
||||
*/
|
||||
}
|
||||
add_action( 'after_setup_theme', 'calm_business_jetpack_setup' );
|
||||
/**
|
||||
* Enqueue Jetpack-specific styles
|
||||
*
|
||||
* We need to enqueue some additional CSS to override the
|
||||
* parent theme’s fonts which are pre-baked into JetPack.
|
||||
*
|
||||
* See `calm2019/style-jetpack.scss`
|
||||
* Also see: https://github.com/Automattic/jetpack/blob/master/modules/theme-tools/compat/twentynineteen.css
|
||||
*/
|
||||
function calm_business_jetpack_styles() {
|
||||
wp_enqueue_style( 'calm_business-jetpack', get_stylesheet_directory_uri() . '/style-jetpack.css', '20100130' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'calm_business_jetpack_styles' );
|
25
calm-business/inc/wpcom.php
Normal file
25
calm-business/inc/wpcom.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/**
|
||||
* WPcom Compatibility File.
|
||||
*
|
||||
* @link https://wordpress.com/
|
||||
*
|
||||
* @package Calm_business
|
||||
*/
|
||||
/**
|
||||
* Filter default color from Twenty Nineteen.
|
||||
*/
|
||||
function calm_business_primary_color_hue() {
|
||||
return 43;
|
||||
}
|
||||
add_filter( 'twentynineteen_default_hue', 'calm_business_primary_color_hue' );
|
||||
|
||||
function calm_business_primary_color_saturation() {
|
||||
return 89;
|
||||
}
|
||||
add_filter( 'twentynineteen_default_saturation', 'calm_business_primary_color_saturation' );
|
||||
|
||||
function calm_business_primary_color_lightness() {
|
||||
return 29;
|
||||
}
|
||||
add_filter( 'twentynineteen_default_lightness', 'calm_business_primary_color_lightness' );
|
54
calm-business/languages/calm-business.pot
Normal file
54
calm-business/languages/calm-business.pot
Normal file
|
@ -0,0 +1,54 @@
|
|||
# Copyright (C) 2019 Automattic
|
||||
# This file is distributed under the GNU General Public License v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calm Business 1.0\n"
|
||||
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/calm-business\n"
|
||||
"POT-Creation-Date: 2019-02-01 00:09:51+00:00\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
#. Translators: If there are characters in your language that are not supported
|
||||
#. by Poppins, translate this to 'off'. Do not translate into your own
|
||||
#. language.
|
||||
#: functions.php:47
|
||||
msgctxt "Poppins font: on or off"
|
||||
msgid "on"
|
||||
msgstr ""
|
||||
|
||||
#: inc/customizer.php:10
|
||||
msgid "Display Site Title"
|
||||
msgstr ""
|
||||
|
||||
#. Theme Name of the plugin/theme
|
||||
#: wp-content/themes/pub/calm-business/style.css
|
||||
msgid "Calm Business"
|
||||
msgstr ""
|
||||
|
||||
#. Theme URI of the plugin/theme
|
||||
#: wp-content/themes/pub/calm-business/style.css
|
||||
msgid "https://github.com/automattic/themes"
|
||||
msgstr ""
|
||||
|
||||
#. Description of the plugin/theme
|
||||
#: wp-content/themes/pub/calm-business/style.css
|
||||
msgid ""
|
||||
"Your classy establishment needs an equally classy website to showcase your "
|
||||
"stylish rooms and quality products! With its bold typography and peaceful "
|
||||
"color scheme, Calm Business exudes a calm, inviting atmosphere as a bed and "
|
||||
"breakfast, time share, or brick & mortar store fronts."
|
||||
msgstr ""
|
||||
|
||||
#. Author of the plugin/theme
|
||||
#: wp-content/themes/pub/calm-business/style.css
|
||||
msgid "Automattic"
|
||||
msgstr ""
|
||||
|
||||
#. Author URI of the plugin/theme
|
||||
#: wp-content/themes/pub/calm-business/style.css
|
||||
msgid "https://wordpress.com"
|
||||
msgstr ""
|
4447
calm-business/package-lock.json
generated
Normal file
4447
calm-business/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
42
calm-business/package.json
Normal file
42
calm-business/package.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"name": "modern2019",
|
||||
"version": "1.0.0",
|
||||
"description": "Style Variation of the Default WP Theme",
|
||||
"devDependencies": {
|
||||
"@wordpress/browserslist-config": "^2.2.2",
|
||||
"autoprefixer": "^9.1.5",
|
||||
"chokidar-cli": "^1.2.1",
|
||||
"node-sass": "^4.9.3",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss-cli": "^6.0.1",
|
||||
"postcss-focus-within": "^3.0.0",
|
||||
"rtlcss": "^2.4.0"
|
||||
},
|
||||
"rtlcssConfig": {
|
||||
"options": {
|
||||
"autoRename": false,
|
||||
"autoRenameStrict": false,
|
||||
"blacklist": {},
|
||||
"clean": true,
|
||||
"greedy": false,
|
||||
"processUrls": false,
|
||||
"stringMap": []
|
||||
},
|
||||
"plugins": [],
|
||||
"map": false,
|
||||
"sourceMap": true
|
||||
},
|
||||
"browserslist": [
|
||||
"extends @wordpress/browserslist-config"
|
||||
],
|
||||
"scripts": {
|
||||
"build:style": "node-sass style.scss style.css --output-style expanded --source-map true && postcss -r style.css",
|
||||
"build:style-editor": "node-sass style-editor.scss style-editor.css --output-style expanded && postcss -r style-editor.css",
|
||||
"build:style-editor-customizer": "node-sass style-editor-customizer.scss style-editor-customizer.css --output-style expanded && postcss -r style-editor-customizer.css",
|
||||
"build:style-jetpack": "node-sass style-jetpack.scss style-jetpack.css --output-style expanded && postcss -r style-jetpack.css",
|
||||
"build:rtl": "rtlcss style.css style-rtl.css",
|
||||
"build:print": "node-sass print.scss print.css --output-style expanded && postcss -r print.css",
|
||||
"build": "run-p \"build:*\"",
|
||||
"watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial"
|
||||
}
|
||||
}
|
13
calm-business/postcss.config.js
Normal file
13
calm-business/postcss.config.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
var postcssFocusWithin = require('postcss-focus-within');
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
autoprefixer: {}
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
postcssFocusWithin(/* pluginOptions */)
|
||||
]
|
||||
};
|
162
calm-business/print.css
Normal file
162
calm-business/print.css
Normal file
|
@ -0,0 +1,162 @@
|
|||
/*
|
||||
Theme Name: Calm (Twenty Nineteen)
|
||||
|
||||
Adding print support. The print styles are based on the the great work of
|
||||
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
|
||||
*/
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
# Margins
|
||||
# Typography
|
||||
# Page breaks
|
||||
# Links
|
||||
# Visibility
|
||||
--------------------------------------------------------------*/
|
||||
@media print {
|
||||
/* Margins */
|
||||
@page {
|
||||
margin: 2cm;
|
||||
}
|
||||
.entry {
|
||||
margin-top: 1em;
|
||||
}
|
||||
.entry .entry-header, .site-footer .site-info {
|
||||
margin: 0;
|
||||
}
|
||||
/* Fonts */
|
||||
body {
|
||||
font: 13pt Georgia, "Times New Roman", Times, serif;
|
||||
line-height: 1.3;
|
||||
background: #fff !important;
|
||||
color: #000;
|
||||
}
|
||||
h1 {
|
||||
font-size: 24pt;
|
||||
}
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
.has-regular-font-size,
|
||||
.has-large-font-size,
|
||||
h2.author-title,
|
||||
p.author-bio,
|
||||
.comments-title, h3 {
|
||||
font-size: 14pt;
|
||||
margin-top: 25px;
|
||||
}
|
||||
/* Page breaks */
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
blockquote {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
page-break-after: avoid;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
page-break-after: avoid;
|
||||
}
|
||||
table, pre {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
ul, ol, dl {
|
||||
page-break-before: avoid;
|
||||
}
|
||||
/* Links */
|
||||
a:link, a:visited, a {
|
||||
background: transparent;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
text-align: left;
|
||||
}
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
a[href^=http]:after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
a:after > img {
|
||||
content: "";
|
||||
}
|
||||
article a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
a:not(:local-link):after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
/* Visibility */
|
||||
.main-navigation,
|
||||
.site-title + .main-navigation,
|
||||
.social-navigation,
|
||||
.site-branding-container:before,
|
||||
.entry .entry-title:before,
|
||||
.entry-footer,
|
||||
.author-description:before,
|
||||
.post-navigation,
|
||||
.widget-area,
|
||||
.comment-form-flex,
|
||||
.comment-reply,
|
||||
.comment .comment-metadata .edit-link {
|
||||
display: none;
|
||||
}
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link,
|
||||
.entry .entry-content .button {
|
||||
color: #000;
|
||||
background: none;
|
||||
}
|
||||
/* Site Header (With Featured Image) */
|
||||
.site-header.featured-image {
|
||||
min-height: 0;
|
||||
}
|
||||
.site-header.featured-image .main-navigation a,
|
||||
.site-header.featured-image .main-navigation a + svg,
|
||||
.site-header.featured-image .social-navigation a,
|
||||
.site-header.featured-image .site-title a,
|
||||
.site-header.featured-image .site-featured-image a,
|
||||
.site-header.featured-image .site-branding .site-title,
|
||||
.site-header.featured-image .site-branding .site-description,
|
||||
.site-header.featured-image .main-navigation a:after,
|
||||
.site-header.featured-image .main-navigation .main-menu > li.menu-item-has-children:after,
|
||||
.site-header.featured-image .main-navigation li,
|
||||
.site-header.featured-image .social-navigation li,
|
||||
.site-header.featured-image .entry-meta,
|
||||
.site-header.featured-image .entry-title,
|
||||
.site-header.featured-image#masthead .site-title a {
|
||||
color: #000;
|
||||
text-shadow: none;
|
||||
}
|
||||
.site-header.featured-image .site-featured-image .entry-header,
|
||||
.site-header.featured-image .site-branding-container {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
position: relative;
|
||||
height: initial;
|
||||
width: initial;
|
||||
object-fit: none;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
max-width: 100%;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
/* Remove image filters from featured image */
|
||||
.image-filters-enabled *:after {
|
||||
display: none !important;
|
||||
}
|
||||
.image-filters-enabled .site-header.featured-image .site-featured-image:before {
|
||||
display: none;
|
||||
}
|
||||
.image-filters-enabled .site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
filter: none;
|
||||
}
|
||||
}
|
198
calm-business/print.scss
Normal file
198
calm-business/print.scss
Normal file
|
@ -0,0 +1,198 @@
|
|||
/*
|
||||
Theme Name: Calm (Twenty Nineteen)
|
||||
|
||||
Adding print support. The print styles are based on the the great work of
|
||||
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
# Margins
|
||||
# Typography
|
||||
# Page breaks
|
||||
# Links
|
||||
# Visibility
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
@media print {
|
||||
|
||||
/* Margins */
|
||||
|
||||
@page {
|
||||
margin: 2cm;
|
||||
}
|
||||
|
||||
.entry {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.entry .entry-header, .site-footer .site-info {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Fonts */
|
||||
|
||||
body {
|
||||
font: 13pt Georgia, "Times New Roman", Times, serif;
|
||||
line-height: 1.3;
|
||||
background: #fff !important;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24pt;
|
||||
}
|
||||
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
.has-regular-font-size,
|
||||
.has-large-font-size,
|
||||
h2.author-title,
|
||||
p.author-bio,
|
||||
.comments-title, h3 {
|
||||
font-size: 14pt;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
/* Page breaks */
|
||||
|
||||
a {
|
||||
page-break-inside: avoid
|
||||
}
|
||||
|
||||
blockquote {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
page-break-after: avoid;
|
||||
page-break-inside: avoid
|
||||
}
|
||||
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
page-break-after: avoid;
|
||||
}
|
||||
|
||||
table, pre {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
ul, ol, dl {
|
||||
page-break-before: avoid;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
|
||||
a:link, a:visited, a {
|
||||
background: transparent;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
a[href^=http]:after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
|
||||
a:after > img {
|
||||
content: "";
|
||||
}
|
||||
|
||||
article a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
a:not(:local-link):after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
|
||||
/* Visibility */
|
||||
.main-navigation,
|
||||
.site-title + .main-navigation,
|
||||
.social-navigation,
|
||||
.site-branding-container:before,
|
||||
.entry .entry-title:before,
|
||||
.entry-footer,
|
||||
.author-description:before,
|
||||
.post-navigation,
|
||||
.widget-area,
|
||||
.comment-form-flex,
|
||||
.comment-reply,
|
||||
.comment .comment-metadata .edit-link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link,
|
||||
.entry .entry-content .button {
|
||||
color: #000;
|
||||
background: none;
|
||||
}
|
||||
|
||||
/* Site Header (With Featured Image) */
|
||||
.site-header.featured-image {
|
||||
min-height: 0;
|
||||
|
||||
.main-navigation a,
|
||||
.main-navigation a + svg,
|
||||
.social-navigation a,
|
||||
.site-title a,
|
||||
.site-featured-image a,
|
||||
.site-branding .site-title,
|
||||
.site-branding .site-description,
|
||||
.main-navigation a:after,
|
||||
.main-navigation .main-menu > li.menu-item-has-children:after,
|
||||
.main-navigation li,
|
||||
.social-navigation li,
|
||||
.entry-meta,
|
||||
.entry-title,
|
||||
&#masthead .site-title a {
|
||||
color: #000;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.site-featured-image .entry-header,
|
||||
.site-branding-container {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.site-featured-image .post-thumbnail img {
|
||||
position: relative;
|
||||
height: initial;
|
||||
width: initial;
|
||||
object-fit: none;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
max-width: 100%;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove image filters from featured image */
|
||||
.image-filters-enabled {
|
||||
|
||||
*:after {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.site-header.featured-image .site-featured-image:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
}
|
341
calm-business/sass/_normalize.scss
Normal file
341
calm-business/sass/_normalize.scss
Normal file
|
@ -0,0 +1,341 @@
|
|||
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||
|
||||
/* Document
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Correct the line height in all browsers.
|
||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
*/
|
||||
|
||||
html {
|
||||
line-height: 1.15; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/* Sections
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the margin in all browsers.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the font size and margin on `h1` elements within `section` and
|
||||
* `article` contexts in Chrome, Firefox, and Safari.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in Firefox.
|
||||
* 2. Show the overflow in Edge and IE.
|
||||
*/
|
||||
|
||||
hr {
|
||||
box-sizing: content-box; /* 1 */
|
||||
height: 0; /* 1 */
|
||||
overflow: visible; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background on active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove the bottom border in Chrome 57-
|
||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: none; /* 1 */
|
||||
text-decoration: underline; /* 2 */
|
||||
text-decoration: underline dotted; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||
* all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the border on images inside links in IE 10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Change the font styles in all browsers.
|
||||
* 2. Remove the margin in Firefox and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 1 */
|
||||
line-height: 1.15; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the overflow in IE.
|
||||
* 1. Show the overflow in Edge.
|
||||
*/
|
||||
|
||||
button,
|
||||
input { /* 1 */
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||
* 1. Remove the inheritance of text transform in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select { /* 1 */
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the inability to style clickable types in iOS and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner border and padding in Firefox.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the focus styles unset by the previous rule.
|
||||
*/
|
||||
|
||||
button:-moz-focusring,
|
||||
[type="button"]:-moz-focusring,
|
||||
[type="reset"]:-moz-focusring,
|
||||
[type="submit"]:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the padding in Firefox.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
padding: 0.35em 0.75em 0.625em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the text wrapping in Edge and IE.
|
||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||
* 3. Remove the padding so developers are not caught out when they zero out
|
||||
* `fieldset` elements in all browsers.
|
||||
*/
|
||||
|
||||
legend {
|
||||
box-sizing: border-box; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
display: table; /* 1 */
|
||||
max-width: 100%; /* 1 */
|
||||
padding: 0; /* 3 */
|
||||
white-space: normal; /* 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the default vertical scrollbar in IE 10+.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in IE 10.
|
||||
* 2. Remove the padding in IE 10.
|
||||
*/
|
||||
|
||||
[type="checkbox"],
|
||||
[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||
*/
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the odd appearance in Chrome and Safari.
|
||||
* 2. Correct the outline style in Safari.
|
||||
*/
|
||||
|
||||
[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
outline-offset: -2px; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||
* 2. Change font properties to `inherit` in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/* Interactive
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||
*/
|
||||
|
||||
details {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the correct display in all browsers.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Misc
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10+.
|
||||
*/
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
1014
calm-business/sass/blocks/_blocks.scss
Normal file
1014
calm-business/sass/blocks/_blocks.scss
Normal file
File diff suppressed because it is too large
Load diff
87
calm-business/sass/elements/_elements.scss
Normal file
87
calm-business/sass/elements/_elements.scss
Normal file
|
@ -0,0 +1,87 @@
|
|||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
::-moz-selection {
|
||||
background-color: $color__background_selection;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: $color__background_selection;
|
||||
}
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: $color__background-body;
|
||||
}
|
||||
|
||||
a {
|
||||
@include link-transition;
|
||||
color: $color__link;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:active {
|
||||
color: $color__link-hover;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: thin;
|
||||
outline-style: dotted;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
clear: both;
|
||||
margin: $size__spacing-unit 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: $color__text-light;
|
||||
border: 0;
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
@import "lists";
|
||||
|
||||
img {
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 2px solid $color__link;
|
||||
margin-left: 0;
|
||||
padding: 0 0 0 $size__spacing-unit;
|
||||
|
||||
> p {
|
||||
margin: 0 0 $size__spacing-unit;
|
||||
}
|
||||
|
||||
cite {
|
||||
color: $color__text-light;
|
||||
}
|
||||
}
|
||||
|
||||
@import "tables";
|
33
calm-business/sass/elements/_lists.scss
Normal file
33
calm-business/sass/elements/_lists.scss
Normal file
|
@ -0,0 +1,33 @@
|
|||
ul,
|
||||
ol {
|
||||
padding-left: ( 1 * $size__spacing-unit );
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
|
||||
ul {
|
||||
list-style-type: circle;
|
||||
}
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
li {
|
||||
line-height: $font__line-height-body;
|
||||
}
|
||||
|
||||
li > ul,
|
||||
li > ol {
|
||||
padding-left: ( 2 * $size__spacing-unit );
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0 $size__spacing-unit $size__spacing-unit;
|
||||
}
|
13
calm-business/sass/elements/_tables.scss
Normal file
13
calm-business/sass/elements/_tables.scss
Normal file
|
@ -0,0 +1,13 @@
|
|||
table {
|
||||
margin: 0 0 $size__spacing-unit;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-family: $font__heading;
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0.5em;
|
||||
border: 1px solid $color__text-light;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
37
calm-business/sass/forms/_buttons.scss
Normal file
37
calm-business/sass/forms/_buttons.scss
Normal file
|
@ -0,0 +1,37 @@
|
|||
.button,
|
||||
button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
|
||||
@include button-transition;
|
||||
background: $color__background-button;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
color: $color__background-body;
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: 700;
|
||||
line-height: $font__line-height-heading;
|
||||
outline: none;
|
||||
padding: ( $size__spacing-unit * .76 ) $size__spacing-unit;
|
||||
text-decoration: none;
|
||||
vertical-align: bottom;
|
||||
|
||||
&:hover {
|
||||
background: $color__background-button-hover;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:visited {
|
||||
color: $color__background-body;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background: $color__background-button-hover;
|
||||
outline: thin dotted;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
98
calm-business/sass/forms/_fields.scss
Normal file
98
calm-business/sass/forms/_fields.scss
Normal file
|
@ -0,0 +1,98 @@
|
|||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
input[type="search"],
|
||||
input[type="number"],
|
||||
input[type="tel"],
|
||||
input[type="range"],
|
||||
input[type="date"],
|
||||
input[type="month"],
|
||||
input[type="week"],
|
||||
input[type="time"],
|
||||
input[type="datetime"],
|
||||
input[type="datetime-local"],
|
||||
input[type="color"],
|
||||
textarea {
|
||||
-webkit-backface-visibility: hidden;
|
||||
background: $color__background-input;
|
||||
border: solid 1px $color__border;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
padding: #{.36 * $size__spacing-unit} #{.66 * $size__spacing-unit};
|
||||
-webkit-appearance: none;
|
||||
outline-offset: 0;
|
||||
border-radius: 3px;
|
||||
|
||||
&:focus {
|
||||
border-color: $color__link;
|
||||
outline: thin solid rgba( $color__link, 0.15 );
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="search"] {
|
||||
&::-webkit-search-decoration {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
|
||||
}
|
||||
|
||||
textarea {
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
form {
|
||||
|
||||
p {
|
||||
margin: $size__spacing-unit 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.contact-form {
|
||||
label {
|
||||
display: block;
|
||||
span {
|
||||
&:before {
|
||||
content: " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
input[type="search"],
|
||||
input[type="number"],
|
||||
input[type="tel"],
|
||||
input[type="range"],
|
||||
input[type="date"],
|
||||
input[type="month"],
|
||||
input[type="week"],
|
||||
input[type="time"],
|
||||
input[type="datetime"],
|
||||
input[type="datetime-local"],
|
||||
input[type="color"] {
|
||||
margin-bottom: 13.6px;
|
||||
min-width: 300px;
|
||||
min-height: 56px;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
font-size: $font__size-sm;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
}
|
||||
|
||||
textarea {
|
||||
max-height: 200px;
|
||||
}
|
||||
}
|
3
calm-business/sass/forms/_forms.scss
Normal file
3
calm-business/sass/forms/_forms.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
@import "buttons";
|
||||
|
||||
@import "fields";
|
11
calm-business/sass/layout/_layout.scss
Normal file
11
calm-business/sass/layout/_layout.scss
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
/** === Layout === */
|
||||
|
||||
#page {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.site-content {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
32
calm-business/sass/media/_captions.scss
Normal file
32
calm-business/sass/media/_captions.scss
Normal file
|
@ -0,0 +1,32 @@
|
|||
.wp-caption {
|
||||
margin-bottom: calc(1.5 * #{$size__spacing-unit});
|
||||
|
||||
&.aligncenter {
|
||||
|
||||
@include media(tablet) {
|
||||
position: relative;
|
||||
left: calc( #{$size__site-tablet-content} / 2 );
|
||||
transform: translateX( -50% );
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
left: calc( #{$size__site-desktop-content} / 2 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-caption img[class*="wp-image-"] {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.wp-caption-text {
|
||||
color: $color__text-main;
|
||||
font-size: $font__size-xs;
|
||||
font-family: $font__heading;
|
||||
line-height: $font__line-height-pre;
|
||||
margin: 0;
|
||||
padding: ( $size__spacing-unit * .5 );
|
||||
text-align: center;
|
||||
}
|
52
calm-business/sass/media/_galleries.scss
Normal file
52
calm-business/sass/media/_galleries.scss
Normal file
|
@ -0,0 +1,52 @@
|
|||
.gallery {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
justify-content: center;
|
||||
margin-bottom: calc(1.5 * #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
.gallery-item {
|
||||
display: inline-block;
|
||||
margin-right: 16px;
|
||||
margin-bottom: 16px;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
|
||||
// Loops to enumerate the classes for gallery columns.
|
||||
@for $i from 2 through 9 {
|
||||
.gallery-columns-#{$i} & {
|
||||
max-width: calc((100% - 16px * #{ $i - 1 }) / #{ $i });
|
||||
|
||||
&:nth-of-type(#{$i}n+#{$i}) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.gallery-caption {
|
||||
display: block;
|
||||
font-size: $font__size-xs;
|
||||
font-family: $font__heading;
|
||||
line-height: $font__line-height-pre;
|
||||
margin: 0;
|
||||
padding: ( $size__spacing-unit * .5 );
|
||||
}
|
||||
|
||||
.gallery-item > div > a {
|
||||
display: block;
|
||||
line-height: 0;
|
||||
|
||||
// Accessibility
|
||||
box-shadow: 0 0 0 0 transparent;
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px rgba( $color__link, 1 );
|
||||
}
|
||||
}
|
||||
|
41
calm-business/sass/media/_media.scss
Normal file
41
calm-business/sass/media/_media.scss
Normal file
|
@ -0,0 +1,41 @@
|
|||
.page-content .wp-smiley,
|
||||
.entry-content .wp-smiley,
|
||||
.comment-content .wp-smiley {
|
||||
border: none;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
embed,
|
||||
iframe,
|
||||
object {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.custom-logo-link {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
border-radius: 100%;
|
||||
display: block;
|
||||
height: calc(2.25 * #{$size__spacing-unit});
|
||||
min-height: inherit;
|
||||
width: calc(2.25 * #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
svg {
|
||||
transition: fill $icon_transition ease-in-out;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Captions
|
||||
--------------------------------------------------------------*/
|
||||
@import "captions";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Galleries
|
||||
--------------------------------------------------------------*/
|
||||
@import "galleries";
|
229
calm-business/sass/mixins/_mixins-master.scss
Normal file
229
calm-business/sass/mixins/_mixins-master.scss
Normal file
|
@ -0,0 +1,229 @@
|
|||
// Rem output with px fallback
|
||||
@mixin font-size($sizeValue: 1) {
|
||||
font-size: ($sizeValue * 16) * 1px;
|
||||
font-size: $sizeValue * 1rem;
|
||||
}
|
||||
|
||||
// Center block
|
||||
@mixin center-block {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
// Clearfix
|
||||
@mixin clearfix() {
|
||||
content: "";
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
// Clear after (not all clearfix need this also)
|
||||
@mixin clearfix-after() {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
// Column width with margin
|
||||
@mixin column-width($numberColumns: 3) {
|
||||
width: map-get($columns, $numberColumns) - (($columns__margin * ($numberColumns - 1)) / $numberColumns);
|
||||
}
|
||||
|
||||
@mixin filter-duotone {
|
||||
|
||||
&:before {
|
||||
background: $color__link;
|
||||
mix-blend-mode: screen;
|
||||
opacity: 0.1;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
&:after {
|
||||
background: $color__link;
|
||||
mix-blend-mode: multiply;
|
||||
opacity: .8;
|
||||
z-index: 3;
|
||||
|
||||
/* Browsers supporting mix-blend-mode don't need opacity < 1 */
|
||||
@supports (mix-blend-mode: multiply) {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin filter-grayscale {
|
||||
|
||||
position: relative;
|
||||
filter: grayscale(100%);
|
||||
z-index: 1;
|
||||
|
||||
&:after {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin post-section-dash-dark {
|
||||
z-index: 1;
|
||||
align-self: start;
|
||||
> :first-child {
|
||||
&:before {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: inherit;
|
||||
content: "";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: 1.46rem 0 1rem;
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin post-section-dash {
|
||||
z-index: 1;
|
||||
align-self: start;
|
||||
> :first-child {
|
||||
&:before {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: inherit;
|
||||
content: "";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: 1.46rem 0 1rem;
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
|
||||
* since its edges can look jagged due to lack of antialiasing. In this case, we are several
|
||||
* layers of box-shadow to add the border visually, which will render the border smoother. */
|
||||
|
||||
@mixin box-shadow( $size ) {
|
||||
box-shadow:
|
||||
0 0 0 $size $color__text-light inset, // Original border.
|
||||
0 0 0 ($size + 1px) $color__text-light inset, // Antialiasing, inner edge.
|
||||
0 0 1px 0 rgba( $color__text-light, 0.7 ); // Antialiasing, outer edge.
|
||||
}
|
||||
|
||||
/* Fallback for non-latin fonts */
|
||||
|
||||
@mixin non-latin-fonts( $wrapper_classname: '.site' ) {
|
||||
|
||||
/* Arabic */
|
||||
html[lang="ar"] #{$wrapper_classname} *,
|
||||
html[lang="ary"] #{$wrapper_classname} *,
|
||||
html[lang="azb"] #{$wrapper_classname} *,
|
||||
html[lang="ckb"] #{$wrapper_classname} *,
|
||||
html[lang="fa-IR"] #{$wrapper_classname} *,
|
||||
html[lang="haz"] #{$wrapper_classname} *,
|
||||
html[lang="ps"] #{$wrapper_classname} * {
|
||||
font-family: Tahoma, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Cyrillic */
|
||||
html[lang="be"] #{$wrapper_classname} *,
|
||||
html[lang="bg-BG"] #{$wrapper_classname} *,
|
||||
html[lang="kk"] #{$wrapper_classname} *,
|
||||
html[lang="mk-MK"] #{$wrapper_classname} *,
|
||||
html[lang="mn"] #{$wrapper_classname} *,
|
||||
html[lang="ru-RU"] #{$wrapper_classname} *,
|
||||
html[lang="sah"] #{$wrapper_classname} *,
|
||||
html[lang="sr-RS"] #{$wrapper_classname} *,
|
||||
html[lang="tt-RU"] #{$wrapper_classname} *,
|
||||
html[lang="uk"] #{$wrapper_classname} * {
|
||||
font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (Hong Kong) */
|
||||
html[lang="zh-HK"] #{$wrapper_classname} * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang HK', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (Taiwan) */
|
||||
html[lang="zh-TW"] #{$wrapper_classname} * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (China) */
|
||||
html[lang="zh-CN"] #{$wrapper_classname} * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Devanagari */
|
||||
html[lang="bn-BD"] #{$wrapper_classname} *,
|
||||
html[lang="hi-IN"] #{$wrapper_classname} *,
|
||||
html[lang="mr"] #{$wrapper_classname} *,
|
||||
html[lang="ne-NP"] #{$wrapper_classname} * {
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Greek */
|
||||
html[lang="el"] #{$wrapper_classname} * {
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Gujarati */
|
||||
html[lang="gu"] #{$wrapper_classname} * {
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Hebrew */
|
||||
html[lang="he-IL"] #{$wrapper_classname} * {
|
||||
font-family: 'Arial Hebrew', Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Japanese */
|
||||
html[lang="ja"] #{$wrapper_classname} * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, "Helvetica Neue", sans-serif !important;
|
||||
}
|
||||
|
||||
/* Korean */
|
||||
html[lang="ko-KR"] #{$wrapper_classname} * {
|
||||
font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Nanum Gothic', Dotum, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Thai */
|
||||
html[lang="th"] #{$wrapper_classname} * {
|
||||
font-family: 'Sukhumvit Set', 'Helvetica Neue', helvetica, arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Vietnamese */
|
||||
html[lang="vi"] #{$wrapper_classname} * {
|
||||
font-family: 'Libre Franklin', sans-serif !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Calculates maximum width for post content */
|
||||
@mixin postContentMaxWidth() {
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: $size__site-tablet-content;
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: $size__site-desktop-content;
|
||||
}
|
||||
}
|
||||
|
||||
/* Nested sub-menu padding: 10 levels deep */
|
||||
@mixin nestedSubMenuPadding() {
|
||||
|
||||
ul {
|
||||
counter-reset: submenu;
|
||||
}
|
||||
|
||||
ul > li > a::before {
|
||||
font-family: $font__body;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
line-height: $font__line-height-heading;
|
||||
content: "\2013\00a0" counters(submenu, "\2013\00a0", none);
|
||||
counter-increment: submenu
|
||||
}
|
||||
}
|
||||
|
||||
@import "utilities";
|
51
calm-business/sass/mixins/_utilities.scss
Normal file
51
calm-business/sass/mixins/_utilities.scss
Normal file
|
@ -0,0 +1,51 @@
|
|||
|
||||
@mixin media( $res ) {
|
||||
@if mobile == $res {
|
||||
@media only screen and (min-width: $mobile_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@if tablet == $res {
|
||||
@media only screen and (min-width: $tablet_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@if desktop == $res {
|
||||
@media only screen and (min-width: $desktop_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@if wide == $res {
|
||||
@media only screen and (min-width: $wide_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin link-transition( $attr: color ) {
|
||||
transition: $attr $link_transition ease-in-out;
|
||||
}
|
||||
|
||||
@mixin button-transition() {
|
||||
transition: background $button_transition ease-in-out;
|
||||
}
|
||||
|
||||
@mixin button-all-transition() {
|
||||
transition: all $button_transition ease-in-out;
|
||||
}
|
||||
|
||||
@mixin background-transition() {
|
||||
transition: background $background_transition ease-in-out;
|
||||
}
|
||||
|
||||
@mixin selection {
|
||||
::-moz-selection {
|
||||
@content;
|
||||
}
|
||||
::selection {
|
||||
@content;
|
||||
}
|
||||
}
|
38
calm-business/sass/modules/_accessibility.scss
Normal file
38
calm-business/sass/modules/_accessibility.scss
Normal file
|
@ -0,0 +1,38 @@
|
|||
/* Text meant only for screen readers. */
|
||||
.screen-reader-text {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute !important;
|
||||
width: 1px;
|
||||
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
|
||||
|
||||
&:focus {
|
||||
background-color: $color__background-screen;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
||||
clip: auto !important;
|
||||
clip-path: none;
|
||||
color: $color__text-screen;
|
||||
display: block;
|
||||
@include font-size(0.875);
|
||||
font-weight: bold;
|
||||
height: auto;
|
||||
left: 5px;
|
||||
line-height: normal;
|
||||
padding: 15px 23px 14px;
|
||||
text-decoration: none;
|
||||
top: 5px;
|
||||
width: auto;
|
||||
z-index: 100000; /* Above WP toolbar. */
|
||||
}
|
||||
}
|
||||
|
||||
/* Do not show the outline on the skip link target. */
|
||||
#content[tabindex="-1"]:focus {
|
||||
outline: 0;
|
||||
}
|
28
calm-business/sass/modules/_alignments.scss
Normal file
28
calm-business/sass/modules/_alignments.scss
Normal file
|
@ -0,0 +1,28 @@
|
|||
.alignleft {
|
||||
/*rtl:ignore*/
|
||||
float: left;
|
||||
/*rtl:ignore*/
|
||||
margin-right: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
/*rtl:ignore*/
|
||||
margin-right: calc(2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.alignright {
|
||||
/*rtl:ignore*/
|
||||
float: right;
|
||||
/*rtl:ignore*/
|
||||
margin-left: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
/*rtl:ignore*/
|
||||
margin-left: calc(2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.aligncenter {
|
||||
clear: both;
|
||||
@include center-block;
|
||||
}
|
23
calm-business/sass/modules/_clearings.scss
Normal file
23
calm-business/sass/modules/_clearings.scss
Normal file
|
@ -0,0 +1,23 @@
|
|||
.clear:before,
|
||||
.clear:after,
|
||||
.entry-content:before,
|
||||
.entry-content:after,
|
||||
.comment-content:before,
|
||||
.comment-content:after,
|
||||
.site-header:before,
|
||||
.site-header:after,
|
||||
.site-content:before,
|
||||
.site-content:after,
|
||||
.site-footer:before,
|
||||
.site-footer:after {
|
||||
@include clearfix;
|
||||
}
|
||||
|
||||
.clear:after,
|
||||
.entry-content:after,
|
||||
.comment-content:after,
|
||||
.site-header:after,
|
||||
.site-content:after,
|
||||
.site-footer:after {
|
||||
@include clearfix-after;
|
||||
}
|
21
calm-business/sass/navigation/_links.scss
Normal file
21
calm-business/sass/navigation/_links.scss
Normal file
|
@ -0,0 +1,21 @@
|
|||
a {
|
||||
|
||||
@include link-transition;
|
||||
color: $color__link;
|
||||
|
||||
&:visited {
|
||||
color: $color__link-visited;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $color__link-hover;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: thin dotted;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
22
calm-business/sass/navigation/_menu-footer-navigation.scss
Normal file
22
calm-business/sass/navigation/_menu-footer-navigation.scss
Normal file
|
@ -0,0 +1,22 @@
|
|||
/** === Footer menu === */
|
||||
|
||||
.footer-navigation {
|
||||
|
||||
display: inline;
|
||||
|
||||
& > div {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.footer-menu {
|
||||
|
||||
display: inline;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
508
calm-business/sass/navigation/_menu-main-navigation.scss
Normal file
508
calm-business/sass/navigation/_menu-main-navigation.scss
Normal file
|
@ -0,0 +1,508 @@
|
|||
/** === Main menu === */
|
||||
|
||||
.main-navigation {
|
||||
|
||||
display: block;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 0;
|
||||
|
||||
body.page & {
|
||||
display: block;
|
||||
}
|
||||
|
||||
> div {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* Un-style buttons */
|
||||
button {
|
||||
display: inline-block;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: $font__heading;
|
||||
font-weight: 700;
|
||||
line-height: $font__line-height-heading;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
transition: background 250ms ease-in-out,
|
||||
transform 150ms ease;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 1px solid transparent;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: scale(0.99);
|
||||
}
|
||||
}
|
||||
|
||||
.main-menu {
|
||||
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
> li {
|
||||
|
||||
color: $color__link;
|
||||
display: inline;
|
||||
position: relative;
|
||||
|
||||
> a {
|
||||
|
||||
font-weight: $font__weight_semi_bold;
|
||||
color: $color__link;
|
||||
margin-right: #{0.5 * $size__spacing-unit};
|
||||
|
||||
+ svg {
|
||||
margin-right: #{0.5 * $size__spacing-unit};
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:hover + svg {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
|
||||
&.menu-item-has-children {
|
||||
|
||||
display: inline-block;
|
||||
position: inherit;
|
||||
|
||||
@include media(tablet) {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
> a {
|
||||
margin-right: #{0.125 * $size__spacing-unit};
|
||||
}
|
||||
|
||||
& > a,
|
||||
.menu-item-has-children > a {
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu-expand {
|
||||
|
||||
display: inline-block;
|
||||
margin-right: #{0.25 * $size__spacing-unit};
|
||||
|
||||
/* Priority+ Menu */
|
||||
&.main-menu-more-toggle {
|
||||
|
||||
position: relative;
|
||||
height: 24px;
|
||||
line-height: $font__line-height-heading;
|
||||
width: 24px;
|
||||
padding: 0;
|
||||
margin-left: #{0.5 * $size__spacing-unit};
|
||||
|
||||
svg {
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
top: #{-0.125 * $size__spacing-unit};
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-customizer-unloading &,
|
||||
&.is-empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
position: relative;
|
||||
top: 0.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child > a,
|
||||
&:last-child.menu-item-has-children .submenu-expand {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
text-align: left;
|
||||
background-color: $color__link;
|
||||
color: $color__background-body;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
left: -9999px;
|
||||
z-index: 99999;
|
||||
|
||||
@include media(tablet) {
|
||||
width: auto;
|
||||
min-width: -moz-max-content;
|
||||
min-width: -webkit-max-content;
|
||||
min-width: max-content;
|
||||
}
|
||||
|
||||
> li {
|
||||
|
||||
display: block;
|
||||
float: none;
|
||||
position: relative;
|
||||
|
||||
&.menu-item-has-children {
|
||||
|
||||
.submenu-expand {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
width: calc( 24px + #{$size__spacing-unit} );
|
||||
right: 0;
|
||||
top: calc( .125 * #{$size__spacing-unit} );
|
||||
bottom: 0;
|
||||
color: white;
|
||||
line-height: 1;
|
||||
padding: calc( .5 * #{$size__spacing-unit} );
|
||||
|
||||
svg {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu-expand {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
.menu-item-has-children > a {
|
||||
|
||||
&:after {
|
||||
content: "\203a";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> a,
|
||||
> .menu-item-link-return {
|
||||
|
||||
color: $color__background-body;
|
||||
display: block;
|
||||
line-height: $font__line-height-heading;
|
||||
text-shadow: none;
|
||||
padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
|
||||
white-space: nowrap;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: $color__link-hover;
|
||||
|
||||
&:after {
|
||||
background: $color__link-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .menu-item-link-return {
|
||||
width: 100%;
|
||||
font-size: $font__size_base;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
> a:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.mobile-parent-nav-menu-item {
|
||||
|
||||
display: none;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: normal;
|
||||
|
||||
svg {
|
||||
position: relative;
|
||||
top: 0.2rem;
|
||||
margin-right: calc( .25 * #{$size__spacing-unit} );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Sub-menu styles
|
||||
*
|
||||
* :focus-within needs its own selector so other similar
|
||||
* selectors don’t get ignored if a browser doesn’t recognize it
|
||||
*/
|
||||
.main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu {
|
||||
|
||||
display: block;
|
||||
left: 0;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
width: auto;
|
||||
min-width: 100%;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
|
||||
/* Non-mobile position */
|
||||
@include media(tablet) {
|
||||
display: block;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: auto;
|
||||
top: auto;
|
||||
bottom: auto;
|
||||
height: auto;
|
||||
min-width: -moz-max-content;
|
||||
min-width: -webkit-max-content;
|
||||
min-width: max-content;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
&.hidden-links {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
display: table;
|
||||
position: absolute;
|
||||
|
||||
@include media(tablet) {
|
||||
right: 0;
|
||||
left: auto;
|
||||
display: block;
|
||||
width: max-content;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu-expand {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
display: block;
|
||||
margin-top: inherit;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
opacity: 1;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
|
||||
/* Non-mobile position */
|
||||
@include media(tablet) {
|
||||
float: none;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Nested sub-menu dashes */
|
||||
.sub-menu {
|
||||
counter-reset: submenu;
|
||||
}
|
||||
|
||||
.sub-menu > li > a::before {
|
||||
font-family: $font__body;
|
||||
font-weight: normal;
|
||||
content: "\2013\00a0" counters(submenu, "\2013\00a0", none);
|
||||
counter-increment: submenu
|
||||
}
|
||||
}
|
||||
|
||||
.main-menu .menu-item-has-children:not(.off-canvas):hover > .sub-menu,
|
||||
.main-menu .menu-item-has-children:not(.off-canvas):focus > .sub-menu,
|
||||
.main-menu .menu-item-has-children.is-focused:not(.off-canvas) > .sub-menu {
|
||||
|
||||
display: block;
|
||||
left: 0;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
width: auto;
|
||||
min-width: 100%;
|
||||
|
||||
|
||||
/* Non-mobile position */
|
||||
@include media(tablet) {
|
||||
display: block;
|
||||
float: none;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: auto;
|
||||
top: auto;
|
||||
bottom: auto;
|
||||
height: auto;
|
||||
min-width: -moz-max-content;
|
||||
min-width: -webkit-max-content;
|
||||
min-width: max-content;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
&.hidden-links {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
display: table;
|
||||
position: absolute;
|
||||
|
||||
@include media(tablet) {
|
||||
right: 0;
|
||||
left: auto;
|
||||
display: table;
|
||||
width: max-content;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu-expand {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
display: block;
|
||||
margin-top: inherit;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
opacity: 1;
|
||||
|
||||
/* Non-mobile position */
|
||||
@include media(tablet) {
|
||||
float: none;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Nested sub-menu dashes */
|
||||
.sub-menu {
|
||||
counter-reset: submenu;
|
||||
}
|
||||
|
||||
.sub-menu > li > a::before {
|
||||
font-family: $font__body;
|
||||
font-weight: normal;
|
||||
content: "\2013\00a0" counters(submenu, "\2013\00a0", none);
|
||||
counter-increment: submenu
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fade-in animation for top-level submenus
|
||||
*/
|
||||
.main-menu > .menu-item-has-children:not(.off-canvas):hover > .sub-menu {
|
||||
animation: fade_in 0.1s forwards;
|
||||
}
|
||||
|
||||
/**
|
||||
* Off-canvas touch device styles
|
||||
*/
|
||||
.main-menu .menu-item-has-children.off-canvas .sub-menu {
|
||||
|
||||
.submenu-expand .svg-icon {
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
li:hover,
|
||||
li:focus,
|
||||
li > a:hover,
|
||||
li > a:focus {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
> li > a,
|
||||
> li > .menu-item-link-return {
|
||||
white-space: inherit;
|
||||
}
|
||||
|
||||
&.expanded-true {
|
||||
|
||||
display: table;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
padding-left: 0;
|
||||
|
||||
/* Mobile position */
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
position: fixed;
|
||||
z-index: 100000; /* Make sure appears above mobile admin bar */
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
max-width: 100vw;
|
||||
transform: translateX(+100%);
|
||||
animation: slide_in_right 0.3s forwards;
|
||||
|
||||
> .mobile-parent-nav-menu-item {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Prevent menu from being blocked by admin bar */
|
||||
.admin-bar & {
|
||||
top: 46px;
|
||||
height: calc( 100vh - 46px );
|
||||
|
||||
.sub-menu.expanded-true {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* WP core breakpoint */
|
||||
@media only screen and ( min-width: 782px ) {
|
||||
top: 32px;
|
||||
height: calc( 100vh - 32px );
|
||||
|
||||
.sub-menu.expanded-true {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Hide duplicate menu-more-link when re-loading a menu in the customizer
|
||||
.main-menu-more {
|
||||
&:nth-child(n+3) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Menu animation */
|
||||
|
||||
@keyframes slide_in_right {
|
||||
100% {
|
||||
transform: translateX(0%);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fade_in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
65
calm-business/sass/navigation/_menu-social-navigation.scss
Normal file
65
calm-business/sass/navigation/_menu-social-navigation.scss
Normal file
|
@ -0,0 +1,65 @@
|
|||
/* Social menu */
|
||||
|
||||
.social-navigation {
|
||||
text-align: center;
|
||||
|
||||
ul.social-links-menu {
|
||||
@include clearfix;
|
||||
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
vertical-align: -webkit-baseline-middle;
|
||||
list-style: none;
|
||||
|
||||
&:nth-child(n+2) {
|
||||
margin-left: 0.1em;
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom: 1px solid transparent;
|
||||
display: block;
|
||||
color: $color__text-main;
|
||||
margin-bottom: -1px;
|
||||
transition: opacity $link_transition ease-in-out;
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $color__text-main;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
color: $color__text-main;
|
||||
opacity: 1;
|
||||
border-bottom: 1px solid $color__text-main;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
|
||||
// Prevent icons from jumping in Safari using hardware acceleration.
|
||||
transform: translateZ(0);
|
||||
|
||||
&#ui-icon-link {
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-title + .social-navigation,
|
||||
.site-description + .social-navigation {
|
||||
|
||||
@include media(tablet) {
|
||||
margin-top: calc(#{$size__spacing-unit} / 5 );
|
||||
}
|
||||
}
|
16
calm-business/sass/navigation/_navigation.scss
Normal file
16
calm-business/sass/navigation/_navigation.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*--------------------------------------------------------------
|
||||
## Links
|
||||
--------------------------------------------------------------*/
|
||||
@import "links";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Menus
|
||||
--------------------------------------------------------------*/
|
||||
@import "menu-main-navigation";
|
||||
@import "menu-social-navigation";
|
||||
@import "menu-footer-navigation";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Next / Previous
|
||||
--------------------------------------------------------------*/
|
||||
@import "next-previous";
|
184
calm-business/sass/navigation/_next-previous.scss
Normal file
184
calm-business/sass/navigation/_next-previous.scss
Normal file
|
@ -0,0 +1,184 @@
|
|||
/* Next/Previous navigation */
|
||||
|
||||
// Singular navigation
|
||||
.post-navigation {
|
||||
|
||||
margin: calc(3 * 1rem) 0;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) auto;
|
||||
max-width: $size__site-tablet-content;
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@include media(tablet) {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
a {
|
||||
.meta-nav {
|
||||
color: $color__text-main;
|
||||
user-select: none;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
display: none;
|
||||
content: "—";
|
||||
width: 2em;
|
||||
color: $color__text-main;
|
||||
height: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.post-title {
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-previous {
|
||||
order: 2;
|
||||
|
||||
+ .nav-next {
|
||||
margin-bottom: $size__spacing-unit;
|
||||
}
|
||||
|
||||
.meta-nav {
|
||||
&:before {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nav-next {
|
||||
@include media(tablet) {
|
||||
order: 2;
|
||||
padding-left: $size__spacing-unit;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.meta-nav {
|
||||
&:after {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Index/archive navigation
|
||||
.pagination {
|
||||
|
||||
.nav-links {
|
||||
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 0 calc(.5 * #{$size__spacing-unit});
|
||||
|
||||
|
||||
& > * {
|
||||
padding: calc(.5 * #{$size__spacing-unit});
|
||||
|
||||
&.dots,
|
||||
&.prev {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&.dots,
|
||||
&.next {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a:focus {
|
||||
text-decoration: underline;
|
||||
outline-offset: -1px;
|
||||
|
||||
&.prev,
|
||||
&.next {
|
||||
text-decoration: none;
|
||||
|
||||
.nav-prev-text,
|
||||
.nav-next-text {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nav-next-text,
|
||||
.nav-prev-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
margin-left: $size__site-margins;
|
||||
@include media(tablet) {
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
}
|
||||
padding: 0;
|
||||
|
||||
.prev,
|
||||
.next {
|
||||
|
||||
& > * {
|
||||
display: inline-block;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
& > * {
|
||||
padding: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Comments navigation
|
||||
.comment-navigation {
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.nav-previous,
|
||||
.nav-next {
|
||||
min-width: 50%;
|
||||
width: 100%;
|
||||
font-family: $font__heading;
|
||||
font-weight: bold;
|
||||
|
||||
.secondary-text {
|
||||
display: none;
|
||||
|
||||
@include media(tablet) {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
margin: 0 -0.35em;
|
||||
top: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-next {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
27
calm-business/sass/site/_site.scss
Normal file
27
calm-business/sass/site/_site.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
/*--------------------------------------------------------------
|
||||
## Header
|
||||
--------------------------------------------------------------*/
|
||||
@import "header/site-header";
|
||||
@import "header/site-featured-image";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Posts and pages
|
||||
--------------------------------------------------------------*/
|
||||
@import "primary/posts-and-pages";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Comments
|
||||
--------------------------------------------------------------*/
|
||||
@import "primary/comments";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Archives
|
||||
--------------------------------------------------------------*/
|
||||
@import "primary/archives";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Footer
|
||||
--------------------------------------------------------------*/
|
||||
@import "footer/site-footer";
|
||||
|
48
calm-business/sass/site/footer/_site-footer.scss
Normal file
48
calm-business/sass/site/footer/_site-footer.scss
Normal file
|
@ -0,0 +1,48 @@
|
|||
/* Site footer */
|
||||
|
||||
#colophon {
|
||||
|
||||
.widget-area,
|
||||
.site-info {
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
|
||||
}
|
||||
}
|
||||
|
||||
.widget-column {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@include media(desktop) {
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
}
|
||||
.widget {
|
||||
width: 100%;
|
||||
@include media(desktop) {
|
||||
margin-right: calc(3 * #{$size__spacing-unit});
|
||||
width: calc(50% - (3 * #{$size__spacing-unit}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-info {
|
||||
color: $color__text-main;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
margin: 32px auto;
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
color: $color__link;
|
||||
}
|
||||
}
|
||||
|
||||
.imprint,
|
||||
.privacy-policy-link {
|
||||
margin-right: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
}
|
308
calm-business/sass/site/header/_site-featured-image.scss
Normal file
308
calm-business/sass/site/header/_site-featured-image.scss
Normal file
|
@ -0,0 +1,308 @@
|
|||
// Featured image styles
|
||||
|
||||
.site-header.featured-image {
|
||||
|
||||
/* Hide overflow for overflowing featured image */
|
||||
overflow: hidden;
|
||||
|
||||
/* Need relative positioning to properly align layers. */
|
||||
position: relative;
|
||||
|
||||
/* Add text shadow to text, to increase readability. */
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
|
||||
|
||||
/* Set white text color when featured image is set. */
|
||||
.site-branding .site-title,
|
||||
.site-branding .site-description,
|
||||
.main-navigation a:after,
|
||||
.main-navigation .main-menu > li.menu-item-has-children:after,
|
||||
.main-navigation li,
|
||||
.social-navigation li,
|
||||
.entry-meta,
|
||||
.entry-title {
|
||||
color: $color__background-body;
|
||||
}
|
||||
|
||||
.main-navigation a,
|
||||
.main-navigation a + svg,
|
||||
.social-navigation a,
|
||||
.site-title a,
|
||||
.site-featured-image a {
|
||||
color: $color__background-body;
|
||||
transition: opacity $link_transition ease-in-out;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:hover + svg,
|
||||
&:active + svg {
|
||||
color: $color__background-body;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:focus + svg {
|
||||
color: $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
.main-navigation .sub-menu a {
|
||||
opacity: inherit;
|
||||
}
|
||||
|
||||
/* add focus state to social media icons */
|
||||
.social-navigation a {
|
||||
&:focus {
|
||||
color: $color__background-body;
|
||||
opacity: 1;
|
||||
border-bottom: 1px solid $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
.social-navigation svg,
|
||||
.site-featured-image svg {
|
||||
/* Use -webkit- only if supporting: Chrome < 54, iOS < 9.3, Android < 4.4.4 */
|
||||
-webkit-filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35) );
|
||||
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35) );
|
||||
}
|
||||
|
||||
/* Entry header */
|
||||
.site-featured-image {
|
||||
|
||||
/* First layer: grayscale. */
|
||||
.post-thumbnail img {
|
||||
height: auto;
|
||||
left: 50%;
|
||||
max-width: 1000%;
|
||||
min-height: 100%;
|
||||
min-width: 100vw;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
width: auto;
|
||||
z-index: 1;
|
||||
|
||||
@supports ( object-fit: cover ) {
|
||||
height: 100%;
|
||||
left: 0;
|
||||
object-fit: cover;
|
||||
top: 0;
|
||||
transform: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* When image filters are active, make it grayscale to colorize it blue. */
|
||||
.image-filters-enabled & {
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
}
|
||||
|
||||
.entry-header {
|
||||
|
||||
margin-top: calc( 4 * #{$size__spacing-unit});
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
|
||||
@include media (tablet) {
|
||||
|
||||
margin-left: $size__site-margins;
|
||||
margin-right: $size__site-margins;
|
||||
}
|
||||
|
||||
.entry-title {
|
||||
@include media (tablet) {
|
||||
font-size: $font__size-lg;
|
||||
}
|
||||
&:before {
|
||||
background: $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
/* Entry meta */
|
||||
|
||||
.entry-meta {
|
||||
|
||||
font-weight: 500;
|
||||
|
||||
> span {
|
||||
|
||||
margin-right: $size__spacing-unit;
|
||||
display: inline-block;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
@include link-transition;
|
||||
color: currentColor;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.discussion-avatar-list {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-discussion {
|
||||
|
||||
@include media (tablet) {
|
||||
|
||||
.entry-meta {
|
||||
display: flex;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.entry-title {
|
||||
padding-right: calc(1 * (100vw / 12) + #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
.entry-meta .comment-count {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.entry-meta .discussion-avatar-list {
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Custom Logo Link */
|
||||
|
||||
.custom-logo-link {
|
||||
|
||||
background: $color__background-body;
|
||||
box-shadow: 0 0 0 0 rgba($color__background-body, 0);
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px rgba($color__background-body, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Make sure important elements are above pseudo elements used for effects. */
|
||||
.site-branding {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.site-featured-image .entry-header {
|
||||
position: relative;
|
||||
z-index: 9;
|
||||
@include media(desktop) {
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
}
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Set up image filter layer positioning */
|
||||
.site-branding-container:after,
|
||||
.site-featured-image:before,
|
||||
.site-featured-image:after,
|
||||
&:after {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
content: "\020";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Background & Effects */
|
||||
/* Shared background settings between pseudo elements. */
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
|
||||
/* The intensity of each blend mode is controlled via layer opacity. */
|
||||
|
||||
/* Second layer: screen. */
|
||||
.image-filters-enabled & .site-featured-image:before {
|
||||
background: $color__link;
|
||||
mix-blend-mode: screen;
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
/* Third layer: multiply. */
|
||||
/* When image filters are inactive, a black overlay is added. */
|
||||
.site-featured-image:after {
|
||||
background: #000;
|
||||
mix-blend-mode: multiply;
|
||||
opacity: .7;
|
||||
|
||||
/* When image filters are active, a blue overlay is added. */
|
||||
.image-filters-enabled & {
|
||||
background: $color__link;
|
||||
opacity: .8;
|
||||
z-index: 3;
|
||||
|
||||
/* Browsers supporting mix-blend-mode don't need opacity < 1 */
|
||||
@supports (mix-blend-mode: multiply) {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Fourth layer: overlay. */
|
||||
.image-filters-enabled & .site-branding-container:after {
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
mix-blend-mode: overlay;
|
||||
opacity: 0.5;
|
||||
z-index: 4;
|
||||
|
||||
/* Browsers supporting mix-blend-mode can have a light overlay */
|
||||
@supports (mix-blend-mode: overlay) {
|
||||
background: rgba($color__background-body, 0.35);
|
||||
}
|
||||
}
|
||||
|
||||
/* Fifth layer: readability overlay */
|
||||
&:after {
|
||||
background: #000;
|
||||
/**
|
||||
* Add a transition to the readability overlay, to add a subtle
|
||||
* but smooth effect when resizing the screen.
|
||||
*/
|
||||
transition: opacity 1200ms ease-in-out;
|
||||
opacity: 0.7;
|
||||
z-index: 5;
|
||||
|
||||
/* When image filters are active, a blue overlay is added. */
|
||||
.image-filters-enabled & {
|
||||
background: mix($color__link, black, 12%);
|
||||
opacity: 0.38;
|
||||
|
||||
@include media(tablet) {
|
||||
opacity: 0.18;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
::-moz-selection {
|
||||
background: rgba($color__background-body, 0.17);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: rgba($color__background-body, 0.17);
|
||||
}
|
||||
}
|
115
calm-business/sass/site/header/_site-header.scss
Normal file
115
calm-business/sass/site/header/_site-header.scss
Normal file
|
@ -0,0 +1,115 @@
|
|||
// Site header
|
||||
|
||||
.site-header {
|
||||
padding: 1rem 1em 0.75rem;
|
||||
text-align: center;
|
||||
&.featured-image {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
min-height: 90vh;
|
||||
|
||||
.site-branding-container {
|
||||
margin-bottom: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 0;
|
||||
padding: 2rem 0 1.5rem;
|
||||
|
||||
&.featured-image {
|
||||
min-height: 100vh;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Site branding
|
||||
|
||||
.site-branding {
|
||||
|
||||
color: $color__text-light;
|
||||
position: relative;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 0 $size__site-margins;
|
||||
}
|
||||
}
|
||||
|
||||
// Site logo
|
||||
|
||||
.site-logo {
|
||||
|
||||
position: relative;
|
||||
z-index: 999;
|
||||
|
||||
display: inline-block;
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
@include media(tablet) {
|
||||
margin-bottom: 1rem;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.custom-logo-link {
|
||||
box-sizing: content-box;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
|
||||
.custom-logo {
|
||||
min-height: inherit;
|
||||
max-height: 66px;
|
||||
vertical-align: top;
|
||||
width: auto;
|
||||
@include media(tablet) {
|
||||
max-height: 88px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Site title
|
||||
|
||||
.site-title {
|
||||
margin: 0;
|
||||
display: block;
|
||||
color: $color__text-main;
|
||||
font-size: $font__size-lg;
|
||||
a {
|
||||
color: $color__text-main;
|
||||
|
||||
&:link,
|
||||
&:visited {
|
||||
color: $color__text-main;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color__text-hover;
|
||||
}
|
||||
}
|
||||
|
||||
.featured-image & {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* When there is no description set, make sure navigation appears below title. */
|
||||
+ .main-navigation {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Site description
|
||||
|
||||
.site-description {
|
||||
|
||||
display: block;
|
||||
color: $color__text-main;
|
||||
font-weight: normal;
|
||||
margin: 8px 0 0;
|
||||
}
|
76
calm-business/sass/site/primary/_archives.scss
Normal file
76
calm-business/sass/site/primary/_archives.scss
Normal file
|
@ -0,0 +1,76 @@
|
|||
.archive .page-header,
|
||||
.search .page-header,
|
||||
.error404 .page-header {
|
||||
|
||||
margin: $size__spacing-unit $size__spacing-unit calc(3 * #{$size__spacing-unit});
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
}
|
||||
|
||||
.page-title {
|
||||
|
||||
color: $color__text-main-alt;
|
||||
display: inline;
|
||||
letter-spacing: normal;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.search-term,
|
||||
.page-description {
|
||||
display: inherit;
|
||||
clear: both;
|
||||
|
||||
&:after {
|
||||
content: ".";
|
||||
font-weight: bold;
|
||||
color: $color__text-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.archive .page-header .page-description, .search .page-header .page-description {
|
||||
display: block;
|
||||
color: $color__text-main;
|
||||
font-size: 1em;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
}
|
||||
|
||||
.hfeed .entry .entry-header {
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * 1rem) auto calc(1rem / 2);
|
||||
max-width: calc(6 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
||||
/* 404 & Not found */
|
||||
|
||||
.error-404.not-found,
|
||||
.no-results.not-found {
|
||||
|
||||
.page-title,
|
||||
.page-content {
|
||||
|
||||
margin: calc(3 * #{$size__spacing-unit}) #{$size__spacing-unit};
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
}
|
||||
}
|
||||
|
||||
.search-submit {
|
||||
vertical-align: middle;
|
||||
margin: $size__spacing-unit 0;
|
||||
}
|
||||
|
||||
.search-field {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
405
calm-business/sass/site/primary/_comments.scss
Normal file
405
calm-business/sass/site/primary/_comments.scss
Normal file
|
@ -0,0 +1,405 @@
|
|||
.comment-content a {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.bypostauthor {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.comments-area {
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
|
||||
@include postContentMaxWidth();
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
|
||||
}
|
||||
|
||||
& > * {
|
||||
margin-top: calc(2 * #{$size__spacing-unit});
|
||||
margin-bottom: calc(2 * #{$size__spacing-unit});
|
||||
|
||||
@include media(tablet) {
|
||||
margin-top: calc(3 * #{$size__spacing-unit});
|
||||
margin-bottom: calc(3 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
/* Add extra margin when the comments section is located immediately after the
|
||||
* post itself (this happens on pages).
|
||||
*/
|
||||
.entry + & {
|
||||
margin-top: calc(3 * #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
.comments-title-wrap {
|
||||
|
||||
@include media(tablet) {
|
||||
align-items: baseline;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.comments-title {
|
||||
@include post-section-dash;
|
||||
margin: 0;
|
||||
|
||||
@include media(tablet) {
|
||||
flex: 1 0 calc(3 * (100vw / 12));
|
||||
}
|
||||
}
|
||||
|
||||
.discussion-meta {
|
||||
@include media(tablet) {
|
||||
flex: 0 0 calc(2 * (100vw / 12));
|
||||
margin-left: #{$size__spacing-unit};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#comment {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#respond {
|
||||
position: relative;
|
||||
|
||||
.comment-user-avatar {
|
||||
margin: $size__spacing-unit 0 -#{$size__spacing-unit};
|
||||
}
|
||||
|
||||
.comment .comment-form {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
> small {
|
||||
display: block;
|
||||
font-size: $font__size_base;
|
||||
position: absolute;
|
||||
left: calc(#{$size__spacing-unit} + 100%);
|
||||
top: calc(-3.5 * #{$size__spacing-unit});
|
||||
width: calc(100vw / 12 );
|
||||
}
|
||||
}
|
||||
|
||||
#comments {
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
}
|
||||
|
||||
> .comments-title:last-child {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.comment-form-flex {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.comments-title {
|
||||
display: none;
|
||||
margin: 0;
|
||||
order: 1;
|
||||
}
|
||||
|
||||
#respond {
|
||||
order: 2;
|
||||
|
||||
+ .comments-title {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
.children {
|
||||
margin: 0;
|
||||
padding: 0 0 0 $size__spacing-unit;
|
||||
}
|
||||
|
||||
> .comment:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.pingback,
|
||||
.trackback {
|
||||
|
||||
.comment-body {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
font-weight: 500;
|
||||
margin-top: $size__spacing-unit;
|
||||
margin-bottom: $size__spacing-unit;
|
||||
|
||||
a:not(.comment-edit-link) {
|
||||
font-weight: bold;
|
||||
font-size: $font__size-base / (1 * $font__size-ratio);
|
||||
line-height: 1.5;
|
||||
padding-right: #{0.5 * $size__spacing-unit};
|
||||
display: block;
|
||||
}
|
||||
|
||||
.comment-edit-link {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-reply {
|
||||
|
||||
#respond + & {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comment-reply-link {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.comment {
|
||||
list-style: none;
|
||||
position: relative;
|
||||
|
||||
@include media(tablet) {
|
||||
padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 )));
|
||||
|
||||
&.depth-1,
|
||||
.children {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&.depth-1 {
|
||||
margin-left: calc(3.25 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.comment-body {
|
||||
margin: calc(2 * #{$size__spacing-unit}) 0 0;
|
||||
}
|
||||
|
||||
|
||||
.comment-meta {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.comment-author {
|
||||
|
||||
.avatar {
|
||||
float: left;
|
||||
margin-right: $size__spacing-unit;
|
||||
position: relative;
|
||||
|
||||
@include media(tablet) {
|
||||
float: inherit;
|
||||
margin-right: inherit;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: calc(100% + #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.fn {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-author-badge {
|
||||
border-radius: 100%;
|
||||
display: block;
|
||||
height: 18px;
|
||||
position: absolute;
|
||||
background: lighten( $color__link, 8% );
|
||||
right: calc(100% - #{$size__spacing-unit * 2.5});
|
||||
top: -3px;
|
||||
width: 18px;
|
||||
|
||||
@include media(tablet) {
|
||||
right: calc(100% + #{$size__spacing-unit * .75});
|
||||
}
|
||||
|
||||
svg {
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
display: block;
|
||||
fill: white;
|
||||
transform: scale(0.875);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-metadata {
|
||||
|
||||
> a,
|
||||
.comment-edit-link {
|
||||
display: inline;
|
||||
font-weight: 500;
|
||||
color: $color__link;
|
||||
vertical-align: baseline;
|
||||
|
||||
time {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
> * {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.edit-link-sep {
|
||||
color: $color__link;
|
||||
margin: 0 0.2em;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.edit-link {
|
||||
color: $color__link;
|
||||
|
||||
svg {
|
||||
transform: scale(0.8);
|
||||
vertical-align: baseline;
|
||||
margin-right: 0.1em;
|
||||
}
|
||||
}
|
||||
|
||||
.comment-edit-link {
|
||||
position: relative;
|
||||
padding-left: $size__spacing-unit;
|
||||
margin-left: -#{$size__spacing-unit};
|
||||
z-index: 1;
|
||||
|
||||
&:hover {
|
||||
color: $color__link;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-content {
|
||||
|
||||
margin: $size__spacing-unit 0;
|
||||
|
||||
@include media(desktop) {
|
||||
padding-right: $size__spacing-unit;
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-reply-link,
|
||||
#cancel-comment-reply-link {
|
||||
font-weight: 500;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
|
||||
.discussion-avatar-list {
|
||||
@include clearfix;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
margin: 0 -8px 0 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.comment-user-avatar {
|
||||
|
||||
img {
|
||||
height: calc(1.5 * #{$size__spacing-unit});
|
||||
width: calc(1.5 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.discussion-meta {
|
||||
|
||||
.discussion-meta-info {
|
||||
margin: 0;
|
||||
|
||||
.svg-icon {
|
||||
vertical-align: middle;
|
||||
fill: currentColor;
|
||||
transform: scale( 0.6 ) scaleX(-1) translateY(-0.1em);
|
||||
margin-left: -#{.25 * $size__spacing-unit}; // Align icon with avatars above.
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.comment-form {
|
||||
|
||||
.comment-notes,
|
||||
label {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
color: $color__text-main;
|
||||
}
|
||||
|
||||
.comment-form-author,
|
||||
.comment-form-email {
|
||||
@include media(tablet) {
|
||||
width: calc(50% - #{$size__spacing-unit / 2});
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
.comment-form-email {
|
||||
@include media(tablet) {
|
||||
margin-left: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
|
||||
input[name="author"],
|
||||
input[name="email"],
|
||||
input[name="url"] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
311
calm-business/sass/site/primary/_posts-and-pages.scss
Normal file
311
calm-business/sass/site/primary/_posts-and-pages.scss
Normal file
|
@ -0,0 +1,311 @@
|
|||
.sticky {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sticky-post {
|
||||
background: $color__background-button;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
padding: .25rem;
|
||||
text-transform: uppercase;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.updated:not(.published) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page-links {
|
||||
clear: both;
|
||||
margin: 0 0 calc(1.5 * #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
.entry {
|
||||
|
||||
margin-top: calc(6 * #{$size__spacing-unit});
|
||||
|
||||
&:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.entry-header {
|
||||
|
||||
margin: calc(3 * #{ $size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
|
||||
position: relative;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * 1rem) auto calc(1rem / 2);
|
||||
max-width: calc(6 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
||||
.entry-title {
|
||||
font-size: $font__size-lg;
|
||||
@include media(tablet) {
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
}
|
||||
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
color: $color__text-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.entry-meta,
|
||||
.entry-footer {
|
||||
|
||||
color: $color__text-main;
|
||||
font-weight: 500;
|
||||
|
||||
> span {
|
||||
|
||||
margin-right: $size__spacing-unit;
|
||||
display: inline-block;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
@include link-transition;
|
||||
color: currentColor;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
color: $color__link;
|
||||
}
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-meta {
|
||||
margin: 32px auto;
|
||||
max-width: calc(6 * (100vw / 12) - 28px);
|
||||
}
|
||||
|
||||
.entry-footer {
|
||||
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: $size__spacing-unit $size__site-margins calc(3 * #{$size__spacing-unit});
|
||||
max-width: $size__site-tablet-content;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 32px auto;
|
||||
max-width: $size__site-desktop-content;
|
||||
}
|
||||
}
|
||||
|
||||
.post-thumbnail {
|
||||
|
||||
margin: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: $size__spacing-unit $size__site-margins;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.post-thumbnail-inner {
|
||||
display: block;
|
||||
|
||||
img {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.image-filters-enabled & {
|
||||
|
||||
.post-thumbnail {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
||||
.post-thumbnail-inner {
|
||||
filter: grayscale(100%);
|
||||
|
||||
&:after {
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
content: "";
|
||||
display: block;
|
||||
height: 100%;
|
||||
opacity: .5;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 4;
|
||||
|
||||
@supports (mix-blend-mode: multiply) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:before,
|
||||
&:after, {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0; left: 0;
|
||||
content: "\020";
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@include filter-duotone;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.entry-content,
|
||||
.entry-summary {
|
||||
max-width: calc(100% - (2 * #{ $size__spacing-unit }));
|
||||
margin: 0 $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: 80%;
|
||||
margin: 0 10%;
|
||||
padding: 0 60px;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-content {
|
||||
|
||||
p {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.more-link {
|
||||
@include link-transition;
|
||||
display: inline;
|
||||
color: inherit;
|
||||
|
||||
&:after {
|
||||
content: "\02192";
|
||||
display: inline-block;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color__link;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
|
||||
&.button,
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.button {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&.button:hover {
|
||||
background: $color__background-button-hover;
|
||||
color: $color__background-body;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
// Overwrite iframe embeds that have inline styles.
|
||||
> iframe[style] {
|
||||
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: $size__site-tablet-content !important;
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: $size__site-desktop-content !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Page links
|
||||
.page-links a {
|
||||
margin: calc(0.5 * #{$size__spacing-unit});
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// Classic editor audio embeds.
|
||||
.wp-audio-shortcode {
|
||||
max-width: calc(100vw - (2 * #{ $size__spacing-unit }));
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: $size__site-tablet-content;
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: $size__site-desktop-content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Author description */
|
||||
|
||||
.author-bio {
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
|
||||
|
||||
@include postContentMaxWidth();
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 32px auto;
|
||||
max-width: $size__site-desktop-content;
|
||||
}
|
||||
|
||||
.author-title {
|
||||
@include post-section-dash-dark;
|
||||
display: inline;
|
||||
font-size: $font__size-md;
|
||||
}
|
||||
|
||||
.author-description {
|
||||
|
||||
display: inline;
|
||||
color: $color__text-main-alt;
|
||||
font-size: $font__size-md;
|
||||
line-height: $font__line-height-heading;
|
||||
|
||||
.author-link {
|
||||
display: inline-block;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
83
calm-business/sass/site/secondary/_widgets.scss
Normal file
83
calm-business/sass/site/secondary/_widgets.scss
Normal file
|
@ -0,0 +1,83 @@
|
|||
.widget {
|
||||
margin: 0 0 #{$size__spacing-unit};
|
||||
|
||||
/* Make sure select elements fit in widgets. */
|
||||
select {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $color__link;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.widget_archive,
|
||||
.widget_categories,
|
||||
.widget_meta,
|
||||
.widget_nav_menu,
|
||||
.widget_pages,
|
||||
.widget_recent_comments,
|
||||
.widget_recent_entries,
|
||||
.widget_rss {
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-md;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
line-height: $font__line-height-heading;
|
||||
margin-top: #{0.5 * $size__spacing-unit};
|
||||
margin-bottom: #{0.5 * $size__spacing-unit};
|
||||
}
|
||||
|
||||
@include nestedSubMenuPadding();
|
||||
}
|
||||
}
|
||||
|
||||
.widget_tag_cloud {
|
||||
|
||||
.tagcloud {
|
||||
font-family: $font__heading;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.widget_search {
|
||||
|
||||
.search-field {
|
||||
width: 100%;
|
||||
|
||||
@include media(mobile) {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.search-submit {
|
||||
display: block;
|
||||
margin-top: $size__spacing-unit;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
}
|
||||
}
|
||||
|
||||
.widget_calendar .calendar_wrap {
|
||||
text-align: center;
|
||||
|
||||
table td,
|
||||
table th {
|
||||
border: none;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
62
calm-business/sass/typography/_copy.scss
Normal file
62
calm-business/sass/typography/_copy.scss
Normal file
|
@ -0,0 +1,62 @@
|
|||
p {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
dfn,
|
||||
cite,
|
||||
em,
|
||||
i {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
|
||||
cite {
|
||||
font-size: $font__size-xs;
|
||||
font-style: normal;
|
||||
font-family: $font__heading;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
font-size: $font__size-sm;
|
||||
font-family: $font__pre;
|
||||
line-height: $font__line-height-body;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
tt,
|
||||
var {
|
||||
font-size: $font__size-sm;
|
||||
font-family: $font__code;
|
||||
}
|
||||
|
||||
abbr, acronym {
|
||||
border-bottom: 1px dotted #666;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
mark,
|
||||
ins {
|
||||
background: #fff9c0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
big {
|
||||
font-size: 125%;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
159
calm-business/sass/typography/_headings.scss
Normal file
159
calm-business/sass/typography/_headings.scss
Normal file
|
@ -0,0 +1,159 @@
|
|||
.author-description .author-link,
|
||||
.comment-metadata,
|
||||
.comment-reply-link,
|
||||
.comments-title,
|
||||
.comment-author .fn,
|
||||
.discussion-meta-info,
|
||||
.entry-meta,
|
||||
.entry-footer,
|
||||
.main-navigation,
|
||||
.no-comments,
|
||||
.not-found .page-title,
|
||||
.error-404 .page-title,
|
||||
.post-navigation .post-title,
|
||||
.page-links,
|
||||
.page-description,
|
||||
.pagination .nav-links,
|
||||
.sticky-post,
|
||||
.site-title,
|
||||
.site-info,
|
||||
#cancel-comment-reply-link,
|
||||
img:after,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: $font__heading;
|
||||
}
|
||||
|
||||
.main-navigation,
|
||||
.page-description,
|
||||
.author-description .author-link,
|
||||
.not-found .page-title,
|
||||
.error-404 .page-title,
|
||||
.post-navigation .post-title,
|
||||
.pagination .nav-links,
|
||||
.comments-title,
|
||||
.comment-author .fn,
|
||||
.no-comments,
|
||||
.site-title,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-weight: 600;
|
||||
letter-spacing: normal;
|
||||
line-height: $font__line-height-heading;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
.site-branding,
|
||||
.main-navigation ul.main-menu > li,
|
||||
.social-navigation,
|
||||
.author-description .author-bio,
|
||||
.nav-links {
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: $font__size-xl;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-xxl;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-title,
|
||||
.not-found .page-title,
|
||||
.error-404 .page-title,
|
||||
.has-larger-font-size,
|
||||
h2 {
|
||||
font-size: $font__size-md;
|
||||
}
|
||||
|
||||
.has-regular-font-size,
|
||||
.has-large-font-size,
|
||||
.comments-title,
|
||||
h3 {
|
||||
font-size: $font__size-base;
|
||||
}
|
||||
|
||||
.site-title,
|
||||
.site-description,
|
||||
.main-navigation,
|
||||
.nav-links,
|
||||
.page-title,
|
||||
.page-description,
|
||||
.comment-author .fn,
|
||||
.no-comments,
|
||||
h2.author-title,
|
||||
p.author-bio,
|
||||
h4 {
|
||||
font-size: $font__size-sm;
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-sm;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination .nav-links,
|
||||
.comment-content,
|
||||
h5 {
|
||||
font-size: $font__size-sm;
|
||||
}
|
||||
|
||||
.entry-meta,
|
||||
.entry-footer,
|
||||
.discussion-meta-info,
|
||||
.site-info,
|
||||
.has-small-font-size,
|
||||
.comment-reply-link,
|
||||
.comment-metadata,
|
||||
.comment-notes,
|
||||
.sticky-post,
|
||||
#cancel-comment-reply-link,
|
||||
img:after,
|
||||
h6 {
|
||||
font-size: $font__size-xs;
|
||||
}
|
||||
|
||||
.site-title,
|
||||
.page-title {
|
||||
font-weight: 700;
|
||||
font-size: $font__size-md;
|
||||
}
|
||||
|
||||
.page-description,
|
||||
.page-links a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.site-description {
|
||||
letter-spacing: normal;
|
||||
font-size: $font__size-xs;
|
||||
}
|
||||
|
||||
.post-navigation .post-title,
|
||||
.entry-title,
|
||||
.not-found .page-title,
|
||||
.error-404 .page-title,
|
||||
.comments-title,
|
||||
blockquote {
|
||||
hyphens: auto;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* Do not hyphenate entry title on tablet view and bigger. */
|
||||
.entry-title {
|
||||
@include media(tablet) {
|
||||
hyphens: none;
|
||||
}
|
||||
}
|
34
calm-business/sass/typography/_typography.scss
Normal file
34
calm-business/sass/typography/_typography.scss
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
html {
|
||||
font-size: $font__size_base;
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
color: $color__text-main;
|
||||
font-family: $font__body;
|
||||
font-weight: $font__weight_standard;
|
||||
font-size: 1em;
|
||||
line-height: $font__line-height-body;
|
||||
margin: 0;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
optgroup,
|
||||
textarea {
|
||||
color: $color__text-main;
|
||||
font-family: $font__body;
|
||||
font-weight: $font__weight_standard;
|
||||
line-height: $font__line-height-body;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@import "headings";
|
||||
|
||||
@import "copy";
|
||||
|
||||
@include non-latin-fonts();
|
40
calm-business/sass/variables-site/_colors.scss
Normal file
40
calm-business/sass/variables-site/_colors.scss
Normal file
|
@ -0,0 +1,40 @@
|
|||
|
||||
// Backgrounds
|
||||
$color__background-body: #FAF8F5;
|
||||
$color__background-body-dark: #6C6C74;
|
||||
$color__background-body-light: #fff;
|
||||
$color__background-input: #fff;
|
||||
$color__background-screen: #f1f1f1;
|
||||
$color__background-hr: #ccc;
|
||||
$color__background-button: #8D6708;
|
||||
$color__background-button-hover: #111;
|
||||
$color__background-pre: #eee;
|
||||
$color__background-ins: #fff9c0;
|
||||
$color__background_selection: mix( $color__background-body, $color__background-button, 75% ); // lighten( salmon, 22.5% ); // lighten( #0999d4, 48% );
|
||||
|
||||
// Text
|
||||
$color__text-main: #242424;
|
||||
$color__text-main-alt: #2E2E2E;
|
||||
$color__text-light: #fff;
|
||||
$color__text-hover: lighten( #111, 22.5% );
|
||||
$color__text-screen: #21759b;
|
||||
$color__text-input: #666;
|
||||
$color__text-input-focus: #111;
|
||||
|
||||
// Links
|
||||
$color__link: #8D6708;
|
||||
$color__link-alt: $color__text-light;
|
||||
$color__link-visited: #8D6708;
|
||||
$color__link-visited-alt: $color__text-hover;
|
||||
$color__link-hover: darken( $color__link, 10% );
|
||||
$color__link-hover-alt: darken( $color__link-alt, 10% );
|
||||
|
||||
// Borders
|
||||
$color__border: #ccc;
|
||||
$color__border-link: #8D6708;
|
||||
$color__border-link-hover: darken( $color__link, 10% );
|
||||
$color__border-button: #ccc #ccc #bbb;
|
||||
$color__border-button-hover: #ccc #bbb #aaa;
|
||||
$color__border-button-focus: #aaa #bbb #bbb;
|
||||
$color__border-input: $color__border;
|
||||
$color__border-abbr: #666;
|
16
calm-business/sass/variables-site/_columns.scss
Normal file
16
calm-business/sass/variables-site/_columns.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
$columns: (
|
||||
1: calc(1 * (100vw / 12)),
|
||||
2: calc(2 * (100vw / 12)),
|
||||
3: calc(3 * (100vw / 12)),
|
||||
4: calc(4 * (100vw / 12)),
|
||||
5: calc(5 * (100vw / 12)),
|
||||
6: calc(6 * (100vw / 12)),
|
||||
7: calc(7 * (100vw / 12)),
|
||||
8: calc(8 * (100vw / 12)),
|
||||
9: calc(9 * (100vw / 12)),
|
||||
10: calc(10 * (100vw / 12)),
|
||||
11: calc(11 * (100vw / 12)),
|
||||
12: calc(12 * (100vw / 12))
|
||||
);
|
||||
|
||||
$columns__margin: $size__spacing-unit;
|
27
calm-business/sass/variables-site/_fonts.scss
Normal file
27
calm-business/sass/variables-site/_fonts.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Font and typographic variables
|
||||
|
||||
$font__body: 'Poppins', sans-serif;
|
||||
$font__heading: $font__body;
|
||||
$font__code: Menlo, monaco, Consolas, Lucida Console, monospace;
|
||||
$font__pre: "Courier 10 Pitch", Courier, monospace;
|
||||
|
||||
$font__size_base: 22px;
|
||||
$font__size-ratio: 1.125;
|
||||
|
||||
$font__size-xxs: 1em / (1.5 * $font__size-ratio);
|
||||
$font__size-xs: 1em / (1.25 * $font__size-ratio);
|
||||
$font__size-sm: 1em / (1 * $font__size-ratio);
|
||||
$font__size-md: 1em * (1 * $font__size-ratio);
|
||||
$font__size-lg: 1em * (1.5 * $font__size-ratio);
|
||||
$font__size-xl: 1em * (2 * $font__size-ratio);
|
||||
$font__size-xxl: 1em * (2.5 * $font__size-ratio);
|
||||
$font__size-xxxl: 1em * (3 * $font__size-ratio);
|
||||
|
||||
$font__line-height-body: 1.8;
|
||||
$font__line-height-pre: 1.6;
|
||||
$font__line-height-heading: 1.2;
|
||||
$font__line-height-double: 2 * $font__line-height-heading;
|
||||
|
||||
$font__weight_standard: 400;
|
||||
$font__weight_semi_bold: 600;
|
||||
$font__weight_bold: 700;
|
16
calm-business/sass/variables-site/_structure.scss
Normal file
16
calm-business/sass/variables-site/_structure.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Responsive widths.
|
||||
|
||||
$size__spacing-unit: 1rem;
|
||||
$size__site-main: 100%;
|
||||
$size__site-sidebar: 25%;
|
||||
$size__site-margins: calc(10% + 60px);
|
||||
$size__site-tablet-content: calc(8 * (100vw / 12) - 28px);
|
||||
$size__site-desktop-content: calc(6 * (100vw / 12) - 28px);
|
||||
|
||||
// Responsive widths.
|
||||
|
||||
$mobile_width: 600px;
|
||||
$tablet_width: 768px;
|
||||
$desktop_width: 1168px;
|
||||
$wide_width: 1379px;
|
||||
|
6
calm-business/sass/variables-site/_transitions.scss
Normal file
6
calm-business/sass/variables-site/_transitions.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
// Transition timeouts.
|
||||
|
||||
$link_transition: 110ms;
|
||||
$icon_transition: 120ms;
|
||||
$button_transition: 150ms;
|
||||
$background_transition: 200ms;
|
5
calm-business/sass/variables-site/_variables-site.scss
Normal file
5
calm-business/sass/variables-site/_variables-site.scss
Normal file
|
@ -0,0 +1,5 @@
|
|||
@import "colors";
|
||||
@import "fonts";
|
||||
@import "structure";
|
||||
@import "columns";
|
||||
@import "transitions";
|
BIN
calm-business/screenshot.png
Normal file
BIN
calm-business/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 470 KiB |
95
calm-business/style-editor-customizer.css
Normal file
95
calm-business/style-editor-customizer.css
Normal file
|
@ -0,0 +1,95 @@
|
|||
/*!
|
||||
Twenty Nineteen Customizer Styles & Non-latin Font Fallbacks
|
||||
|
||||
NOTE: This file is automatically populated with additional styles if the user selects a custom primary color in the customzier.
|
||||
*/
|
||||
/** === Includes === */
|
||||
/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
|
||||
* since its edges can look jagged due to lack of antialiasing. In this case, we are several
|
||||
* layers of box-shadow to add the border visually, which will render the border smoother. */
|
||||
/* Fallback for non-latin fonts */
|
||||
/* Calculates maximum width for post content */
|
||||
/* Nested sub-menu padding: 10 levels deep */
|
||||
/** === Non-Latin font fallbacks === */
|
||||
/* Arabic */
|
||||
html[lang="ar"] .wp-block *,
|
||||
html[lang="ary"] .wp-block *,
|
||||
html[lang="azb"] .wp-block *,
|
||||
html[lang="ckb"] .wp-block *,
|
||||
html[lang="fa-IR"] .wp-block *,
|
||||
html[lang="haz"] .wp-block *,
|
||||
html[lang="ps"] .wp-block * {
|
||||
font-family: Tahoma, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Cyrillic */
|
||||
html[lang="be"] .wp-block *,
|
||||
html[lang="bg-BG"] .wp-block *,
|
||||
html[lang="kk"] .wp-block *,
|
||||
html[lang="mk-MK"] .wp-block *,
|
||||
html[lang="mn"] .wp-block *,
|
||||
html[lang="ru-RU"] .wp-block *,
|
||||
html[lang="sah"] .wp-block *,
|
||||
html[lang="sr-RS"] .wp-block *,
|
||||
html[lang="tt-RU"] .wp-block *,
|
||||
html[lang="uk"] .wp-block * {
|
||||
font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (Hong Kong) */
|
||||
html[lang="zh-HK"] .wp-block * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang HK', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (Taiwan) */
|
||||
html[lang="zh-TW"] .wp-block * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (China) */
|
||||
html[lang="zh-CN"] .wp-block * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Devanagari */
|
||||
html[lang="bn-BD"] .wp-block *,
|
||||
html[lang="hi-IN"] .wp-block *,
|
||||
html[lang="mr"] .wp-block *,
|
||||
html[lang="ne-NP"] .wp-block * {
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Greek */
|
||||
html[lang="el"] .wp-block * {
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Gujarati */
|
||||
html[lang="gu"] .wp-block * {
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Hebrew */
|
||||
html[lang="he-IL"] .wp-block * {
|
||||
font-family: 'Arial Hebrew', Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Japanese */
|
||||
html[lang="ja"] .wp-block * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, "Helvetica Neue", sans-serif !important;
|
||||
}
|
||||
|
||||
/* Korean */
|
||||
html[lang="ko-KR"] .wp-block * {
|
||||
font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Nanum Gothic', Dotum, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Thai */
|
||||
html[lang="th"] .wp-block * {
|
||||
font-family: 'Sukhumvit Set', 'Helvetica Neue', helvetica, arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Vietnamese */
|
||||
html[lang="vi"] .wp-block * {
|
||||
font-family: 'Libre Franklin', sans-serif !important;
|
||||
}
|
13
calm-business/style-editor-customizer.scss
Normal file
13
calm-business/style-editor-customizer.scss
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*!
|
||||
Twenty Nineteen Customizer Styles & Non-latin Font Fallbacks
|
||||
|
||||
NOTE: This file is automatically populated with additional styles if the user selects a custom primary color in the customzier.
|
||||
*/
|
||||
|
||||
/** === Includes === */
|
||||
|
||||
@import "sass/mixins/mixins-master";
|
||||
|
||||
/** === Non-Latin font fallbacks === */
|
||||
|
||||
@include non-latin-fonts( '.wp-block' );
|
902
calm-business/style-editor.css
Normal file
902
calm-business/style-editor.css
Normal file
|
@ -0,0 +1,902 @@
|
|||
@charset "UTF-8";
|
||||
/*!
|
||||
Calm (Twenty Nineteen) Editor Styles
|
||||
*/
|
||||
/** === Includes === */
|
||||
/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
|
||||
* since its edges can look jagged due to lack of antialiasing. In this case, we are several
|
||||
* layers of box-shadow to add the border visually, which will render the border smoother. */
|
||||
/* Fallback for non-latin fonts */
|
||||
/* Calculates maximum width for post content */
|
||||
/* Nested sub-menu padding: 10 levels deep */
|
||||
/** === Editor Frame === */
|
||||
body {
|
||||
background-color: #FAF8F5;
|
||||
font-weight: 400;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
body .wp-block[data-align="full"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 600px) {
|
||||
body .wp-block[data-align="full"] {
|
||||
width: calc( 100% + 90px);
|
||||
max-width: calc( 100% + 90px);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
body .editor-writing-flow {
|
||||
max-width: 80%;
|
||||
margin: 0 10%;
|
||||
}
|
||||
body .wp-block[data-align="wide"] {
|
||||
width: 100%;
|
||||
}
|
||||
body .wp-block[data-align="full"] {
|
||||
position: relative;
|
||||
left: calc( -12.5% - 14px);
|
||||
width: calc( 125% + 116px);
|
||||
max-width: calc( 125% + 115px);
|
||||
}
|
||||
body .wp-block[data-align="right"] {
|
||||
max-width: 125%;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Content Width === */
|
||||
.wp-block {
|
||||
width: calc(100vw - (2 * 1rem));
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block {
|
||||
width: calc(8 * (100vw / 12));
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1168px) {
|
||||
.wp-block {
|
||||
width: calc(6 * (100vw / 12 ));
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block .wp-block {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/** === Base Typography === */
|
||||
body {
|
||||
font-size: 22px;
|
||||
font-family: "Poppins", sans-serif;
|
||||
line-height: 1.8;
|
||||
color: #242424;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.25em;
|
||||
z-index: 1;
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
h1 > :first-child:before {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: inherit;
|
||||
content: "";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: 1.46rem 0 1rem;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
h1 {
|
||||
font-size: 2.8125em;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.6875em;
|
||||
z-index: 1;
|
||||
align-self: start;
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
font-size: 1.125em;
|
||||
}
|
||||
|
||||
h2 > :first-child:before {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: inherit;
|
||||
content: "";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: 1.46rem 0 1rem;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.125em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 0.88889em;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 0.71111em;
|
||||
}
|
||||
|
||||
a {
|
||||
transition: color 110ms ease-in-out;
|
||||
color: #8D6708;
|
||||
}
|
||||
|
||||
a:hover, a:active {
|
||||
color: #5d4405;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: 0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.has-primary-background-color,
|
||||
.has-secondary-background-color,
|
||||
.has-dark-gray-background-color,
|
||||
.has-light-gray-background-color {
|
||||
color: #FAF8F5;
|
||||
}
|
||||
|
||||
.has-primary-background-color p,
|
||||
.has-primary-background-color h1,
|
||||
.has-primary-background-color h2,
|
||||
.has-primary-background-color h3,
|
||||
.has-primary-background-color h4,
|
||||
.has-primary-background-color h5,
|
||||
.has-primary-background-color h6,
|
||||
.has-primary-background-color a,
|
||||
.has-secondary-background-color p,
|
||||
.has-secondary-background-color h1,
|
||||
.has-secondary-background-color h2,
|
||||
.has-secondary-background-color h3,
|
||||
.has-secondary-background-color h4,
|
||||
.has-secondary-background-color h5,
|
||||
.has-secondary-background-color h6,
|
||||
.has-secondary-background-color a,
|
||||
.has-dark-gray-background-color p,
|
||||
.has-dark-gray-background-color h1,
|
||||
.has-dark-gray-background-color h2,
|
||||
.has-dark-gray-background-color h3,
|
||||
.has-dark-gray-background-color h4,
|
||||
.has-dark-gray-background-color h5,
|
||||
.has-dark-gray-background-color h6,
|
||||
.has-dark-gray-background-color a,
|
||||
.has-light-gray-background-color p,
|
||||
.has-light-gray-background-color h1,
|
||||
.has-light-gray-background-color h2,
|
||||
.has-light-gray-background-color h3,
|
||||
.has-light-gray-background-color h4,
|
||||
.has-light-gray-background-color h5,
|
||||
.has-light-gray-background-color h6,
|
||||
.has-light-gray-background-color a {
|
||||
color: #FAF8F5;
|
||||
}
|
||||
|
||||
.has-white-background-color {
|
||||
color: #242424;
|
||||
}
|
||||
|
||||
.has-white-background-color p,
|
||||
.has-white-background-color h1,
|
||||
.has-white-background-color h2,
|
||||
.has-white-background-color h3,
|
||||
.has-white-background-color h4,
|
||||
.has-white-background-color h5,
|
||||
.has-white-background-color h6,
|
||||
.has-white-background-color a {
|
||||
color: #242424;
|
||||
}
|
||||
|
||||
figcaption,
|
||||
.gallery-caption {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 0.71111em;
|
||||
line-height: 1.6;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/** === Post Title === */
|
||||
.editor-post-title__block {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.editor-post-title__block:before {
|
||||
width: 2.8125em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 1em;
|
||||
position: relative;
|
||||
top: 0.5em;
|
||||
}
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 2.8125em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/** === Default Appender === */
|
||||
.editor-default-block-appender .editor-default-block-appender__content {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
/** === Heading === */
|
||||
.wp-block-heading strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/** === Paragraph === */
|
||||
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 3.375em;
|
||||
line-height: 1;
|
||||
font-weight: bold;
|
||||
margin: 0 0.25em 0 0;
|
||||
}
|
||||
|
||||
/** === Table === */
|
||||
.wp-block-table {
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
/** === Cover === */
|
||||
.wp-block-cover {
|
||||
position: relative;
|
||||
min-height: 380px;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.wp-block-cover h2,
|
||||
.wp-block-cover .wp-block-cover-text {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 1.6875em;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
padding: 0;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wp-block-cover h2 strong,
|
||||
.wp-block-cover .wp-block-cover-text strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block-cover h2,
|
||||
.wp-block-cover .wp-block-cover-text {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 0;
|
||||
font-size: 2.8125em;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block-cover {
|
||||
padding: 1rem 10%;
|
||||
min-height: 620px;
|
||||
}
|
||||
.wp-block-cover h2,
|
||||
.wp-block-cover .wp-block-cover-text {
|
||||
font-size: 2.8125em;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="left"] .editor-block-list__block-edit,
|
||||
.wp-block[data-type="core/cover"][data-align="right"] .editor-block-list__block-edit {
|
||||
width: calc(4 * (100vw / 12));
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover,
|
||||
.wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
padding: calc(1.375 * 1rem);
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover p,
|
||||
.wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover p {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover,
|
||||
.wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover {
|
||||
padding: calc(2.75 * 1rem) calc(2.75 * 1rem) calc(3.125 * 1rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] h2,
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] .wp-block-cover-text,
|
||||
.wp-block[data-type="core/cover"][data-align="full"] h2,
|
||||
.wp-block[data-type="core/cover"][data-align="full"] .wp-block-cover-text {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1168px) {
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] h2,
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] .wp-block-cover-text,
|
||||
.wp-block[data-type="core/cover"][data-align="full"] h2,
|
||||
.wp-block[data-type="core/cover"][data-align="full"] .wp-block-cover-text {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/cover"][data-align="full"] .wp-block-cover {
|
||||
padding-left: calc(10% + 64px);
|
||||
padding-right: calc(10% + 64px);
|
||||
}
|
||||
}
|
||||
|
||||
/** === Gallery === */
|
||||
.wp-block-gallery .blocks-gallery-image figcaption,
|
||||
.wp-block-gallery .blocks-gallery-item figcaption,
|
||||
.wp-block-gallery .gallery-item .gallery-caption {
|
||||
font-size: 0.71111em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/** === Button === */
|
||||
.wp-block-button .wp-block-button__link {
|
||||
line-height: 1.8;
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 0.88889em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
|
||||
background: #8D6708;
|
||||
}
|
||||
|
||||
.wp-block-button:not(.is-style-squared) .wp-block-button__link {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.wp-block-button.is-style-outline, .wp-block-button.is-style-outline:hover, .wp-block-button.is-style-outline:focus, .wp-block-button.is-style-outline:active {
|
||||
background: transparent;
|
||||
color: #8D6708;
|
||||
}
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline:hover .wp-block-button__link, .wp-block-button.is-style-outline:focus .wp-block-button__link, .wp-block-button.is-style-outline:active .wp-block-button__link {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color) {
|
||||
color: #8D6708;
|
||||
}
|
||||
|
||||
/** === Blockquote === */
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border-left: 2px solid #8D6708;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large, .wp-block-quote.is-style-large {
|
||||
margin-top: 2.8125em;
|
||||
margin-bottom: 2.8125em;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-size: 1.6875em;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-quote cite,
|
||||
.wp-block-quote footer,
|
||||
.wp-block-quote .wp-block-quote__citation {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 0.71111em;
|
||||
line-height: 1.6;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/** === Pullquote === */
|
||||
.wp-block-pullquote {
|
||||
border-color: transparent;
|
||||
border-width: 2px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
margin-top: calc(3 * 1rem);
|
||||
margin-bottom: calc(3.33 * 1rem);
|
||||
hyphens: auto;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.wp-block-pullquote:not(.is-style-solid-color) .wp-block-pullquote__citation {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color blockquote {
|
||||
width: calc(100% - (2 * 1rem));
|
||||
max-width: calc( 100% - (2 * 1rem));
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color blockquote a,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-text-color p,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-text-color a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color blockquote:not(.has-text-color) {
|
||||
color: #FAF8F5;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block-pullquote.is-style-solid-color blockquote {
|
||||
max-width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color:not(.has-background-color) {
|
||||
background-color: #8D6708;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] p {
|
||||
font-size: 1.6875em;
|
||||
font-style: italic;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/pullquote"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] p {
|
||||
font-size: 2.25em;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"] .wp-block-pullquote__citation,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .wp-block-pullquote__citation,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .wp-block-pullquote__citation {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 0.71111em;
|
||||
line-height: 1.6;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"] em,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] em,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] em {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .editor-block-list__block-edit,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit {
|
||||
width: calc(4 * (100vw / 12));
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .editor-block-list__block-edit .wp-block-pullquote:not(.is-style-solid-color),
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit .wp-block-pullquote:not(.is-style-solid-color) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .wp-block-pullquote__citation,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .wp-block-pullquote__citation {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/pullquote"][data-align="full"] .wp-block-pullquote blockquote {
|
||||
max-width: calc(80% - 128px);
|
||||
}
|
||||
}
|
||||
|
||||
/** === File === */
|
||||
.wp-block-file {
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__textlink {
|
||||
text-decoration: underline;
|
||||
color: #8D6708;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__textlink:hover {
|
||||
color: #5d4405;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
display: table;
|
||||
line-height: 1.8;
|
||||
font-size: 0.88889em;
|
||||
font-weight: bold;
|
||||
background-color: #8D6708;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button-richtext-wrapper {
|
||||
display: block;
|
||||
margin-top: calc(0.75 * 1rem);
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/** === Verse === */
|
||||
.wp-block-verse,
|
||||
.wp-block-verse pre {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/** === Code === */
|
||||
.wp-block-code {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/** === Table === */
|
||||
.wp-block-table td, .wp-block-table th {
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
/** === Separator === */
|
||||
.wp-block-separator,
|
||||
hr {
|
||||
height: 2px;
|
||||
margin-bottom: 2.75rem;
|
||||
margin-top: 2.75rem;
|
||||
text-align: left;
|
||||
max-width: calc(6*(100vw/12) - 28px) !important;
|
||||
border: 0;
|
||||
/* Remove duplicate rule-line when a separator
|
||||
* is followed by an H1, or H2 */
|
||||
}
|
||||
|
||||
.wp-block-separator:after,
|
||||
hr:after {
|
||||
background-color: #2E2E2E;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 2px;
|
||||
max-width: 3.25em;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block-separator.is-style-wide,
|
||||
hr.is-style-wide {
|
||||
max-width: calc(8 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1168px) {
|
||||
.wp-block-separator.is-style-wide,
|
||||
hr.is-style-wide {
|
||||
max-width: calc(6 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-dots,
|
||||
hr.is-style-dots {
|
||||
background-color: inherit;
|
||||
border: inherit;
|
||||
height: inherit;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block-separator.is-style-dots,
|
||||
hr.is-style-dots {
|
||||
max-width: calc(8 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1168px) {
|
||||
.wp-block-separator.is-style-dots,
|
||||
hr.is-style-dots {
|
||||
max-width: calc(6 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-dots:before,
|
||||
hr.is-style-dots:before {
|
||||
color: #fff;
|
||||
font-size: 1.6875em;
|
||||
letter-spacing: 0.88889em;
|
||||
padding-left: 0.88889em;
|
||||
}
|
||||
|
||||
.wp-block-separator + h1:before,
|
||||
.wp-block-separator + h2:before,
|
||||
hr + h1:before,
|
||||
hr + h2:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Remove duplicate rule-line when a separator
|
||||
* is followed by an H1, or H2 */
|
||||
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
|
||||
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/** === Latest Posts, Archives, Categories === */
|
||||
ul.wp-block-archives,
|
||||
.wp-block-categories,
|
||||
.wp-block-latest-posts {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
ul.wp-block-archives ul,
|
||||
.wp-block-categories ul,
|
||||
.wp-block-latest-posts ul {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
ul.wp-block-archives li,
|
||||
.wp-block-categories li,
|
||||
.wp-block-latest-posts li {
|
||||
color: #fff;
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: calc(22px * 1.125);
|
||||
font-weight: bold;
|
||||
line-height: 1.2;
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
ul.wp-block-archives li.menu-item-has-children, ul.wp-block-archives li:last-child,
|
||||
.wp-block-categories li.menu-item-has-children,
|
||||
.wp-block-categories li:last-child,
|
||||
.wp-block-latest-posts li.menu-item-has-children,
|
||||
.wp-block-latest-posts li:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
ul.wp-block-archives li a,
|
||||
.wp-block-categories li a,
|
||||
.wp-block-latest-posts li a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul.wp-block-archives li ul,
|
||||
.wp-block-categories li ul,
|
||||
.wp-block-latest-posts li ul {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.wp-block-categories ul {
|
||||
padding-top: 0.75rem;
|
||||
}
|
||||
|
||||
.wp-block-categories ul ul {
|
||||
counter-reset: submenu;
|
||||
}
|
||||
|
||||
.wp-block-categories ul ul > li > a::before {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 0.88889em;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
content: "– " counters(submenu, "– ", none);
|
||||
counter-increment: submenu;
|
||||
}
|
||||
|
||||
.wp-block-categories li ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin-bottom: -0.75rem;
|
||||
}
|
||||
|
||||
/** === Latest Posts grid view === */
|
||||
.wp-block-latest-posts.is-grid li {
|
||||
border-top: 2px solid #ccc;
|
||||
padding-top: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.wp-block-latest-posts.is-grid li a:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
.wp-block-latest-posts.is-grid li:last-child {
|
||||
margin-bottom: auto;
|
||||
}
|
||||
|
||||
.wp-block-latest-posts.is-grid li:last-child a:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
/** === Latest Comments === */
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-meta {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-meta .wp-block-latest-comments__comment-date {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment,
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-date,
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-excerpt p {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-date {
|
||||
font-size: 0.71111em;
|
||||
}
|
||||
|
||||
/** === Classic Editor === */
|
||||
/* Properly center-align captions in the classic-editor block */
|
||||
.wp-caption dd {
|
||||
color: #fff;
|
||||
font-size: 0.71111em;
|
||||
font-family: "Poppins", sans-serif;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
padding: 0.5rem;
|
||||
text-align: left;
|
||||
text-align: center;
|
||||
-webkit-margin-start: 0px;
|
||||
margin-inline-start: 0px;
|
||||
}
|
||||
|
||||
.wp-block-freeform {
|
||||
/* Add style for galleries in classic-editor block */
|
||||
}
|
||||
|
||||
.wp-block-freeform blockquote {
|
||||
border-left: 2px solid #8D6708;
|
||||
}
|
||||
|
||||
.wp-block-freeform blockquote cite {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-size: 0.71111em;
|
||||
font-style: normal;
|
||||
line-height: 1.6;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Make sure our non-latin font overrides don't overwrite the iconfont used in the classic editor toolbar */
|
||||
.wp-block[data-type="core/freeform"] .mce-btn i {
|
||||
font-family: dashicons !important;
|
||||
}
|
||||
|
||||
/** === Media and Text Block === */
|
||||
.wp-block-media-text {
|
||||
background-color: #6C6C74;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wp-block-media-text .editor-inner-blocks {
|
||||
align-self: start;
|
||||
padding-top: 32px;
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
|
||||
.wp-block-media-text:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
border-top: 32px solid #FAF8F5;
|
||||
border-bottom: 32px solid #FAF8F5;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wp-block-media-text.has-media-on-the-right {
|
||||
background-color: #fff;
|
||||
color: #242424;
|
||||
}
|
||||
|
||||
.wp-block-media-text .editor-block-list__block {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-block-media-text .editor-block-list__block:first-child .components-autocomplete > :first-child:before {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: inherit;
|
||||
content: "";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: 1.46rem 0 1rem;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.wp-block-media-text .has-small-font-size {
|
||||
font-size: 0.88889em;
|
||||
}
|
||||
|
||||
.wp-block-media-text .has-normal-font-size {
|
||||
font-size: 1.125em;
|
||||
}
|
||||
|
||||
.wp-block-media-text .has-large-font-size {
|
||||
font-size: 1.6875em;
|
||||
}
|
||||
|
||||
.wp-block-media-text .has-huge-font-size {
|
||||
font-size: 2.25em;
|
||||
}
|
||||
|
||||
[data-type="core/media-text"] .wp-block-heading h1,
|
||||
[data-type="core/media-text"] .wp-block-heading h2,
|
||||
[data-type="core/media-text"] .wp-block-heading h3,
|
||||
[data-type="core/media-text"] .wp-block-heading h4,
|
||||
[data-type="core/media-text"] .wp-block-heading h5,
|
||||
[data-type="core/media-text"] .wp-block-heading h6 {
|
||||
margin-bottom: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
[data-type="core/media-text"] + [data-type="core/media-text"] {
|
||||
margin-top: -32px;
|
||||
}
|
||||
|
||||
[data-type="core/media-text"] a {
|
||||
color: inherit;
|
||||
}
|
859
calm-business/style-editor.scss
Normal file
859
calm-business/style-editor.scss
Normal file
|
@ -0,0 +1,859 @@
|
|||
/*!
|
||||
Calm (Twenty Nineteen) Editor Styles
|
||||
*/
|
||||
|
||||
/** === Includes === */
|
||||
|
||||
@import "sass/variables-site/variables-site";
|
||||
@import "sass/mixins/mixins-master";
|
||||
|
||||
/** === Editor Frame === */
|
||||
|
||||
body {
|
||||
background-color: $color__background-body;
|
||||
font-weight: $font__weight_standard;
|
||||
font-size: 1em;
|
||||
|
||||
.wp-block[data-align="full"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@include media(mobile) {
|
||||
|
||||
.wp-block[data-align="full"] {
|
||||
width: calc( 100% + 90px );
|
||||
max-width: calc( 100% + 90px );
|
||||
}
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
.editor-writing-flow {
|
||||
max-width: 80%;
|
||||
margin: 0 10%;
|
||||
}
|
||||
|
||||
.wp-block[data-align="wide"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block[data-align="full"] {
|
||||
position: relative;
|
||||
left: calc( -12.5% - 14px );
|
||||
width: calc( 125% + 116px );
|
||||
max-width: calc( 125% + 115px ); // Subtract 1px here to avoid the rounding errors that happen due to the usage of percentages.
|
||||
}
|
||||
|
||||
.wp-block[data-align="right"] {
|
||||
max-width: 125%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** === Content Width === */
|
||||
|
||||
.wp-block {
|
||||
width: calc(100vw - (2 * #{$size__spacing-unit}));
|
||||
max-width: 100%;
|
||||
|
||||
@include media(tablet) {
|
||||
width: calc(8 * (100vw / 12));
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
width: calc(6 * (100vw / 12 ));
|
||||
}
|
||||
|
||||
// Only the top level blocks need specific widths, therefore override for every nested block.
|
||||
.wp-block {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Base Typography === */
|
||||
|
||||
body {
|
||||
font-size: $font__size_base;
|
||||
font-family: $font__body;
|
||||
line-height: $font__line-height-body;
|
||||
color: $color__text-main;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: $font__size_base;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: $font__heading;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: $font__size-xl;
|
||||
@include post-section-dash;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-xxl;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: $font__size-lg;
|
||||
@include post-section-dash;
|
||||
margin: 32px auto;
|
||||
max-width: calc(6*(100vw/12) - 28px);
|
||||
font-size: $font__size-md;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: $font__size-base;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: $font__size-md;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: $font__size-sm;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: $font__size-xs;
|
||||
}
|
||||
|
||||
a {
|
||||
@include link-transition;
|
||||
color: $color__link;
|
||||
|
||||
*:visited {
|
||||
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $color__link-hover;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
// Use white text against these backgrounds by default.
|
||||
.has-primary-background-color,
|
||||
.has-secondary-background-color,
|
||||
.has-dark-gray-background-color,
|
||||
.has-light-gray-background-color {
|
||||
color: $color__background-body;
|
||||
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
a {
|
||||
color: $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
// Use dark gray text against this background by default.
|
||||
.has-white-background-color {
|
||||
color: $color__text-main;
|
||||
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
a {
|
||||
color: $color__text-main;
|
||||
}
|
||||
}
|
||||
|
||||
figcaption,
|
||||
.gallery-caption {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.6;
|
||||
color: $color__text-light;
|
||||
}
|
||||
|
||||
/** === Post Title === */
|
||||
|
||||
.editor-post-title__block {
|
||||
|
||||
margin: 0;
|
||||
&:before {
|
||||
width: $font__size-xxl;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 1em;
|
||||
position: relative;
|
||||
top: 0.5em;
|
||||
}
|
||||
|
||||
.editor-post-title__input {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xxl;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Default Appender === */
|
||||
|
||||
.editor-default-block-appender .editor-default-block-appender__content {
|
||||
font-family: $font__body;
|
||||
font-size: $font__size_base;
|
||||
}
|
||||
|
||||
/** === Heading === */
|
||||
|
||||
.wp-block-heading {
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
/** === Paragraph === */
|
||||
|
||||
.wp-block-paragraph {
|
||||
|
||||
&.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xxxl;
|
||||
line-height: 1;
|
||||
font-weight: bold;
|
||||
margin: 0 0.25em 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Table === */
|
||||
|
||||
.wp-block-table {
|
||||
font-family: $font__heading;
|
||||
}
|
||||
|
||||
/** === Cover === */
|
||||
|
||||
.wp-block-cover {
|
||||
position: relative;
|
||||
min-height: 380px;
|
||||
padding: $size__spacing-unit;
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-lg;
|
||||
font-weight: $font__weight_bold;
|
||||
line-height: 1.25;
|
||||
padding: 0;
|
||||
color: #fff;
|
||||
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 0;
|
||||
font-size: $font__size-xxl;
|
||||
}
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
padding: $size__spacing-unit 10%;
|
||||
min-height: 620px;
|
||||
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
font-size: $font__size-xxl;
|
||||
font-weight: $font__weight_bold;
|
||||
line-height: 1.25;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="left"],
|
||||
.wp-block[data-type="core/cover"][data-align="right"] {
|
||||
|
||||
.editor-block-list__block-edit {
|
||||
width: calc(4 * (100vw / 12));
|
||||
}
|
||||
|
||||
.wp-block-cover {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
padding: calc(1.375 * #{$size__spacing-unit});
|
||||
|
||||
p {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
padding: calc(2.75 * #{$size__spacing-unit}) calc(2.75 * #{$size__spacing-unit}) calc(3.125 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="wide"],
|
||||
.wp-block[data-type="core/cover"][data-align="full"] {
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="full"] {
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
.wp-block-cover {
|
||||
padding-left: calc(10% + 64px);
|
||||
padding-right: calc(10% + 64px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** === Gallery === */
|
||||
|
||||
.wp-block-gallery {
|
||||
|
||||
.blocks-gallery-image figcaption,
|
||||
.blocks-gallery-item figcaption,
|
||||
.gallery-item .gallery-caption {
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Button === */
|
||||
|
||||
.wp-block-button {
|
||||
|
||||
.wp-block-button__link {
|
||||
line-height: 1.8;
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&:not(.is-style-outline) .wp-block-button__link {
|
||||
background: $color__background-button;
|
||||
}
|
||||
|
||||
&:not(.is-style-squared) .wp-block-button__link {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
&.is-style-outline,
|
||||
&.is-style-outline:hover,
|
||||
&.is-style-outline:focus,
|
||||
&.is-style-outline:active {
|
||||
background: transparent;
|
||||
color: $color__background-button;
|
||||
|
||||
.wp-block-button__link {
|
||||
background: transparent;
|
||||
|
||||
&:not(.has-text-color) {
|
||||
color: $color__background-button;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** === Blockquote === */
|
||||
|
||||
.wp-block-quote {
|
||||
|
||||
&:not(.is-large):not(.is-style-large) {
|
||||
border-left: 2px solid $color__link;
|
||||
}
|
||||
|
||||
&.is-large,
|
||||
&.is-style-large {
|
||||
margin-top: $font__size-xxl;
|
||||
margin-bottom: $font__size-xxl;
|
||||
}
|
||||
|
||||
&.is-large p,
|
||||
&.is-style-large p {
|
||||
font-size: $font__size-lg;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
cite,
|
||||
footer,
|
||||
.wp-block-quote__citation {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.6;
|
||||
color: $color__text-light;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Pullquote === */
|
||||
|
||||
.wp-block-pullquote {
|
||||
border-color: transparent;
|
||||
border-width: 2px;
|
||||
color: #000;
|
||||
|
||||
blockquote {
|
||||
margin-top: calc(3 * #{ $size__spacing-unit});
|
||||
margin-bottom: calc(3.33 * #{ $size__spacing-unit});
|
||||
hyphens: auto;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
&:not(.is-style-solid-color) .wp-block-pullquote__citation {
|
||||
color: $color__text-light;
|
||||
}
|
||||
|
||||
&.is-style-solid-color {
|
||||
|
||||
blockquote {
|
||||
width: calc(100% - (2 * #{ $size__spacing-unit}));
|
||||
max-width: calc( 100% - (2 * #{ $size__spacing-unit}));
|
||||
|
||||
a,
|
||||
&.has-text-color p,
|
||||
&.has-text-color a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&:not(.has-text-color) {
|
||||
color: $color__background-body;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.has-background-color) {
|
||||
background-color: $color__link;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"],
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"],
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] {
|
||||
|
||||
blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
blockquote > .editor-rich-text p,
|
||||
p {
|
||||
font-size: $font__size-lg;
|
||||
font-style: italic;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-xl;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-pullquote__citation {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.6;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
em {
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"],
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] {
|
||||
|
||||
.editor-block-list__block-edit {
|
||||
width: calc(4 * (100vw / 12));
|
||||
max-width: 50%;
|
||||
|
||||
.wp-block-pullquote:not(.is-style-solid-color) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color {
|
||||
padding: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
blockquote > .editor-rich-text p,
|
||||
p,
|
||||
.wp-block-pullquote__citation {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="full"] {
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
max-width: calc(80% - 128px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** === File === */
|
||||
|
||||
.wp-block-file {
|
||||
font-family: $font__heading;
|
||||
|
||||
.wp-block-file__textlink {
|
||||
text-decoration: underline;
|
||||
color: $color__link;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-file__button {
|
||||
display: table;
|
||||
line-height: 1.8;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: bold;
|
||||
background-color: $color__link;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.wp-block-file__button-richtext-wrapper {
|
||||
display: block;
|
||||
margin-top: calc(0.75 * #{$size__spacing-unit});
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** === Verse === */
|
||||
|
||||
.wp-block-verse,
|
||||
.wp-block-verse pre {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/** === Code === */
|
||||
|
||||
.wp-block-code {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/** === Table === */
|
||||
|
||||
.wp-block-table {
|
||||
|
||||
td, th {
|
||||
border-color: $color__text-light;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Separator === */
|
||||
.wp-block-separator,
|
||||
hr {
|
||||
height: 2px;
|
||||
margin-bottom: (2.75 * $size__spacing-unit);
|
||||
margin-top: (2.75 * $size__spacing-unit);
|
||||
text-align: left;
|
||||
max-width: calc(6*(100vw/12) - 28px) !important;
|
||||
border: 0;
|
||||
&:after {
|
||||
background-color: $color__text-main-alt;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 2px;
|
||||
max-width: 3.25em;
|
||||
}
|
||||
|
||||
&.is-style-wide {
|
||||
@include postContentMaxWidth();
|
||||
}
|
||||
|
||||
&.is-style-dots {
|
||||
@include postContentMaxWidth();
|
||||
background-color: inherit;
|
||||
border: inherit;
|
||||
height: inherit;
|
||||
text-align: center;
|
||||
|
||||
&:before {
|
||||
color: $color__text-light;
|
||||
font-size: $font__size-lg;
|
||||
letter-spacing: $font__size-sm;
|
||||
padding-left: $font__size-sm;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove duplicate rule-line when a separator
|
||||
* is followed by an H1, or H2 */
|
||||
& + h1,
|
||||
& + h2 {
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove duplicate rule-line when a separator
|
||||
* is followed by an H1, or H2 */
|
||||
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
|
||||
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/** === Latest Posts, Archives, Categories === */
|
||||
|
||||
ul.wp-block-archives,
|
||||
.wp-block-categories,
|
||||
.wp-block-latest-posts {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
li {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-size: calc(#{$font__size_base} * #{$font__size-ratio});
|
||||
font-weight: bold;
|
||||
line-height: $font__line-height-heading;
|
||||
padding-bottom: ( .75 * $size__spacing-unit );
|
||||
|
||||
&.menu-item-has-children,
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-categories {
|
||||
|
||||
ul {
|
||||
padding-top: ( .75 * $size__spacing-unit );
|
||||
@include nestedSubMenuPadding();
|
||||
}
|
||||
|
||||
li ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin-bottom: ( -.75 * $size__spacing-unit );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** === Latest Posts grid view === */
|
||||
.wp-block-latest-posts.is-grid {
|
||||
li {
|
||||
border-top: 2px solid $color__border;
|
||||
padding-top: (1 * $size__spacing-unit);
|
||||
margin-bottom: (2 * $size__spacing-unit);
|
||||
a {
|
||||
&:after {
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
&:last-child {
|
||||
margin-bottom: auto;
|
||||
a:after {
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** === Latest Comments === */
|
||||
|
||||
.wp-block-latest-comments {
|
||||
|
||||
.wp-block-latest-comments__comment-meta {
|
||||
font-family: $font__heading;
|
||||
font-weight: bold;
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment,
|
||||
.wp-block-latest-comments__comment-date,
|
||||
.wp-block-latest-comments__comment-excerpt p {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
font-size: $font__size-xs;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Classic Editor === */
|
||||
|
||||
/* Properly center-align captions in the classic-editor block */
|
||||
.wp-caption {
|
||||
dd {
|
||||
color: $color__text-light;
|
||||
font-size: $font__size-xs;
|
||||
font-family: $font__heading;
|
||||
line-height: $font__line-height-pre;
|
||||
margin: 0;
|
||||
padding: ( $size__spacing-unit * .5 );
|
||||
text-align: left;
|
||||
text-align: center;
|
||||
-webkit-margin-start: 0px;
|
||||
margin-inline-start: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-freeform {
|
||||
|
||||
/* Add style for galleries in classic-editor block */
|
||||
blockquote {
|
||||
border-left: 2px solid $color__link;
|
||||
|
||||
cite {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
font-style: normal;
|
||||
line-height: 1.6;
|
||||
color: $color__text-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Make sure our non-latin font overrides don't overwrite the iconfont used in the classic editor toolbar */
|
||||
.wp-block[data-type="core/freeform"] .mce-btn i {
|
||||
font-family: dashicons !important;
|
||||
}
|
||||
|
||||
/** === Media and Text Block === */
|
||||
.wp-block-media-text {
|
||||
background-color: $color__background-body-dark;
|
||||
color: $color__text-light;
|
||||
|
||||
.editor-inner-blocks {
|
||||
align-self: start;
|
||||
padding-top: 32px;
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
border-top: 32px solid $color__background-body;
|
||||
border-bottom: 32px solid $color__background-body;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&.has-media-on-the-right {
|
||||
background-color: $color__background-body-light;
|
||||
color: $color__text-main;
|
||||
}
|
||||
|
||||
.editor-block-list__block {
|
||||
margin: 0;
|
||||
&:first-child {
|
||||
.components-autocomplete {
|
||||
> :first-child {
|
||||
&:before {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: inherit;
|
||||
content: "";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: 1.46rem 0 1rem;
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Font Sizes
|
||||
.has-small-font-size {
|
||||
font-size: $font__size-sm;
|
||||
}
|
||||
|
||||
.has-normal-font-size {
|
||||
font-size: $font__size-md;
|
||||
}
|
||||
|
||||
.has-large-font-size {
|
||||
font-size: $font__size-lg;
|
||||
}
|
||||
|
||||
.has-huge-font-size {
|
||||
font-size: $font__size-xl;
|
||||
}
|
||||
}
|
||||
|
||||
// Remove spacing between consecutive Media & Text blocks.
|
||||
[data-type="core/media-text"] {
|
||||
|
||||
.wp-block-heading {
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin-bottom: $size__spacing-unit;
|
||||
margin-top: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
|
||||
& + [data-type="core/media-text"] {
|
||||
margin-top: -32px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
92
calm-business/style-jetpack.css
Normal file
92
calm-business/style-jetpack.css
Normal file
|
@ -0,0 +1,92 @@
|
|||
/* Reset font-family styles for Jetpack
|
||||
*
|
||||
* See: https://github.com/Automattic/jetpack/blob/master/modules/theme-tools/compat/twentynineteen.css
|
||||
*
|
||||
* Note: Use $font__heading or $font__body variables approriately
|
||||
*/
|
||||
/* Infinite scroll */
|
||||
.site-main #infinite-handle span button {
|
||||
font-family: "Poppins", sans-serif;
|
||||
background: #8D6708;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span button:hover {
|
||||
background: #111;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span button:visited {
|
||||
color: #FAF8F5;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span button:focus {
|
||||
background: #111;
|
||||
outline: thin dotted;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Responsive Videos
|
||||
*/
|
||||
/**
|
||||
* Sharing
|
||||
*/
|
||||
.entry div.sharedaddy h3.sd-title,
|
||||
.entry h3.sd-title {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-weight: 600;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Related Posts
|
||||
*/
|
||||
.entry #jp-relatedposts h3.jp-relatedposts-headline {
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts h3.jp-relatedposts-headline em {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title,
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-context,
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-date {
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stats
|
||||
*/
|
||||
/**
|
||||
* Comments
|
||||
*/
|
||||
/**
|
||||
* Widgets
|
||||
*/
|
||||
/* Authors Widget */
|
||||
.widget_authors > ul > li > a {
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
/* Display WordPress Posts */
|
||||
/* GoodReads */
|
||||
/* EU cookie law */
|
||||
.widget_eu_cookie_law_widget #eu-cookie-law {
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
/* RSS Links */
|
||||
.widget_rss_links li {
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
/**
|
||||
* Content Options
|
||||
*/
|
100
calm-business/style-jetpack.scss
Normal file
100
calm-business/style-jetpack.scss
Normal file
|
@ -0,0 +1,100 @@
|
|||
/* Reset font-family styles for Jetpack
|
||||
*
|
||||
* See: https://github.com/Automattic/jetpack/blob/master/modules/theme-tools/compat/twentynineteen.css
|
||||
*
|
||||
* Note: Use $font__heading or $font__body variables approriately
|
||||
*/
|
||||
@import "sass/variables-site/variables-site";
|
||||
|
||||
/* Infinite scroll */
|
||||
.site-main #infinite-handle span button {
|
||||
font-family: $font__body;
|
||||
background: $color__background-button;
|
||||
&:hover {
|
||||
background: $color__background-button-hover;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:visited {
|
||||
color: $color__background-body;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background: $color__background-button-hover;
|
||||
outline: thin dotted;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Responsive Videos
|
||||
*/
|
||||
|
||||
/**
|
||||
* Sharing
|
||||
*/
|
||||
|
||||
.entry div.sharedaddy h3.sd-title,
|
||||
.entry h3.sd-title {
|
||||
font-family: $font__heading;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Related Posts
|
||||
*/
|
||||
|
||||
.entry #jp-relatedposts h3.jp-relatedposts-headline {
|
||||
font-family: $font__heading;
|
||||
font-weight: $font__weight_semi_bold;
|
||||
em {
|
||||
font-weight: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title,
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-context,
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-date {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stats
|
||||
*/
|
||||
|
||||
/**
|
||||
* Comments
|
||||
*/
|
||||
|
||||
/**
|
||||
* Widgets
|
||||
*/
|
||||
|
||||
/* Authors Widget */
|
||||
.widget_authors > ul > li > a {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
/* Display WordPress Posts */
|
||||
|
||||
/* GoodReads */
|
||||
|
||||
/* EU cookie law */
|
||||
.widget_eu_cookie_law_widget #eu-cookie-law {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
/* RSS Links */
|
||||
.widget_rss_links li {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Content Options
|
||||
*/
|
4795
calm-business/style-rtl.css
Normal file
4795
calm-business/style-rtl.css
Normal file
File diff suppressed because it is too large
Load diff
4808
calm-business/style.css
Normal file
4808
calm-business/style.css
Normal file
File diff suppressed because it is too large
Load diff
110
calm-business/style.scss
Normal file
110
calm-business/style.scss
Normal file
|
@ -0,0 +1,110 @@
|
|||
/*
|
||||
Theme Name: Calm Business
|
||||
Theme URI: https://github.com/automattic/themes
|
||||
Author: Automattic
|
||||
Author URI: https://wordpress.com
|
||||
Template: twentynineteen
|
||||
Description: Your classy establishment needs an equally classy website to showcase your stylish rooms and quality products! With its bold typography and peaceful color scheme, Calm Business exudes a calm, inviting atmosphere as a bed and breakfast, time share, or brick & mortar store fronts.
|
||||
Requires at least: WordPress 4.9.6
|
||||
Version: 1.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: LICENSE
|
||||
Text Domain: calm-business
|
||||
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned with others.
|
||||
|
||||
Twenty Nineteen is based on Underscores https://underscores.me/, (C) 2012-2018 Automattic, Inc.
|
||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||
|
||||
Normalizing styles have been helped along thanks to the fine work of
|
||||
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
# Variables
|
||||
# Normalize
|
||||
# Typography
|
||||
## Headings
|
||||
## Copy
|
||||
# Elements
|
||||
## Lists
|
||||
## Tables
|
||||
# Forms
|
||||
## Buttons
|
||||
## Fields
|
||||
# Navigation
|
||||
## Links
|
||||
## Menus
|
||||
## Next & Previous
|
||||
# Accessibility
|
||||
# Alignments
|
||||
# Clearings
|
||||
# Layout
|
||||
# Widgets
|
||||
# Content
|
||||
## Archives
|
||||
## Posts and pages
|
||||
## Comments
|
||||
# Blocks
|
||||
# Media
|
||||
## Captions
|
||||
## Galleries
|
||||
--------------------------------------------------------------*/
|
||||
@import "sass/variables-site/variables-site";
|
||||
@import "sass/mixins/mixins-master";
|
||||
|
||||
/* Normalize */
|
||||
|
||||
@import "sass/normalize";
|
||||
|
||||
/* Typography */
|
||||
|
||||
@import "sass/typography/typography";
|
||||
|
||||
/* Elements */
|
||||
|
||||
@import "sass/elements/elements";
|
||||
|
||||
/* Forms */
|
||||
|
||||
@import "sass/forms/forms";
|
||||
|
||||
/* Navigation */
|
||||
|
||||
@import "sass/navigation/navigation";
|
||||
|
||||
/* Accessibility */
|
||||
|
||||
@import "sass/modules/accessibility";
|
||||
|
||||
/* Alignments */
|
||||
|
||||
@import "sass/modules/alignments";
|
||||
|
||||
/* Clearings */
|
||||
|
||||
@import "sass/modules/clearings";
|
||||
|
||||
/* Layout */
|
||||
|
||||
@import "sass/layout/layout";
|
||||
|
||||
/* Content */
|
||||
|
||||
@import "sass/site/site";
|
||||
|
||||
/* Widgets */
|
||||
|
||||
@import "sass/site/secondary/widgets";
|
||||
|
||||
/* Blocks */
|
||||
|
||||
@import "sass/blocks/blocks";
|
||||
|
||||
/* Media */
|
||||
|
||||
@import "sass/media/media";
|
403
canard/blocks.css
Normal file
403
canard/blocks.css
Normal file
|
@ -0,0 +1,403 @@
|
|||
/*
|
||||
Theme Name: Canard
|
||||
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 {
|
||||
color: inherit;
|
||||
font-family: Lato, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.25;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
p.has-drop-cap:not(:focus)::first-letter {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
/* Images */
|
||||
|
||||
.wp-block-cover,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright,
|
||||
.wp-block-cover.aligncenter {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* Gallery */
|
||||
|
||||
.wp-block-gallery {
|
||||
margin-bottom: 30px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
}
|
||||
|
||||
.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: normal;
|
||||
}
|
||||
|
||||
.wp-block-quote cite:before {
|
||||
}
|
||||
|
||||
.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: 120%;
|
||||
}
|
||||
|
||||
/* Audio */
|
||||
|
||||
.wp-block-audio audio {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file a.wp-block-file__button {
|
||||
background: #d11415;
|
||||
border: 2px solid #d11415;
|
||||
border-radius: 0;
|
||||
color: #fff;
|
||||
font-family: Lato, sans-serif;
|
||||
font-weight: bold;
|
||||
padding: 5.5px 13px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wp-block-file a.wp-block-file__button:hover,
|
||||
.wp-block-file a.wp-block-file__button:focus {
|
||||
background: #fff;
|
||||
color: #d11415;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.wp-block-file a.wp-block-file__button:focus {
|
||||
background: #fff;
|
||||
color: #d11415;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.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: transparent;
|
||||
border: 0;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
line-height: inherit;
|
||||
margin-bottom: 30px;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
font-family: Inconsolata, monospace;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
border-top: 4px solid currentColor;
|
||||
border-bottom: 2px solid currentColor;
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
margin: 15px 0 30px;
|
||||
padding: 15px 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wp-block-pullquote p,
|
||||
.wp-block-pullquote.alignleft p,
|
||||
.wp-block-pullquote.alignright p {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft cite,
|
||||
.wp-block-pullquote.alignright cite {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-pullquote blockquote {
|
||||
}
|
||||
|
||||
.wp-block-pullquote p {
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
text-transform: none;
|
||||
font-size: inherit;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite:before {
|
||||
}
|
||||
|
||||
/* 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;
|
||||
border: 2px solid;
|
||||
display: inline-block;
|
||||
font-family: Lato, sans-serif;
|
||||
font-weight: bold;
|
||||
padding: 5.5px 13px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.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: #d11415;
|
||||
border-color: #d11415;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.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 {
|
||||
color: #d11415;
|
||||
background: #fff;
|
||||
border-color: #d11415;
|
||||
}
|
||||
|
||||
/* Seperator */
|
||||
|
||||
hr.wp-block-separator {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-separator {
|
||||
background-color: #ddd;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin-bottom: 30px;
|
||||
max-width: 66%;
|
||||
}
|
||||
|
||||
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 100px;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
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 */
|
||||
|
||||
.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 #d1d1d1;
|
||||
margin-bottom: 0;
|
||||
padding: 30px 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: #555;
|
||||
}
|
||||
|
||||
.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: #555;
|
||||
}
|
||||
|
||||
.has-medium-gray-color,
|
||||
.has-medium-gray-color:hover,
|
||||
.has-medium-gray-color:focus,
|
||||
.has-medium-gray-color:active {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.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: #777;
|
||||
}
|
||||
|
||||
.has-light-gray-color,
|
||||
.has-light-gray-color:hover,
|
||||
.has-light-gray-color:focus,
|
||||
.has-light-gray-color:active {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.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: #ddd;
|
||||
}
|
||||
|
||||
.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-red-color,
|
||||
.has-red-color:hover,
|
||||
.has-red-color:focus,
|
||||
.has-red-color:active {
|
||||
color: #d11415;
|
||||
}
|
||||
|
||||
.has-red-background-color,
|
||||
.has-red-background-color:hover,
|
||||
.has-red-background-color:focus,
|
||||
.has-red-background-color:active {
|
||||
background-color: #d11415;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
829
canard/editor-blocks.css
Normal file
829
canard/editor-blocks.css
Normal file
|
@ -0,0 +1,829 @@
|
|||
|
||||
/*
|
||||
* Theme Name: Canard
|
||||
* Description: Gutenberg Block Editor Styles
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
2.0 General Block Styles
|
||||
3.0 Blocks - Common Blocks
|
||||
4.0 Blocks - Formatting
|
||||
5.0 Blocks - Layout Elements
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.edit-post-visual-editor .editor-block-list__block p,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
font-family: "PT Serif", serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 768px ) {
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.edit-post-visual-editor .editor-block-list__block p,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.alignleft {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
/* Title */
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
clear: both;
|
||||
font-family: "Playfair Display", serif;
|
||||
font-weight: bold;
|
||||
margin-top: 0;
|
||||
font-size: 39px;
|
||||
line-height: 1.54;
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
|
||||
.edit-post-visual-editor h1,
|
||||
.edit-post-visual-editor h2,
|
||||
.edit-post-visual-editor h3,
|
||||
.edit-post-visual-editor h4,
|
||||
.edit-post-visual-editor h5,
|
||||
.edit-post-visual-editor h6 {
|
||||
clear: both;
|
||||
font-family: "Playfair Display", serif;
|
||||
font-weight: bold;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.225;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h2 {
|
||||
font-size: 39px;
|
||||
line-height: 1.54;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h3 {
|
||||
font-size: 31px;
|
||||
line-height: 1.452;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h4 {
|
||||
font-size: 25px;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h5 {
|
||||
font-size: 20px;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h6 {
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
/* Paragraphs */
|
||||
|
||||
.edit-post-visual-editor p {
|
||||
margin: 0 0 30px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor blockquote p {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 General Block Styles
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Main column width */
|
||||
|
||||
.wp-block {
|
||||
max-width: 750px; /* 720px + 30px padding */
|
||||
}
|
||||
|
||||
@media screen and (min-width: 960px) {
|
||||
.wp-block {
|
||||
max-width: 584px; /* 554px + 30px padding */
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1080px) {
|
||||
.wp-block {
|
||||
max-width: 674px; /* 644px + 30px padding */
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1380px) {
|
||||
.wp-block {
|
||||
max-width: 899px; /* 869px + 30px padding */
|
||||
}
|
||||
}
|
||||
|
||||
/* Link styles */
|
||||
|
||||
.edit-post-visual-editor a,
|
||||
.editor-block-list__block a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a {
|
||||
color: #d11415;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:hover,
|
||||
.edit-post-visual-editor a:focus,
|
||||
.edit-post-visual-editor a:active,
|
||||
.editor-block-list__block a:hover,
|
||||
.editor-block-list__block a:focus,
|
||||
.editor-block-list__block a:active,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:hover,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:focus,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:active {
|
||||
color: inherit;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:visited,
|
||||
.editor-block-list__block a:visited,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:visited {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* List styles */
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul,
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ol,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ul,
|
||||
.block-library-list .editor-rich-text__tinymce {
|
||||
margin: 0 0 30px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ul {
|
||||
list-style: square inside;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ol {
|
||||
list-style: decimal inside;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li,
|
||||
.edit-post-visual-editor ol li,
|
||||
.editor-block-list__block ol li,
|
||||
.block-library-list li,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ul li,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ol li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
|
||||
.block-library-list li > ul,
|
||||
.edit-post-visual-editor li > ol,
|
||||
.editor-block-list__block li > ol,
|
||||
.block-library-list li > ol,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce li > ul,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce li > ol {
|
||||
margin-bottom: 0;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.rtl .editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.rtl .block-library-list ul,
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 0;
|
||||
margin-right: 30px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 0;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
/* Captions */
|
||||
|
||||
[class^="wp-block-"] figcaption {
|
||||
color: #777;
|
||||
font-family: Lato, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.25;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
/* Image */
|
||||
|
||||
.wp-block-image figcaption {
|
||||
color: #777;
|
||||
font-family: Lato, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.25;
|
||||
margin-bottom: 25px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote:before {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
display: inline-block;
|
||||
font-family: Genericons;
|
||||
font-size: 24px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
height: 30px;
|
||||
line-height: 1.25;
|
||||
speak: none;
|
||||
text-decoration: inherit;
|
||||
vertical-align: top;
|
||||
width: 30px;
|
||||
color: #ddd;
|
||||
content: "\f106";
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-quote:before {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.wp-block-quote {
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
margin: 0 0 30px;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block blockquote {
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
padding-left: 0;
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.rtl .wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border-right: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large),
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote p {
|
||||
color: inherit;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote__citation {
|
||||
color: inherit;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
font-size: inherit;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote__citation:before {
|
||||
}
|
||||
|
||||
.wp-block-quote em,
|
||||
.wp-block-quote i,
|
||||
.wp-block-quote__citation:before {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-quote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote.alignleft {
|
||||
margin: 15px 30px 15px 0;
|
||||
}
|
||||
|
||||
.wp-block-quote.alignright {
|
||||
margin: 15px 0 15px 30px;
|
||||
}
|
||||
|
||||
.wp-block-quote.aligncenter {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
/* Audio */
|
||||
|
||||
.wp-block-audio audio {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Cover */
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
|
||||
font-size: 2.0em; /* Cover images inherit the paragraph size; this resets it */
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file__textlink {
|
||||
color: #d11415;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background: #d11415;
|
||||
border: 2px solid #d11415;
|
||||
border-radius: 0;
|
||||
color: #fff;
|
||||
font-family: Lato, sans-serif;
|
||||
font-weight: bold;
|
||||
padding: 5.5px 13px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse pre {
|
||||
background: transparent;
|
||||
border-left: 0;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
line-height: inherit;
|
||||
margin-bottom: 30px;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
font-family: Inconsolata, monospace;
|
||||
background: #eee;
|
||||
border: 0;
|
||||
border-left: 2px solid #d11415;
|
||||
border-radius: 0;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.wp-block-code textarea {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.rtl .wp-block-code {
|
||||
border-left: 0;
|
||||
border-right: 2px solid #d11415;
|
||||
}
|
||||
|
||||
/* Classic */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
display: inline-block;
|
||||
font-family: Genericons;
|
||||
font-size: 24px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
height: 30px;
|
||||
line-height: 1.25;
|
||||
speak: none;
|
||||
text-decoration: inherit;
|
||||
vertical-align: top;
|
||||
width: 30px;
|
||||
color: #ddd;
|
||||
content: "\f106";
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
border-left: 0;
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
margin: 0 0 30px;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
margin: .75em 30px .75em 0;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
margin: .75em 0 .75em 30px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.225;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
font-size: 39px;
|
||||
line-height: 1.54;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
font-size: 31px;
|
||||
line-height: 1.452;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||
font-size: 25px;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
font-size: 20px;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce pre {
|
||||
background: #eee;
|
||||
border-left: 2px solid #d11415;
|
||||
font-size: 16px;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce pre {
|
||||
border-left: 0;
|
||||
border-right: 2px solid #d11415;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table {
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
border-top: 1px solid #ddd;
|
||||
margin: 0 0 30px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce .alternate {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table td,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
border: 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table thead {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table td a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th a {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
border-bottom: 1px solid #ddd;
|
||||
font-family: Lato, sans-serif;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce th,
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce td {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Preformatted */
|
||||
|
||||
.editor-block-list__block .wp-block-preformatted pre {
|
||||
background: #eee;
|
||||
border-left: 2px solid #d11415;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-preformatted pre {
|
||||
border-left: 0;
|
||||
border-right: 2px solid #d11415;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.editor-block-list__block .wp-block-pullquote blockquote {
|
||||
border-top: 4px solid currentColor;
|
||||
border-bottom: 2px solid currentColor;
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
margin: 0 0 30px;
|
||||
padding: 15px 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft {
|
||||
float: left;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignright {
|
||||
float: right;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote > .editor-rich-text p {
|
||||
color: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft blockquote p,
|
||||
.wp-block-pullquote.alignright blockquote p {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft .wp-block-pullquote__citation,
|
||||
.wp-block-pullquote.alignright .wp-block-pullquote__citation {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation {
|
||||
text-transform: none;
|
||||
font-size: inherit;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Table */
|
||||
|
||||
.wp-block-table {
|
||||
border-top: 1px solid #ddd;
|
||||
margin: 0 0 30px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-table thead {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.wp-block-table th {
|
||||
border: 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
font-family: "Lato", sans-serif;
|
||||
font-weight: bold;
|
||||
padding: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wp-block-table td {
|
||||
border: 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-table .wp-block-table__cell-content {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-table {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Definition List styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dd {
|
||||
margin: 0 0 30px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border-radius: 0;
|
||||
border: 2px solid;
|
||||
display: inline-block;
|
||||
font-family: Lato, sans-serif;
|
||||
font-weight: bold;
|
||||
padding: 5.5px 13px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link:hover,
|
||||
.wp-block-button .wp-block-button__link:focus,
|
||||
.wp-block-button .wp-block-button__link:active {
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.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) {
|
||||
background: #d11415;
|
||||
border-color: #d11415;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):active,
|
||||
.wp-block-button__link:not(.has-background):hover,
|
||||
.wp-block-button__link:not(.has-background):focus {
|
||||
color: #d11415;
|
||||
background: #fff;
|
||||
border-color: #d11415;
|
||||
}
|
||||
|
||||
/* Separator */
|
||||
.wp-block-separator {
|
||||
background-color: #ddd;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin-bottom: 30px;
|
||||
max-width: 66%;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Categories & Archives */
|
||||
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-archives,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/* Latest Comments */
|
||||
|
||||
.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 #ddd;
|
||||
margin-bottom: 0;
|
||||
padding: 30px 0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Latest Posts */
|
||||
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
|
||||
margin-bottom: 15px;
|
||||
}
|
|
@ -64,6 +64,45 @@ function canard_setup() {
|
|||
add_image_size( 'canard-featured-content-thumbnail', 915, 500, true );
|
||||
add_image_size( 'canard-single-thumbnail', 1920, 768, true );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add custom colors to Gutenberg
|
||||
add_theme_support(
|
||||
'editor-color-palette', array(
|
||||
array(
|
||||
'name' => esc_html__( 'Black', 'canard' ),
|
||||
'slug' => 'black',
|
||||
'color' => '#222222',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Dark Gray', 'canard' ),
|
||||
'slug' => 'dark-gray',
|
||||
'color' => '#555555',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Medium Gray', 'canard' ),
|
||||
'slug' => 'medium-gray',
|
||||
'color' => '#777777',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Light Gray', 'canard' ),
|
||||
'slug' => 'light-gray',
|
||||
'color' => '#dddddd',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'White', 'canard' ),
|
||||
'slug' => 'white',
|
||||
'color' => '#ffffff',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Red', 'canard' ),
|
||||
'slug' => 'red',
|
||||
'color' => '#d11415',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// This theme uses wp_nav_menu() in four locations.
|
||||
register_nav_menus( array(
|
||||
'primary' => __( 'Primary Location', 'canard' ),
|
||||
|
@ -201,6 +240,10 @@ function canard_pt_serif_playfair_display_font_url() {
|
|||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function canard_scripts() {
|
||||
|
||||
// Gutenberg styles
|
||||
wp_enqueue_style( 'canard-blocks', get_template_directory_uri() . '/blocks.css' );
|
||||
|
||||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.3' );
|
||||
|
||||
wp_enqueue_style( 'canard-pt-serif-playfair-display', canard_pt_serif_playfair_display_font_url() );
|
||||
|
@ -241,6 +284,17 @@ function canard_scripts() {
|
|||
}
|
||||
add_action( 'wp_enqueue_scripts', 'canard_scripts' );
|
||||
|
||||
/**
|
||||
* Gutenberg Editor Styles
|
||||
*/
|
||||
function canard_editor_styles() {
|
||||
wp_enqueue_style( 'canard-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');
|
||||
wp_enqueue_style( 'canard-pt-serif-playfair-display', canard_pt_serif_playfair_display_font_url() );
|
||||
wp_enqueue_style( 'canard-lato-inconsolata', canard_lato_inconsolata_fonts_url() );
|
||||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.3' );
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'canard_editor_styles' );
|
||||
|
||||
/**
|
||||
* Implement the Custom Header feature.
|
||||
*/
|
||||
|
|
|
@ -109,3 +109,25 @@ function canard_jetpack_featured_image_display() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove Post Format classes from Portfolio items.
|
||||
*/
|
||||
function canard_jetpack_portfolio_classes( $classes ) {
|
||||
$post_format = get_post_format();
|
||||
|
||||
if ( $post_format && ! is_wp_error( $post_format ) ) {
|
||||
$class = 'format-' . sanitize_html_class( $post_format );
|
||||
} else {
|
||||
$class = 'format-standard';
|
||||
}
|
||||
|
||||
$class_key = array_search( $class, $classes );
|
||||
|
||||
if ( false !== $class_key && 'jetpack-portfolio' === get_post_type() ) {
|
||||
unset( $classes[ $class_key ] );
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
add_filter( 'post_class', 'canard_jetpack_portfolio_classes' );
|
|
@ -4,7 +4,7 @@ Theme URI: https://wordpress.com/themes/canard/
|
|||
Author: Automattic
|
||||
Author URI: https://wordpress.com/themes/
|
||||
Description: A flexible and versatile theme perfect for magazines, news sites, and blogs. It lets you highlight specific articles on the homepage and balances readability with a powerful use of photography — all in a layout that works on any device.
|
||||
Version: 1.0.7-wpcom
|
||||
Version: 1.0.12-wpcom
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: canard
|
||||
|
|
|
@ -12,10 +12,22 @@
|
|||
itemWidth: 1180,
|
||||
itemHeight: 600,
|
||||
smoothHeight: true,
|
||||
selector: '.slides > .hero-content-wrapper'
|
||||
selector: '.slides > .hero-content-wrapper',
|
||||
start: function(){
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
},
|
||||
} );
|
||||
}
|
||||
|
||||
$(document).on( 'ready', loadFlexslider );
|
||||
function refreshFlexslider() {
|
||||
$( '.flex-viewport-wrapper' ).imagesLoaded( function() {
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on( 'ready', function() {
|
||||
loadFlexslider();
|
||||
refreshFlexslider();
|
||||
} );
|
||||
|
||||
} )(jQuery);
|
||||
|
|
484
dara/blocks.css
Normal file
484
dara/blocks.css
Normal file
|
@ -0,0 +1,484 @@
|
|||
/*
|
||||
Theme Name: Dara
|
||||
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 {
|
||||
clear: both;
|
||||
font-size: 15px;
|
||||
font-style: italic;
|
||||
margin: 0.8em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
p.has-drop-cap:not(:focus)::first-letter {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
/* Image */
|
||||
|
||||
.wp-block-image .aligncenter img {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* Gallery */
|
||||
|
||||
.wp-block-gallery {
|
||||
margin-bottom: 1.6em;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.wp-block-gallery figcaption {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
blockquote cite {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-quote,
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-quote cite {
|
||||
display: block;
|
||||
font-family: "Source Sans Pro", Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
margin: .4em 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.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 {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large,
|
||||
.wp-block-quote.is-style-large {
|
||||
padding-left: 1.6em;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.rtl .wp-block-quote.is-large cite,
|
||||
.rtl .wp-block-quote.is-large footer,
|
||||
.rtl .wp-block-quote.is-style-large cite,
|
||||
.rtl .wp-block-quote.is-style-large footer {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.rtl .wp-block-quote.is-large,
|
||||
.rtl .wp-block-quote.is-style-large {
|
||||
padding-left: 0;
|
||||
padding-right: 1.6em;
|
||||
}
|
||||
|
||||
|
||||
/* Audio */
|
||||
|
||||
.wp-block-audio audio {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Cover */
|
||||
|
||||
.wp-block-cover,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright,
|
||||
.wp-block-cover.aligncenter {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file .wp-block-file__button,
|
||||
.wp-block-file .wp-block-file__button:visited {
|
||||
background-color: #15b6b8;
|
||||
border-style: none;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
line-height: 2;
|
||||
padding: .25em 1em .4em;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
text-transform: uppercase;
|
||||
border-radius: 3px;
|
||||
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:focus {
|
||||
opacity: 0.85;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Formatting Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse {
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
font-style: italic;
|
||||
line-height: inherit;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* Preformatted */
|
||||
|
||||
.wp-block-preformatted {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
border: none;
|
||||
font-family: "Yrsa", Georgia, serif;
|
||||
font-size: 32px;
|
||||
font-style: normal;
|
||||
margin-left: 0;
|
||||
margin-bottom: 1.6em;
|
||||
padding-left: 1.6em;
|
||||
padding-right: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft {
|
||||
margin-right: 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignright p {
|
||||
margin-left: 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft p,
|
||||
.wp-block-pullquote.alignright p {
|
||||
font-size: 23px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-pullquote blockquote {
|
||||
border: 0;
|
||||
padding-right: 1.6em;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border-style: none;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
line-height: 2;
|
||||
padding: .25em 1em .4em;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
text-transform: uppercase;
|
||||
border-radius: 3px;
|
||||
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
|
||||
-webkit-appearance: 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 {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
background-color: #15b6b8;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):focus {
|
||||
background-color: #15b6b8;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.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-color: #15b6b8;
|
||||
}
|
||||
|
||||
/* Seperator */
|
||||
|
||||
hr.wp-block-separator {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.wp-block-separator {
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin: 1.6em auto;
|
||||
background-color: #e6e6e6;
|
||||
max-width: 66%;
|
||||
}
|
||||
|
||||
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 100px;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
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;
|
||||
}
|
||||
|
||||
/* Categories */
|
||||
|
||||
.wp-block-categories.aligncenter {
|
||||
margin-left: 1.6em;
|
||||
margin-right: 1.6em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-block-categories-list.alignleft {
|
||||
margin-left: 1.6em;
|
||||
}
|
||||
|
||||
/* Latest Comments */
|
||||
|
||||
.wp-block-latest-comments {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments,
|
||||
.wp-block-latest-comments__comment-excerpt p,
|
||||
.wp-block-latest-comments__comment-date {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.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 #e6e6e6;
|
||||
margin-bottom: 0;
|
||||
padding: 1.6em 0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Latest Posts */
|
||||
|
||||
.wp-block-latest-posts.is-grid {
|
||||
margin-left: 0;
|
||||
margin-right: 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: #444340;
|
||||
}
|
||||
|
||||
.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: #444340;
|
||||
}
|
||||
|
||||
.has-medium-gray-color,
|
||||
.has-medium-gray-color:hover,
|
||||
.has-medium-gray-color:focus,
|
||||
.has-medium-gray-color:active {
|
||||
color: #a8a6a1;
|
||||
}
|
||||
|
||||
.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: #a8a6a1;
|
||||
}
|
||||
|
||||
.has-light-gray-color,
|
||||
.has-light-gray-color:hover,
|
||||
.has-light-gray-color:focus,
|
||||
.has-light-gray-color:active {
|
||||
color: #e6e6e6;
|
||||
}
|
||||
|
||||
.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: #e6e6e6;
|
||||
}
|
||||
|
||||
.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-blue-color,
|
||||
.has-blue-color:hover,
|
||||
.has-blue-color:focus,
|
||||
.has-blue-color:active {
|
||||
color: #15b6b8;
|
||||
}
|
||||
|
||||
.has-blue-background-color,
|
||||
.has-blue-background-color:hover,
|
||||
.has-blue-background-color:focus,
|
||||
.has-blue-background-color:active {
|
||||
background-color: #15b6b8;
|
||||
}
|
||||
|
||||
.has-dark-blue-color,
|
||||
.has-dark-blue-color:hover,
|
||||
.has-dark-blue-color:focus,
|
||||
.has-dark-blue-color:active {
|
||||
color: #0c8384;
|
||||
}
|
||||
|
||||
.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: #0c8384;
|
||||
}
|
||||
|
||||
.has-black-color,
|
||||
.has-black-color:hover,
|
||||
.has-black-color:focus,
|
||||
.has-black-color:active {
|
||||
color: #404040;
|
||||
}
|
||||
|
||||
.has-black-background-color,
|
||||
.has-black-background-color:hover,
|
||||
.has-black-background-color:focus,
|
||||
.has-black-background-color:active {
|
||||
background-color: #404040;
|
||||
}
|
||||
|
874
dara/editor-blocks.css
Normal file
874
dara/editor-blocks.css
Normal file
|
@ -0,0 +1,874 @@
|
|||
|
||||
/*
|
||||
* Theme Name: Dara
|
||||
* Description: Gutenberg Block Editor Styles
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
2.0 General Block Styles
|
||||
3.0 Blocks - Common Blocks
|
||||
4.0 Blocks - Formatting
|
||||
5.0 Blocks - Layout Elements
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.edit-post-visual-editor .editor-block-list__block p,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
font-family: "Source Sans Pro", Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block {
|
||||
color: #444340;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 850px) {
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.edit-post-visual-editor .editor-block-list__block p,
|
||||
.editor-default-block-appender textarea.editor-default-block-appender__content {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.alignleft {
|
||||
margin-right: 1.6em;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
margin-left: 1.6em;
|
||||
}
|
||||
|
||||
/* Title */
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
clear: both;
|
||||
font-family: "Yrsa", sans-serif;
|
||||
margin-bottom: .8em;
|
||||
font-size: 23px;
|
||||
font-weight: normal;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 850px ) {
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
|
||||
.edit-post-visual-editor h1,
|
||||
.edit-post-visual-editor h2,
|
||||
.edit-post-visual-editor h3,
|
||||
.edit-post-visual-editor h4,
|
||||
.edit-post-visual-editor h5,
|
||||
.edit-post-visual-editor h6 {
|
||||
clear: both;
|
||||
font-family: "Yrsa", sans-serif;
|
||||
font-weight: 300;
|
||||
margin-bottom: .8em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h1 {
|
||||
font-size: 29px;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h2 {
|
||||
font-size: 23px;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h5 {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h6 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 850px) {
|
||||
|
||||
.edit-post-visual-editor h1 {
|
||||
font-size: 47px;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h2 {
|
||||
font-size: 29px;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h3 {
|
||||
font-size: 23px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h5 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h6 {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Paragraphs */
|
||||
|
||||
.edit-post-visual-editor p {
|
||||
margin: 0 0 1.6em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor blockquote p {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
2.0 General Block Styles
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Main column width */
|
||||
|
||||
.wp-block {
|
||||
max-width: 705px; /* 675px + 30px to account for padding */
|
||||
}
|
||||
|
||||
/* Link styles */
|
||||
|
||||
.edit-post-visual-editor a,
|
||||
.editor-block-list__block a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a {
|
||||
color: #15b6b8;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:hover,
|
||||
.edit-post-visual-editor a:focus,
|
||||
.edit-post-visual-editor a:active,
|
||||
.editor-block-list__block a:hover,
|
||||
.editor-block-list__block a:focus,
|
||||
.editor-block-list__block a:active,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:hover,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:focus,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a:active {
|
||||
color: #a8a6a1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* List styles */
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul,
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol {
|
||||
margin: 0 0 1.6em 1.6em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li,
|
||||
.edit-post-visual-editor ol li,
|
||||
.editor-block-list__block ol li,
|
||||
.block-library-list li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
|
||||
.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
|
||||
.block-library-list li > ul,
|
||||
.edit-post-visual-editor li > ol,
|
||||
.editor-block-list__block li > ol,
|
||||
.block-library-list li > ol {
|
||||
margin-bottom: 0;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.rtl .editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.rtl .block-library-list ul,
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 0;
|
||||
margin-right: 1em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 0;
|
||||
margin-right: 1.6em;
|
||||
}
|
||||
|
||||
/* Captions */
|
||||
|
||||
[class^="wp-block-"] figcaption {
|
||||
color: #686868;
|
||||
font-size: 15px;
|
||||
font-style: italic;
|
||||
line-height: 1.6153846154;
|
||||
padding-top: 0.5384615385em;
|
||||
}
|
||||
|
||||
/* Definition List styles */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
/* Images */
|
||||
|
||||
.wp-block-image figcaption {
|
||||
font-size: 15px;
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border: 0;
|
||||
padding-left: 2.4em;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote {
|
||||
border: none;
|
||||
margin-left: 0;
|
||||
margin-bottom: 1.6em;
|
||||
padding-left: 2.4em;
|
||||
padding-right: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block blockquote p {
|
||||
font-family: "Yrsa", Georgia, serif;
|
||||
font-size: 23px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote:before {
|
||||
color: #ccc;
|
||||
content: "\201C";
|
||||
font-family: "Yrsa", Georgia, serif;
|
||||
font-size: 140px;
|
||||
font-style: normal;
|
||||
line-height: 1;
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote__citation {
|
||||
color: inherit;
|
||||
display: block;
|
||||
font-family: "Source Sans Pro", Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin: .4em 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
padding-left: 0;
|
||||
padding-right: 2.4em;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-quote.is-large,
|
||||
.rtl .editor-block-list__block .wp-block-quote.is-style-large {
|
||||
padding-left: 0;
|
||||
padding-right: 1.6em;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-quote:before {
|
||||
position: absolute;
|
||||
left: auto;
|
||||
right: -10px;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote em,
|
||||
.editor-block-list__block .wp-block-quote i,
|
||||
.editor-block-list__block .wp-block-quote__citation:before {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.alignleft {
|
||||
margin: .8em 1.6em .8em 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.alignright {
|
||||
margin: .8em 0 .8em 1.6em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.aligncenter {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large,
|
||||
.wp-block-quote.is-style-large {
|
||||
padding-left: 1.6em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
|
||||
font-style: normal;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote.is-large p,
|
||||
.editor-block-list__block .wp-block-quote.is-style-large p {
|
||||
margin-bottom: .8em;
|
||||
}
|
||||
|
||||
/* Cover */
|
||||
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
|
||||
font-size: 2.0em; /* Cover images inherit the paragraph size; this resets it */
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file__textlink {
|
||||
box-shadow: 0 1px 0 0 currentColor;
|
||||
color: #15b6b8;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background-color: #15b6b8;
|
||||
border-style: none;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
line-height: 2;
|
||||
padding: .25em 1em .4em;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
text-transform: uppercase;
|
||||
border-radius: 3px;
|
||||
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse pre {
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
font-style: italic;
|
||||
line-height: inherit;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
background: #f2f2f2;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
}
|
||||
|
||||
.wp-block-code textarea {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Classic */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
border: none;
|
||||
font-family: "Yrsa", Georgia, serif;
|
||||
font-size: 23px;
|
||||
font-style: normal;
|
||||
margin-left: 0;
|
||||
margin-bottom: 1.6em;
|
||||
padding-left: 2.4em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
|
||||
color: #ccc;
|
||||
content: "\201C";
|
||||
font-family: "Yrsa", Georgia, serif;
|
||||
font-size: 140px;
|
||||
font-style: normal;
|
||||
line-height: 1;
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
|
||||
display: block;
|
||||
font-family: "Source Sans Pro", Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin: .4em 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
margin-right: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 2.4em;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
left: auto;
|
||||
right: -10px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
margin: .75em 1.6em .75em 0;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
margin: .75em 0 .75em 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
font-size: 29px;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
font-size: 23px;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 850px) {
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h1 {
|
||||
font-size: 47px;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h2 {
|
||||
font-size: 29px;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h3 {
|
||||
font-size: 23px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h5 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce h6 {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce pre {
|
||||
background: #f2f2f2;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 15px;
|
||||
max-width: 100%;
|
||||
margin-bottom: 1.6em;
|
||||
overflow-x: scroll;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table {
|
||||
border: 0;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-collapse: collapse;
|
||||
margin: 0 0 1.6em 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce .alternate {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table td {
|
||||
border: 0;
|
||||
border-top: 1px solid #eee;
|
||||
padding: 0.4em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
border: 0;
|
||||
font-weight: bold;
|
||||
padding: 0.4em;
|
||||
text-transform: uppercase;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce table th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Preformatted */
|
||||
|
||||
.editor-block-list__block .wp-block-preformatted pre {
|
||||
background: #f2f2f2;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 15px;
|
||||
max-width: 100%;
|
||||
margin-bottom: 1.6em;
|
||||
overflow-x: scroll;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.editor-block-list__block .wp-block-pullquote blockquote:before {
|
||||
color: #ccc;
|
||||
content: "\201C";
|
||||
font-family: "Yrsa", Georgia, serif;
|
||||
font-size: 140px;
|
||||
font-style: normal;
|
||||
line-height: 1;
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-pullquote blockquote {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .wp-block-pullquote p {
|
||||
font-family: "Yrsa", Georgia, serif;
|
||||
font-size: 23px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
border: none;
|
||||
margin-left: 0;
|
||||
margin-bottom: 1.6em;
|
||||
padding: 0 0 0 1.6em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft {
|
||||
margin-right: 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignright {
|
||||
margin-left: 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote > .editor-rich-text p {
|
||||
color: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
|
||||
.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
|
||||
font-size: 23px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation {
|
||||
display: block;
|
||||
font-family: "Source Sans Pro", Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin: .4em 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation:before {
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-pullquote blockquote {
|
||||
border: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 1.6em;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block .wp-block-pullquote blockquote:before {
|
||||
right: -10px;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
/* Table */
|
||||
|
||||
.editor-block-list__block table.wp-block-table {
|
||||
display: table;
|
||||
border-bottom: 1px solid #eee;
|
||||
margin: 0 0 1.6em 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-block-list__block table.wp-block-table td {
|
||||
border: 0;
|
||||
border-top: 1px solid #eee;
|
||||
padding: 0.4em;
|
||||
}
|
||||
|
||||
.editor-block-list__block table.wp-block-table th {
|
||||
border: 0;
|
||||
font-weight: bold;
|
||||
padding: 0.4em;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.rtl .editor-block-list__block table.wp-block-table th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.wp-block-table__cell-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border-style: none;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
line-height: 2;
|
||||
padding: .25em 1em .4em;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
text-transform: uppercase;
|
||||
border-radius: 3px;
|
||||
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.wp-block-button .editor-rich-text__tinymce.mce-content-body {
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link:active,
|
||||
.wp-block-button .wp-block-button__link:hover,
|
||||
.wp-block-button .wp-block-button__link:focus {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
background-color: #15b6b8;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):focus {
|
||||
background-color: #15b6b8;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.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-color: #15b6b8;
|
||||
}
|
||||
|
||||
/* Separator */
|
||||
|
||||
.wp-block-separator {
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin: 1.6em auto;
|
||||
background-color: #e6e6e6;
|
||||
max-width: 66%;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* General Widget styles */
|
||||
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-archives,
|
||||
.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/* Categories */
|
||||
|
||||
.editor-block-list__block[data-align=right] .wp-block-categories__list,
|
||||
.editor-block-list__block[data-align=left] .wp-block-categories__list {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Latest Comments */
|
||||
|
||||
.rtl .edit-post-visual-editor .wp-block-latest-comments {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment,
|
||||
.wp-block-latest-comments__comment-date,
|
||||
.edit-post-visual-editor .editor-block-list__block .wp-block-latest-comments__comment-excerpt p {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment {
|
||||
border-top: 1px solid #e6e6e6;
|
||||
margin-bottom: 0;
|
||||
padding: 1.6em 0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Latest Posts */
|
||||
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
|
||||
margin-bottom: 1em;
|
||||
}
|
|
@ -54,6 +54,50 @@ function dara_setup() {
|
|||
// Testimonial thumbnail
|
||||
add_image_size( 'dara-testimonial-thumbnail', 180, 180, true );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add custom colors to Gutenberg
|
||||
add_theme_support(
|
||||
'editor-color-palette', array(
|
||||
array(
|
||||
'name' => esc_html__( 'Black', 'dara' ),
|
||||
'slug' => 'black',
|
||||
'color' => '#404040',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Dark Gray', 'dara' ),
|
||||
'slug' => 'dark-gray',
|
||||
'color' => '#444340',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Medium Gray', 'dara' ),
|
||||
'slug' => 'medium-gray',
|
||||
'color' => '#a8a6a1',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Light Gray', 'dara' ),
|
||||
'slug' => 'light-gray',
|
||||
'color' => '#e6e6e6',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'White', 'dara' ),
|
||||
'slug' => 'white',
|
||||
'color' => '#ffffff',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Blue', 'dara' ),
|
||||
'slug' => 'blue',
|
||||
'color' => '#15b6b8',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Dark Blue', 'dara' ),
|
||||
'slug' => 'dark-blue',
|
||||
'color' => '#0c8384',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// This theme uses wp_nav_menu() in one location.
|
||||
register_nav_menus( array(
|
||||
'menu-1' => esc_html__( 'Header', 'dara' ),
|
||||
|
@ -219,6 +263,9 @@ add_action( 'widgets_init', 'dara_widgets_init' );
|
|||
function dara_scripts() {
|
||||
wp_enqueue_style( 'dara-style', get_stylesheet_uri() );
|
||||
|
||||
// Gutenberg styles
|
||||
wp_enqueue_style( 'dara-blocks', get_template_directory_uri() . '/blocks.css' );
|
||||
|
||||
// Add Yrsa, Source Sans Pro and Merriweather fonts.
|
||||
wp_enqueue_style( 'dara-fonts', dara_fonts_url(), array(), null );
|
||||
|
||||
|
@ -228,7 +275,7 @@ function dara_scripts() {
|
|||
|
||||
if ( dara_has_featured_posts( 1 ) && ( is_home() || is_front_page() ) ) {
|
||||
wp_enqueue_script( 'flexslider', get_template_directory_uri() . '/assets/js/jquery.flexslider.js', array( 'jquery' ), '20161220', true );
|
||||
wp_enqueue_script( 'dara-slider', get_template_directory_uri() . '/assets/js/slider.js', array( 'flexslider' ), '20161220', true );
|
||||
wp_enqueue_script( 'dara-slider', get_template_directory_uri() . '/assets/js/slider.js', array( 'flexslider', 'imagesloaded' ), '20161220', true );
|
||||
}
|
||||
|
||||
// If there's an active Video widget, and it's (hopefully) in the footer widget area
|
||||
|
@ -244,6 +291,16 @@ function dara_scripts() {
|
|||
}
|
||||
add_action( 'wp_enqueue_scripts', 'dara_scripts' );
|
||||
|
||||
/**
|
||||
* Gutenberg Editor Styles
|
||||
*/
|
||||
function dara_editor_styles() {
|
||||
wp_enqueue_style( 'dara-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');
|
||||
wp_enqueue_style( 'dara-fonts', dara_fonts_url() );
|
||||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.3' );
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'dara_editor_styles' );
|
||||
|
||||
if ( ! function_exists( 'dara_continue_reading_link' ) ) :
|
||||
/**
|
||||
* Returns an ellipsis and "Continue reading" plus off-screen title link for excerpts
|
||||
|
|
|
@ -89,7 +89,7 @@ if ( function_exists( 'jetpack_is_mobile' ) && class_exists( 'Jetpack_User_Agent
|
|||
* Custom render function for Infinite Scroll.
|
||||
*/
|
||||
function dara_infinite_scroll_render() {
|
||||
if ( class_exists( 'WooCommerce' ) && ( is_shop() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
if ( class_exists( 'WooCommerce' ) && ( dara_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
dara_woocommerce_product_columns_wrapper();
|
||||
woocommerce_product_loop_start();
|
||||
}
|
||||
|
@ -100,14 +100,14 @@ function dara_infinite_scroll_render() {
|
|||
get_template_part( 'components/post/content', 'search' );
|
||||
elseif ( is_post_type_archive( 'jetpack-testimonial' ) ) :
|
||||
get_template_part( 'components/testimonials/content', 'testimonial' );
|
||||
elseif ( class_exists( 'WooCommerce' ) && ( is_shop() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) :
|
||||
elseif ( class_exists( 'WooCommerce' ) && ( dara_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) :
|
||||
wc_get_template_part( 'content', 'product' );
|
||||
else :
|
||||
get_template_part( 'components/post/content', get_post_format() );
|
||||
endif;
|
||||
}
|
||||
|
||||
if ( class_exists( 'WooCommerce' ) && ( is_shop() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
if ( class_exists( 'WooCommerce' ) && ( dara_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
||||
woocommerce_product_loop_end();
|
||||
dara_woocommerce_product_columns_wrapper_close();
|
||||
}
|
||||
|
|
|
@ -47,6 +47,10 @@
|
|||
.widget_authors > ul > li ul a {
|
||||
text-align: left;
|
||||
}
|
||||
.widget_authors > ul > li strong {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
.widget_authors li:before,
|
||||
.widget_authors li:after {
|
||||
content: "";
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue