Skip to content

Commit

Permalink
Fix font size on media card
Browse files Browse the repository at this point in the history
  • Loading branch information
razwan committed Jul 20, 2020
1 parent 244e9e1 commit d16264c
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 89 deletions.
26 changes: 13 additions & 13 deletions dist/css/block-editor-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -353,25 +353,25 @@
border: 0; }
.editor-styles-wrapper .picker__frame {
--current-font-size: 16px; }
.editor-styles-wrapper .novablocks-block__content {
.editor-styles-wrapper .novablocks-card {
--font-size: var(--theme-body-font-size);
font-size: var(--final-font-size);
--current-font-family: var(--theme-body-font-family);
--current-line-height: var(--theme-body-line-height);
--current-font-weight: var(--theme-body-font-weight);
--current-letter-spacing: var(--theme-body-letter-spacing); }
.block-is-highlighted:not(.content-is-highlighted) .editor-styles-wrapper .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .editor-styles-wrapper .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }
.block-is-highlighted:not(.content-is-highlighted) .editor-styles-wrapper .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .editor-styles-wrapper .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
.block-is-highlighted:not(.content-is-highlighted) .editor-styles-wrapper .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .editor-styles-wrapper .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }
.block-is-highlighted:not(.content-is-highlighted) .editor-styles-wrapper .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .editor-styles-wrapper .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
.editor-styles-wrapper [data-type="novablocks/media"] + .editor-styles-wrapper [data-type="novablocks/media"],
.editor-styles-wrapper [data-type="novablocks/cards-collection"] + .editor-styles-wrapper [data-type="novablocks/media"],
.editor-styles-wrapper [data-type="novablocks/posts-collection"] + .editor-styles-wrapper [data-type="novablocks/media"],
Expand Down
26 changes: 13 additions & 13 deletions dist/css/block-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -353,25 +353,25 @@
border: 0; }
.editor-styles-wrapper .picker__frame {
--current-font-size: 16px; }
.editor-styles-wrapper .novablocks-block__content {
.editor-styles-wrapper .novablocks-card {
--font-size: var(--theme-body-font-size);
font-size: var(--final-font-size);
--current-font-family: var(--theme-body-font-family);
--current-line-height: var(--theme-body-line-height);
--current-font-weight: var(--theme-body-font-weight);
--current-letter-spacing: var(--theme-body-letter-spacing); }
.block-is-highlighted:not(.content-is-highlighted) .editor-styles-wrapper .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .editor-styles-wrapper .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }
.block-is-highlighted:not(.content-is-highlighted) .editor-styles-wrapper .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .editor-styles-wrapper .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
.block-is-highlighted:not(.content-is-highlighted) .editor-styles-wrapper .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .editor-styles-wrapper .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }
.block-is-highlighted:not(.content-is-highlighted) .editor-styles-wrapper .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .editor-styles-wrapper .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
.editor-styles-wrapper [data-type="novablocks/media"] + .editor-styles-wrapper [data-type="novablocks/media"],
.editor-styles-wrapper [data-type="novablocks/cards-collection"] + .editor-styles-wrapper [data-type="novablocks/media"],
.editor-styles-wrapper [data-type="novablocks/posts-collection"] + .editor-styles-wrapper [data-type="novablocks/media"],
Expand Down
28 changes: 13 additions & 15 deletions dist/css/blocks/editor-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -380,27 +380,25 @@ ul.wp-block-categories__list[class] {
.picker__frame {
--current-font-size: 16px; }

.novablocks-block__content {
.novablocks-card {
--font-size: var(--theme-body-font-size);
font-size: var(--final-font-size);
--current-font-family: var(--theme-body-font-family);
--current-line-height: var(--theme-body-line-height);
--current-font-weight: var(--theme-body-font-weight);
--current-letter-spacing: var(--theme-body-letter-spacing); }

.block-is-highlighted:not(.content-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }

.block-is-highlighted:not(.content-is-highlighted) .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
.block-is-highlighted:not(.content-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }
.block-is-highlighted:not(.content-is-highlighted) .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }

[data-type="novablocks/media"] + [data-type="novablocks/media"],
[data-type="novablocks/cards-collection"] + [data-type="novablocks/media"],
Expand Down
28 changes: 13 additions & 15 deletions dist/css/blocks/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -380,27 +380,25 @@ ul.wp-block-categories__list[class] {
.picker__frame {
--current-font-size: 16px; }

.novablocks-block__content {
.novablocks-card {
--font-size: var(--theme-body-font-size);
font-size: var(--final-font-size);
--current-font-family: var(--theme-body-font-family);
--current-line-height: var(--theme-body-line-height);
--current-font-weight: var(--theme-body-font-weight);
--current-letter-spacing: var(--theme-body-letter-spacing); }

.block-is-highlighted:not(.content-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }

.block-is-highlighted:not(.content-is-highlighted) .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
.block-is-highlighted:not(.content-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }
.block-is-highlighted:not(.content-is-highlighted) .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }

[data-type="novablocks/media"] + [data-type="novablocks/media"],
[data-type="novablocks/cards-collection"] + [data-type="novablocks/media"],
Expand Down
28 changes: 13 additions & 15 deletions dist/css/blocks/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -486,24 +486,22 @@
transition: opacity 0.15s ease-in;
transform: none; }

.novablocks-block__content {
.novablocks-card {
--font-size: var(--theme-body-font-size);
font-size: var(--final-font-size);
--current-font-family: var(--theme-body-font-family);
--current-line-height: var(--theme-body-line-height);
--current-font-weight: var(--theme-body-font-weight);
--current-letter-spacing: var(--theme-body-letter-spacing); }

.block-is-highlighted:not(.content-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }

.block-is-highlighted:not(.content-is-highlighted) .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
.block-is-highlighted:not(.content-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }
.block-is-highlighted:not(.content-is-highlighted) .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
28 changes: 13 additions & 15 deletions dist/css/blocks/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -486,24 +486,22 @@
transition: opacity 0.15s ease-in;
transform: none; }

.novablocks-block__content {
.novablocks-card {
--font-size: var(--theme-body-font-size);
font-size: var(--final-font-size);
--current-font-family: var(--theme-body-font-family);
--current-line-height: var(--theme-body-line-height);
--current-font-weight: var(--theme-body-font-weight);
--current-letter-spacing: var(--theme-body-letter-spacing); }

.block-is-highlighted:not(.content-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }

.block-is-highlighted:not(.content-is-highlighted) .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
.block-is-highlighted:not(.content-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link,
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card .wp-block-button:not(.is-style-text) .wp-block-button__link {
--theme-button-text-color: var(--current-dark-primary);
--theme-button-background-color: var(--current-light-primary);
--theme-button-border-color: var(--current-light-primary);
--theme-button-hover-text-color: var(--current-light-primary);
--theme-button-hover-background-color: transparent;
--theme-button-hover-border-color: var(--current-light-primary); }
.block-is-highlighted:not(.content-is-highlighted) .novablocks-card a:not(.wp-block-button__link),
.content-is-highlighted:not(.block-is-highlighted) .novablocks-card a:not(.wp-block-button__link) {
color: inherit;
text-decoration-color: inherit; }
4 changes: 1 addition & 3 deletions src/scss/blocks/nova-blocks/cards-collection/_style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.novablocks-block__content {
.novablocks-card {
@include apply-font(body);
}

.novablocks-card {
.block-is-highlighted:not(.content-is-highlighted) &,
.content-is-highlighted:not(.block-is-highlighted) & {
.wp-block-button:not(.is-style-text) {
Expand Down

0 comments on commit d16264c

Please sign in to comment.