Project

General

Profile

Actions

Bug #9574

closed

CSS rejected by Appearance > Custom CSS

Added by Ben Miller over 6 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority name:
Normal
Assignee:
Category name:
-
Target version:
-
Start date:
2018-04-11
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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

Is duplicate of CUNY Academic Commons - Bug #8926: Custom CSS being changedResolvedBoone Gorges2017-11-20

Actions
Actions

Also available in: Atom PDF