Skip to content

Commit

Permalink
copied image styles to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSibley committed Apr 3, 2020
1 parent 34f7977 commit accfc6c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion js/build/postMessage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions js/postMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@
var siteClass = 'fab fa-weixin';
} else if ( siteName == 'phone') {
var siteClass = 'fas fa-phone';
} else if ( siteName == 'pocket') {
var siteClass = 'fab fa-get-pocket';
} else {
var siteClass = 'fab fa-' + siteName;
}
Expand Down
1 change: 0 additions & 1 deletion rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ hr {
margin: 1.5em 0;
}

/* Table styles */
/* Table styles */
table {
border-spacing: 0;
Expand Down
2 changes: 0 additions & 2 deletions sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ hr {
margin: $baseline-height 0;
}

/* Table styles */

/* Table styles */
table {
border-spacing: 0;
Expand Down
8 changes: 7 additions & 1 deletion sass/editor-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ th {
.alignnone {
margin: $baseline-height 0;
}
.wp-block-image {
margin: $baseline-height 0;
}
img,
.alignright,
.alignleft,
.aligncenter,
Expand All @@ -178,7 +182,9 @@ th {
max-width: 100%;
height: auto;
}
.wp-caption-text {
.wp-caption-text,
.gallery-caption,
.wp-block-image figcaption {
@extend %twelve-pixels;
margin: 0 0 $baseline-height;
}
Expand Down
1 change: 0 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ hr {
margin: 1.5em 0;
}

/* Table styles */
/* Table styles */
table {
border-spacing: 0;
Expand Down
13 changes: 11 additions & 2 deletions styles/editor-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ h3 {
/* 24px */
}

.wp-block-table figcaption, .wp-caption-text {
.wp-block-table figcaption, .wp-caption-text,
.gallery-caption,
.wp-block-image figcaption {
font-size: 0.75em;
/* 12px / 16px */
line-height: 1.5;
Expand Down Expand Up @@ -189,6 +191,11 @@ th {
margin: 1.5em 0;
}

.wp-block-image {
margin: 1.5em 0;
}

img,
.alignright,
.alignleft,
.aligncenter,
Expand All @@ -202,7 +209,9 @@ th {
height: auto;
}

.wp-caption-text {
.wp-caption-text,
.gallery-caption,
.wp-block-image figcaption {
margin: 0 0 1.5em;
}

Expand Down

0 comments on commit accfc6c

Please sign in to comment.