My theme is my_theme and it is inherited from quark theme.
I try in my custom.css file to change the background color of a pre formated texte but I didn’t find out how to do.
I want to use markdown, I could do it with <pre> </pre> html tags easily but I would like not to have to use <pre> </pre> tags in my page. Is it possible ?
in my page I have a pre formated text
my texte
in my css I tried this, but it doesn’t change the background that stay white
@thgr, If the theme is correctly setup, the custom.css file should be loaded last. This way, selectors with equal specificity in custom.css will override prior selectors.
In your case, the selector pre code from theme.min.css has a higher specificity then pre used in your custom.css. Hence, the background from theme.min.css wins.
Try using the same of higher specificity in your custom.css like:
The first time I already did it this way but I tried again, and with the same result :
Point 2/
user@monpc~/public_html/grav$ bin/plugin devtools new-theme
Enter Theme Name:
> mytheme2
Enter Theme Description:
> mytheme2
Enter Developer Name:
> user
Enter GitHub ID (can be blank):
>
Enter Developer Email:
> ***@***.net
Please choose an option:
[pure-blank ] Basic Theme using Pure.css
[tailwind ] Basic Theme using tailwind.css
[inheritance] Inherit from another theme
[copy ] Copy another theme
> Inherit from another theme
Please choose a theme to extend:
[0] mytheme
[1] quark
> 1
SUCCESS theme mytheme2 -> Created Successfully
Path: /home/user/public_html/grav/user/themes/mytheme2
Point 4/ It’s strange because it is already done :
Copy the “form” section from /user/themes/quark/blueprints.yaml file into /user/themes/mytheme/blueprints.yaml in order to include the customizable elements of the theme in the admin. (Or simply replace the file and edit its content.)
My css grav/user/themes/mytheme2/custom.css is working but not for pre code tags