Skip to content

Commit af34eee

Browse files
committed
fix(generic): .blog-visual visible during ?edit
Should be integrated in a v4.40.0 production release.
1 parent 5804b90 commit af34eee

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

generic_assets/css/core-cms-fixes.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,15 @@
1414
line-height: unset;
1515
}
1616

17+
/* TODO: Integrate into Core-CMS */
18+
/* to not show empty block when editing */
19+
/* https://github.com/TACC/Core-CMS/blob/v4.40.0-rc1/taccsite_cms/static/site_cms/css/src/_imports/tools/x-news.css#L381-L384 */
20+
/* https://github.com/TACC/Core-CMS/blob/v4.40.0-rc1/taccsite_cms/static/site_cms/css/src/_imports/components/django.cms.blog.app.page.css#L82-L83 */
21+
.blog-visual {
22+
&:has(.cms-placeholder:first-child:empty) {
23+
display: none;
24+
}
25+
}
26+
1727
/* TODO: Delete this after Core-CMS uses Core-Styles v2.57 */
1828
@import url("https://cdn.jsdelivr.net/gh/TACC/Core-Styles@v2.57.0-rc1/dist/bootstrap4/content/typography-headings/typography-headings--cms.css");

0 commit comments

Comments
 (0)