Hi! Would most appreciate any guidance.

I would like unpublished nodes to not have the pink background.

The reason is user will keep the content confidential and not publicly available.

I created a new css folder at follows:

themes / contrib / bootstrap / css /

and added

node.css with

.node-unpublished {
background-color: transparent;
}

but no joy 😉

Please how can I take away the pink color of an unpublished node in Bootstrap coming from cdn?

Comments

Liliplanet created an issue. See original summary.

Liliplanet’s picture

Status: Active » Closed (works as designed)

Just adding the solution:

Basically you should have the following two files:

THEMENAME.info.yml
libraries:
- 'THEMENAME/global-styling'

THEMENAME.libraries.yml
global-styling:
css:
theme:
css/style.css: {}

then create a css folder with style.css

.is-unpublished {
background-color: transparent;
}