Bug #9574
closedCSS rejected by Appearance > Custom CSS
0%
Description
Filing this under bug, though it might just be a support / documentation question.
I was working on website layout on [a post for JITP Staging](https://jitpstaging.commons.gc.cuny.edu/wp-admin/post.php?post=4878&action=edit), using the Custom CSS tool under the Appearance Menu.
I entered this code, which looked fine using the Chrome Inspector:
.gallery-jitp-flex .gallery {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.gallery-jitp-flex .gallery .gallery-item {
display: flex;
flex-direction: column;
padding: 0.1em;
}
.gallery-jitp-flex .gallery .gallery-item .gallery-icon {
align-self: center;
}
.gallery-jitp-flex .gallery .gallery-item .gallery-caption {
align-self: flex-end;
padding: 0 0.8em;
}
When I saved the Custom CSS, instead it transformed into this (non-functional) version, which was then the only sign that I'd changed the Custom CSS:
.gallery-jitp-flex .gallery {
display: flex;
}
.gallery-jitp-flex .gallery .gallery-item {
display: flex;
padding: .1em;
}
.gallery-jitp-flex .gallery .gallery-item .gallery-icon {
}
.gallery-jitp-flex .gallery .gallery-item .gallery-caption {
padding: 0 .8em;
}
In other words, it stripped out the most essential parts of a flexbox layout: justify-content
, align-items
, and flex-direction
. Any ideas why this might have happened?
Related issues
Updated by Matt Gold about 7 years ago
- Status changed from New to Assigned
- Assignee set to Boone Gorges
Updated by Boone Gorges about 7 years ago
- Status changed from Assigned to Duplicate
Hi Ben - This appears to be the same issue as #8926, which will be solved in our upcoming version 1.13 release by the changes in #7811. That's coming in the first week of May. Sorry for the trouble, and thanks for your patience.
Updated by Boone Gorges about 7 years ago
- Is duplicate of Bug #8926: Custom CSS being changed added
Updated by Ben Miller about 7 years ago
Sorry not to have searched first, but glad the fix is already in! I'll pass word along to the rest of the JITP web team so we know that our plans can include flexbox... but that we should wait until May to start testing.