Skip to content

Commit

Permalink
Fix alignright and alignleft
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjoling committed May 2, 2024
1 parent 22fd170 commit e012a23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ h6.has-background {
color: var(--wp--preset--color--base);
}

/**
* Alignment
*/

.entry-content > .alignleft {
margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
}

.entry-content > .alignright {
margin-right: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
}

/* -------------------------------- CONTEXT -------------------------------- */

/**
Expand Down

0 comments on commit e012a23

Please sign in to comment.