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 #1

Updated by Matt Gold over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Boone Gorges
Actions #2

Updated by Boone Gorges over 6 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.

Actions #3

Updated by Boone Gorges over 6 years ago

  • Is duplicate of Bug #8926: Custom CSS being changed added
Actions #5

Updated by Ben Miller over 6 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.

Actions

Also available in: Atom PDF