first commit
This commit is contained in:
48
wp-includes/blocks/calendar/block.json
Normal file
48
wp-includes/blocks/calendar/block.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/calendar",
|
||||
"title": "Calendar",
|
||||
"category": "widgets",
|
||||
"description": "A calendar of your site’s posts.",
|
||||
"keywords": [ "posts", "archive" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"month": {
|
||||
"type": "integer"
|
||||
},
|
||||
"year": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"link": true,
|
||||
"__experimentalSkipSerialization": [ "text", "background" ],
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true
|
||||
},
|
||||
"__experimentalSelector": "table, th"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalFontStyle": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalLetterSpacing": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
},
|
||||
"style": "wp-block-calendar"
|
||||
}
|
||||
38
wp-includes/blocks/calendar/style-rtl.css
Normal file
38
wp-includes/blocks/calendar/style-rtl.css
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
.wp-block-calendar {
|
||||
text-align: center;
|
||||
}
|
||||
.wp-block-calendar th,
|
||||
.wp-block-calendar td {
|
||||
padding: 0.25em;
|
||||
border: 1px solid;
|
||||
}
|
||||
.wp-block-calendar th {
|
||||
font-weight: 400;
|
||||
}
|
||||
.wp-block-calendar caption {
|
||||
background-color: inherit;
|
||||
}
|
||||
.wp-block-calendar table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.wp-block-calendar table.has-background th {
|
||||
background-color: inherit;
|
||||
}
|
||||
.wp-block-calendar table.has-text-color th {
|
||||
color: inherit;
|
||||
}
|
||||
.wp-block-calendar :where(table:not(.has-text-color)) {
|
||||
color: #40464d;
|
||||
}
|
||||
.wp-block-calendar :where(table:not(.has-text-color)) th,
|
||||
.wp-block-calendar :where(table:not(.has-text-color)) td {
|
||||
border-color: #ddd;
|
||||
}
|
||||
|
||||
:where(.wp-block-calendar table:not(.has-background) th) {
|
||||
background: #ddd;
|
||||
}
|
||||
1
wp-includes/blocks/calendar/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/calendar/style-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}.wp-block-calendar :where(table:not(.has-text-color)){color:#40464d}.wp-block-calendar :where(table:not(.has-text-color)) td,.wp-block-calendar :where(table:not(.has-text-color)) th{border-color:#ddd}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}
|
||||
38
wp-includes/blocks/calendar/style.css
Normal file
38
wp-includes/blocks/calendar/style.css
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
.wp-block-calendar {
|
||||
text-align: center;
|
||||
}
|
||||
.wp-block-calendar th,
|
||||
.wp-block-calendar td {
|
||||
padding: 0.25em;
|
||||
border: 1px solid;
|
||||
}
|
||||
.wp-block-calendar th {
|
||||
font-weight: 400;
|
||||
}
|
||||
.wp-block-calendar caption {
|
||||
background-color: inherit;
|
||||
}
|
||||
.wp-block-calendar table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.wp-block-calendar table.has-background th {
|
||||
background-color: inherit;
|
||||
}
|
||||
.wp-block-calendar table.has-text-color th {
|
||||
color: inherit;
|
||||
}
|
||||
.wp-block-calendar :where(table:not(.has-text-color)) {
|
||||
color: #40464d;
|
||||
}
|
||||
.wp-block-calendar :where(table:not(.has-text-color)) th,
|
||||
.wp-block-calendar :where(table:not(.has-text-color)) td {
|
||||
border-color: #ddd;
|
||||
}
|
||||
|
||||
:where(.wp-block-calendar table:not(.has-background) th) {
|
||||
background: #ddd;
|
||||
}
|
||||
1
wp-includes/blocks/calendar/style.min.css
vendored
Normal file
1
wp-includes/blocks/calendar/style.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}.wp-block-calendar :where(table:not(.has-text-color)){color:#40464d}.wp-block-calendar :where(table:not(.has-text-color)) td,.wp-block-calendar :where(table:not(.has-text-color)) th{border-color:#ddd}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}
|
||||
Reference in New Issue
Block a user