Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #2
Liliplanet CreditAttribution: Liliplanet commentedJust 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;
}