mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 21:54:17 +01:00
ee10ddb605
The table font size wasn't reflecting in editor and front. What this does is keep the default and adds in an inherit. Props umesh84, desrosj, shailu25, harshgajipara, darshitrajyaguru97, itpathsolutions. Fixes #56204. Built from https://develop.svn.wordpress.org/trunk@58103 git-svn-id: http://core.svn.wordpress.org/trunk@57568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
555 lines
14 KiB
CSS
555 lines
14 KiB
CSS
/*
|
|
Theme Name: Twenty Thirteen
|
|
Description: Used to style 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 - Colors
|
|
--------------------------------------------------------------*/
|
|
|
|
/*--------------------------------------------------------------
|
|
1.0 Block Alignments
|
|
--------------------------------------------------------------*/
|
|
|
|
.editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit figure {
|
|
width: auto;
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
2.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: 400;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.edit-post-visual-editor .editor-block-list__block {
|
|
color: #141412;
|
|
}
|
|
|
|
.editor-post-title__block .editor-post-title__input {
|
|
font-family: Bitter, Georgia, serif;
|
|
font-size: 48px;
|
|
font-weight: 300;
|
|
line-height: 1.0909090909;
|
|
margin-bottom: 12px;
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
3.0 General Block Styles
|
|
--------------------------------------------------------------*/
|
|
|
|
/* Main content width */
|
|
|
|
.wp-block {
|
|
max-width: 634px; /* 604px + 30px to account for padding */
|
|
}
|
|
|
|
.wp-block.alignwide,
|
|
.wp-block.alignfull {
|
|
max-width: inherit;
|
|
}
|
|
|
|
[class^="wp-block-"] .wp-block {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Link styles */
|
|
|
|
.edit-post-visual-editor a,
|
|
.editor-block-list__block a,
|
|
.wp-block-freeform.block-library-rich-text__tinymce a {
|
|
color: #bc360a;
|
|
}
|
|
|
|
/* List styles */
|
|
|
|
.edit-post-visual-editor ul:not(.wp-block-gallery):not(.wp-block-post-template),
|
|
.editor-block-list__block ul:not(.wp-block-gallery):not(.wp-block-post-template),
|
|
.block-library-list ul,
|
|
.edit-post-visual-editor ol,
|
|
.editor-block-list__block ol,
|
|
.block-library-list ol,
|
|
.block-library-list .editor-rich-text__tinymce {
|
|
padding: 0;
|
|
}
|
|
|
|
.edit-post-visual-editor ul:not(.wp-block-gallery):not(.wp-block-post-template),
|
|
.edit-post-visual-editor .editor-block-list__block ul:not(.wp-block-gallery):not(.wp-block-post-template),
|
|
.block-library-list ul {
|
|
list-style-type: square;
|
|
}
|
|
|
|
.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 > 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: 0;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.editor-styles-wrapper ul.block-editor-block-list__block:not(.wp-block-post-template),
|
|
.editor-styles-wrapper ol.block-editor-block-list__block:not(.wp-block-post-template),
|
|
.editor-styles-wrapper ol ul:not(.wp-block-gallery):not(.wp-block-post-template),
|
|
.editor-styles-wrapper ul ul:not(.wp-block-gallery):not(.wp-block-post-template),
|
|
.editor-styles-wrapper ul ol,
|
|
.editor-styles-wrapper ol ol,
|
|
.wp-block-freeform.block-library-rich-text__tinymce ul,
|
|
.wp-block-freeform.block-library-rich-text__tinymce ol {
|
|
padding: 0 0 0 40px;
|
|
}
|
|
|
|
.rtl .editor-styles-wrapper ul.block-editor-block-list__block:not(.wp-block-post-template),
|
|
.rtl .editor-styles-wrapper ol.block-editor-block-list__block:not(.wp-block-post-template),
|
|
.rtl .editor-styles-wrapper ol ul:not(.wp-block-gallery):not(.wp-block-post-template),
|
|
.rtl .editor-styles-wrapper ul ul:not(.wp-block-gallery):not(.wp-block-post-template),
|
|
.rtl .editor-styles-wrapper ul ol,
|
|
.rtl .editor-styles-wrapper ol ol,
|
|
.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
|
|
.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
|
|
padding: 0 40px 0 0;
|
|
}
|
|
|
|
/* Quote */
|
|
|
|
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
|
border-left: 0;
|
|
border-right: 0;
|
|
font-style: italic;
|
|
margin: 24px 40px;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
|
|
font-size: 24px;
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* Table */
|
|
|
|
.rtl .editor-block-list__block table th,
|
|
.rtl .editor-block-list__block table td {
|
|
text-align: right;
|
|
}
|
|
|
|
/* Code */
|
|
|
|
.wp-block-freeform.block-library-rich-text__tinymce code,
|
|
.editor-styles-wrapper .wp-block-code {
|
|
background: transparent;
|
|
}
|
|
|
|
/* Captions */
|
|
|
|
[class^="wp-block-"] figcaption,
|
|
[class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body {
|
|
color: #220e10;
|
|
font-size: 18px;
|
|
font-style: italic;
|
|
font-weight: 300;
|
|
line-height: 1.5;
|
|
margin: 0 0 24px;
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
4.0 Blocks - Common Blocks
|
|
--------------------------------------------------------------*/
|
|
|
|
/* Paragraph */
|
|
|
|
p.has-drop-cap:not(:focus)::first-letter {
|
|
font-size: 5em;
|
|
}
|
|
|
|
/* Gallery */
|
|
|
|
.edit-post-visual-editor .wp-block-gallery {
|
|
margin-bottom: 24px;
|
|
padding: 0;
|
|
}
|
|
|
|
.wp-block-gallery figcaption,
|
|
.wp-block-gallery figcaption.editor-rich-text__tinymce.mce-content-body {
|
|
color: #fff;
|
|
font-size: 13px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Quote */
|
|
|
|
.wp-block-quote {
|
|
font-style: italic;
|
|
margin: 24px 40px;
|
|
padding: 0;
|
|
}
|
|
|
|
.editor-block-list__block .wp-block-quote p {
|
|
font-size: 24px;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
|
border-left: 0;
|
|
border-right: 0;
|
|
padding-left: 40px;
|
|
padding-right: 40px;
|
|
}
|
|
|
|
.wp-block-quote .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body,
|
|
.wp-block-quote .wp-block-quote__citation {
|
|
color: inherit;
|
|
font-size: 16px;
|
|
font-style: italic;
|
|
font-weight: normal;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.wp-block-quote.is-large p,
|
|
.wp-block-quote.is-style-large p {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.wp-block-quote.is-large .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body,
|
|
.wp-block-quote.is-style-large .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* Cover */
|
|
|
|
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text,
|
|
.edit-post-visual-editor .editor-block-list__block .wp-block-cover p.wp-block-cover-text {
|
|
font-size: 32px;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
/* File */
|
|
|
|
.wp-block-file .wp-block-file__textlink {
|
|
color: #bc360a;
|
|
}
|
|
|
|
.wp-block-file .wp-block-file__button {
|
|
background: #e05d22; /* Old browsers */
|
|
background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */
|
|
background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */
|
|
border: none;
|
|
border-bottom: 3px solid #b93207;
|
|
color: #fff;
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
padding: 11px 24px 10px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Verse */
|
|
|
|
.editor-styles-wrapper .wp-block-verse {
|
|
font-family: inherit;
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
5.0 Blocks - Formatting
|
|
--------------------------------------------------------------*/
|
|
|
|
/* Code */
|
|
|
|
.editor-styles-wrapper .wp-block-code {
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Pullquote */
|
|
|
|
.edit-post-visual-editor .wp-block-pullquote {
|
|
border: 0;
|
|
padding: 0.5em 0;
|
|
}
|
|
|
|
.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p {
|
|
font-weight: 300;
|
|
}
|
|
|
|
.edit-post-visual-editor .wp-block-pullquote__citation,
|
|
.edit-post-visual-editor .wp-block-pullquote cite,
|
|
.edit-post-visual-editor .wp-block-pullquote footer {
|
|
color: #141412;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Table */
|
|
|
|
.wp-block-table {
|
|
border-bottom: 1px solid #ededed;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
font-size: 14px;
|
|
line-height: 2;
|
|
margin: 0 0 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.wp-block-table th {
|
|
border: 0;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.editor-block-list__block .wp-block-table td {
|
|
border: 0;
|
|
border-top: 1px solid #ededed;
|
|
padding: 0;
|
|
}
|
|
|
|
.editor-styles-wrapper .wp-block-table[style*="font-size"] *,
|
|
.editor-styles-wrapper .wp-block-table[class*="-font-size"] * {
|
|
font-size: inherit;
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
6.0 Blocks - Layout Elements
|
|
--------------------------------------------------------------*/
|
|
|
|
/* Buttons */
|
|
|
|
.wp-block-button .wp-block-button__link {
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
padding: 11px 24px 10px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.wp-block-button__link {
|
|
background: #e05d22;
|
|
border-bottom: 3px solid #b93207;
|
|
color: #fff;
|
|
}
|
|
|
|
.is-style-outline .wp-block-button__link:not(.has-text-color) {
|
|
border-width: 2px;
|
|
color: #e05d22;
|
|
}
|
|
|
|
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
|
|
background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */
|
|
background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */
|
|
}
|
|
|
|
.wp-block-button.is-style-no-shadow .wp-block-button__link {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Separator */
|
|
|
|
.editor-block-list__block hr.wp-block-separator {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Media & Text */
|
|
|
|
.wp-block-media-text *:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Group */
|
|
|
|
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block,
|
|
[data-align="wide"] .wp-block,
|
|
[data-align="full"] .wp-block {
|
|
max-width: 634px;
|
|
}
|
|
|
|
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="wide"] {
|
|
max-width: 1100px;
|
|
}
|
|
|
|
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {
|
|
width: calc(100% + 60px);
|
|
max-width: calc(100% + 60px);
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
7.0 Blocks - Widgets
|
|
--------------------------------------------------------------*/
|
|
|
|
/* Archives, Categories & Latest Posts */
|
|
|
|
[data-align="center"] .wp-block-archives ul,
|
|
[data-align="center"] .wp-block-categories ul,
|
|
[data-align="center"] .wp-block-latest-posts ul {
|
|
list-style-position: inside;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Latest Comments */
|
|
|
|
.editor-block-list__block .wp-block-latest-comments {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.wp-block-latest-comments .avatar,
|
|
.wp-block-latest-comments__comment-avatar {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.wp-block-latest-comments__comment,
|
|
.wp-block-latest-comments__comment-excerpt,
|
|
.wp-block-latest-comments__comment-excerpt p {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.wp-block-latest-comments__comment-excerpt p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.wp-block-latest-comments__comment-date {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.wp-block-latest-comments .wp-block-latest-comments__comment {
|
|
background: url(../images/dotted-line.png) repeat-x left top;
|
|
margin-bottom: 0;
|
|
padding: 24px 0;
|
|
}
|
|
|
|
/* Latest Posts */
|
|
|
|
.edit-post-visual-editor .editor-block-list__block .wp-block-latest-posts.is-grid {
|
|
list-style-type: none;
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
/*--------------------------------------------------------------
|
|
7.0 Blocks - Colors
|
|
--------------------------------------------------------------*/
|
|
|
|
:root .editor-styles-wrapper .has-dark-gray-color {
|
|
color: #141412;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-dark-gray-background-color {
|
|
background-color: #141412;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-red-color {
|
|
color: #bc360a;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-red-background-color {
|
|
background-color: #bc360a;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-medium-orange-color {
|
|
color: #db572f;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-medium-orange-background-color {
|
|
background-color: #db572f;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-light-orange-color {
|
|
color: #ea9629;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-light-orange-background-color {
|
|
background-color: #ea9629;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-yellow-color {
|
|
color: #fbca3c;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-yellow-background-color {
|
|
background-color: #fbca3c;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-white-color {
|
|
color: #fff;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-white-background-color {
|
|
background-color: #fff;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-dark-brown-color {
|
|
color: #220e10;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-dark-brown-background-color {
|
|
background-color: #220e10;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-medium-brown-color {
|
|
color: #722d19;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-medium-brown-background-color {
|
|
background-color: #722d19;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-light-brown-color {
|
|
color: #eadaa6;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-light-brown-background-color {
|
|
background-color: #eadaa6;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-beige-color {
|
|
color: #e8e5ce;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-beige-background-color {
|
|
background-color: #e8e5ce;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-off-white-color {
|
|
color: #f7f5e7;
|
|
}
|
|
|
|
:root .editor-styles-wrapper .has-off-white-background-color {
|
|
background-color: #f7f5e7;
|
|
}
|