-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
101 changed files
with
19,556 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
node_modules | ||
|
||
dist | ||
artifact | ||
|
||
assets/css/build | ||
assets/js/build | ||
|
||
*.log | ||
*.map | ||
/vendor/ | ||
|
||
languages/fork.pot | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": [ | ||
"@wordpress/stylelint-config/scss" | ||
], | ||
"rules": { | ||
"no-invalid-position-at-import-rule": null, | ||
"no-descending-specificity": null, | ||
"selector-class-pattern": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
const path = require( 'path' ); | ||
|
||
const paths = { | ||
global: { | ||
config: path.join( __dirname, 'grunt/' ), | ||
grunt: path.join( __dirname, 'grunt/' ), | ||
}, | ||
config: 'grunt/', | ||
grunt: 'grunt/', | ||
languages: 'languages/', | ||
logs: 'logs/', | ||
images: 'images/', | ||
vendor: 'packages/', | ||
css: 'assets/css/', | ||
}; | ||
|
||
const taskMap = { | ||
rtlcss: 'grunt-rtlcss', | ||
sass: 'grunt-contrib-sass', | ||
watch: 'grunt-contrib-watch', | ||
addtextdomain: 'grunt-wp-i18n', | ||
postcss: '@lodder/grunt-postcss', | ||
wp_readme_to_markdown: 'grunt-wp-readme-to-markdown', | ||
}; | ||
|
||
const files = { | ||
php: [ | ||
'*.php', | ||
'**/*.php', | ||
'!.git/**', | ||
'!vendor/**', | ||
'!node_modules/**', | ||
'!logs/**', | ||
], | ||
css: [ | ||
'*.css', | ||
'**/*.css', | ||
'!*.min.css', | ||
'!**/*.min.css', | ||
'!vendor/**', | ||
'!node_modules/**', | ||
'!logs/**', | ||
], | ||
js: [ | ||
'*.js', | ||
'**/*.js', | ||
'!*.min.js', | ||
'!**/*.min.js', | ||
'!.git/**', | ||
'!vendor/**', | ||
'!node_modules/**', | ||
'!logs/**', | ||
], | ||
}; | ||
|
||
const gruntConfig = ( grunt ) => { | ||
'use strict'; | ||
|
||
const config = {}; | ||
const loader = require( 'load-project-config' ); | ||
|
||
config.paths = paths; | ||
config.taskMap = taskMap; | ||
config.files = files; | ||
loader( grunt, config ).init(); | ||
}; | ||
|
||
module.exports = gruntConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
%figcaption { | ||
text-align: left; | ||
font-size: var(--wp--preset--font-size--small); | ||
} | ||
|
||
.wp-block-image { | ||
|
||
&.aligncenter { | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
&.alignleft { | ||
float: left; | ||
margin-right: 2em; | ||
} | ||
|
||
&.alignright { | ||
float: right; | ||
margin-left: 2em; | ||
} | ||
} | ||
|
||
// Gallery & Image captions. | ||
.wp-block-gallery.has-nested-images, | ||
figure.wp-block-image { | ||
|
||
figcaption { | ||
|
||
@extend %figcaption; | ||
color: var(--wp--preset--color--ti-fg); | ||
opacity: 0.6; | ||
} | ||
} | ||
|
||
// Gallery image captions | ||
.wp-block-gallery.has-nested-images { | ||
|
||
figure.wp-block-image { | ||
|
||
figcaption { | ||
|
||
@extend %figcaption; | ||
background: rgba(0, 0, 0, 0.3); | ||
margin: 0; | ||
padding: 8px; | ||
opacity: 1; | ||
} | ||
|
||
&.is-style-rounded { | ||
|
||
figcaption { | ||
opacity: 0.6; | ||
background: 0; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.wp-block-latest-posts { | ||
|
||
img { | ||
display: block; | ||
} | ||
|
||
.wp-block-latest-posts__post-title { | ||
display: block; | ||
font-size: var(--wp--preset--font-size--medium); | ||
font-weight: 600; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.wp-block-latest-posts__post-author, | ||
time { | ||
font-size: var(--wp--preset--font-size--small); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@import "site-title"; | ||
@import "image"; | ||
@import "separator"; | ||
@import "post-terms"; | ||
@import "query-pagination"; | ||
@import "search"; | ||
@import "navigation"; | ||
@import "latest-posts"; | ||
@import "table"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Overwrite the selector... | ||
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open { | ||
background: var(--wp--preset--color--ti-bg); | ||
color: var(--wp--preset--color--ti-fg); | ||
} | ||
|
||
.wp-block-navigation__responsive-container.is-menu-open { | ||
--navigation-layout-justification-setting: center; | ||
|
||
> .wp-block-navigation__container { | ||
gap: 0; | ||
} | ||
|
||
// Root menu. | ||
.wp-block-navigation__container { | ||
gap: 24px !important; | ||
|
||
> li > a { | ||
font-size: var(--wp--preset--font-size--large) !important; | ||
} | ||
} | ||
|
||
// Submenu. | ||
.wp-block-navigation__submenu-container { | ||
gap: 24px !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.wp-block-post-terms { | ||
display: flex; | ||
flex-wrap: wrap; | ||
|
||
&.taxonomy-category { | ||
|
||
a { | ||
padding: 8px 24px; | ||
margin: 5px; | ||
background-color: var(--wp--preset--color--ti-bg-alt); | ||
border-radius: 25px; | ||
} | ||
|
||
.wp-block-post-terms__separator { | ||
display: none; | ||
} | ||
} | ||
|
||
|
||
&.has-text-align-center { | ||
justify-content: center; | ||
} | ||
|
||
&.has-text-align-right { | ||
justify-content: flex-end; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.wp-block-query-pagination-numbers { | ||
|
||
.page-numbers:not(:last-child) { | ||
margin-right: 16px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.wp-block-search { | ||
|
||
&.wp-block-search__button-inside .wp-block-search__inside-wrapper { | ||
|
||
@extend %input-base; | ||
} | ||
|
||
.wp-block-search__button { | ||
background: var(--wp--preset--color--ti-accent); | ||
color: var(--wp--preset--color--ti-fg-alt); | ||
border-color: var(--wp--preset--color--ti-accent); | ||
border-radius: 5px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.wp-block-separator { | ||
|
||
&.is-style-wide { | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.wp-block-site-title { | ||
|
||
a { | ||
//text-decoration: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.wp-block-table { | ||
|
||
&.is-style-stripes tbody tr:nth-child(odd) { | ||
background-color: var(--wp--preset--color--ti-bg-alt); | ||
} | ||
|
||
thead { | ||
border-bottom: 2px solid; | ||
} | ||
|
||
tfoot { | ||
border-top: 2px solid; | ||
} | ||
|
||
figcaption { | ||
font-size: var(--wp--preset--font-size--small); | ||
color: var(--wp--preset--color--ti-fg); | ||
opacity: 0.6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
|
||
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
.wp-site-blocks { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
// Push footer to bottom. | ||
footer { | ||
margin-block-start: auto !important; | ||
} | ||
|
||
.wp-block-spacer { | ||
margin-block-start: 0 !important; | ||
} | ||
|
||
/* | ||
* Alignment styles. | ||
* | ||
* Relevant issues: | ||
* https://github.com/WordPress/gutenberg/issues/35607 | ||
* https://github.com/WordPress/gutenberg/issues/35884 | ||
*/ | ||
|
||
.wp-site-blocks, | ||
body > .is-root-container, | ||
.edit-post-visual-editor__post-title-wrapper, | ||
.wp-block-group.alignfull, | ||
.wp-block-group.has-background, | ||
.wp-block-cover.alignfull, | ||
.is-root-container .wp-block[data-align="full"] > .wp-block-group, | ||
.is-root-container .wp-block[data-align="full"] > .wp-block-cover { | ||
padding-left: var(--wp--custom--spacing--outer); | ||
padding-right: var(--wp--custom--spacing--outer); | ||
} | ||
|
||
.wp-site-blocks .alignfull, | ||
.wp-site-blocks > .wp-block-group.has-background, | ||
.wp-site-blocks > .wp-block-cover, | ||
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background, | ||
.wp-site-blocks > .wp-block-template-part > .wp-block-cover, | ||
body > .is-root-container > .wp-block-cover, | ||
body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background, | ||
body > .is-root-container > .wp-block-template-part > .wp-block-cover, | ||
.is-root-container .wp-block[data-align="full"] { | ||
margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important; | ||
margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important; | ||
width: unset; | ||
} |
Oops, something went wrong.