Custom CSS stylesheet location

Hi all
I am looking at tweaking one of the built in sylesheets, but can’t see where it should go so that I can select it in the html option tab from the stylesheet dropdown when creating a new narrated website report.

  1. The wiki suggests you create a new one in a new css folder:
    “copy one of the existing stylesheet in $HOME/.gramps/css/ . This directory doesn’t exist. You must create it before copying your future stylesheet”
    I tried creating that folder and adding a renamed copy of an existing css, but I don’t see it in the dropdown list.

  2. The wiki also suggests that it goes into a css folder in the plugsin folder:
    “Please place the css file in your plugins css directory and select it from the reports Stylesheet option found on the [Html options] tab.”
    I created a css folder in plugins, and placed a copied css stylesheet into it but but that did not seem to work either.

I closed and restarted Gramps each time, in case it needed to pickup the location, but no luck. Is there another place for a custom stylesheet? I am using Windows 10, GrampsAIO64-5.1.2-1.

John

Hi John

You are on Windows so the folder will be with your user files.

c:\users%you%\appdata\roaming\gramps\css

In Windows, the AppData will be hidden by default.

To have it work, make sure that the css file has a unique name different than the default Gramps options.

Once the file is in the folder, you will need to relaunch Gramps for it to be seen

Thanks DaveSch,

That worked, I can see my new css file in the dropdown.

Version 5.2.1 includes a change for the default Adwaita theme:

One change was in Windows AIO installer build: install of the icons was pruned to the 16x16, 32x32, and cursors. Meanwhile, Gramps was looking at the wrong directory.
“fullcolor: low res only at 16x16, lean onto the scalables for everything else” - we were looking for a 32x32 directory.

In addition, Nick noted…

We have a /usr/share/gramps/gramps.css, but users should only change it if they know what they are doing.

Most users should just download a theme from https://www.gnome-look.org and install it. Gramps will just use the active Gnome theme.

The custom CSS stylesheets originally referenced were the css files utilized by the narrative web. Not any css files utilized to create and display the Gramps GUI.

OK. Thanks. Just have to find the correct thread to move this to.

(It is a high class problem to have too much forum data to peruse.)