Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get floated images working as expected. #59

Merged
merged 3 commits into from
Jun 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
display: block;
}

.wp-block-image.alignleft,
.wp-block-image.alignright {
width: 100%
}

.wp-block-image.alignfull img {
width: 100vw;
}
Expand Down
10 changes: 5 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ a:hover, a:active {

.alignleft,
.alignright {
max-width: 740px !important; /* Let's work to make this !important unnecessary */
max-width: 636px !important; /* Let's work to make this !important unnecessary */
}

.alignleft img,
Expand All @@ -721,20 +721,20 @@ a:hover, a:active {

.alignleft figcaption {
clear: left;
float: left;
}

.alignright figcaption {
clear: right;
float: right;
}

.alignleft img {
.alignleft img,
.alignleft figcaption {
float: left;
margin-right: 1.5em;
}

.alignright img {
.alignright img,
.alignright figcaption {
float: right;
margin-left: 1.5em;
}
Expand Down