ubccr / mokey

FreeIPA self-service account management portal
BSD 3-Clause "New" or "Revised" License
190 stars 45 forks source link

css customization #126

Closed Lejooohn closed 1 year ago

Lejooohn commented 1 year ago

Hello !

Quick question about customization using css file. I tried to put a css file in specific folder and i declare it in mokey.toml like that :

# Path to custom css styles file
css = "/usr/share/mokey/templates/static/custom"

the content of the file :

.navbar .navbar-fixed-top .navbar-inverse {
    background-color: #e80727;
    border-color: #ccc;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #fff;
    background-color: #e80727;
}

But it seems this has no effect at all even if i restart the service. I suspect all minifyed css files to be the reason but i'm not sure.

My goal is to change the blue color configured by default everywere to another color.

Any help will be appreciate :+1:

Regards

aebruno commented 1 year ago

Quick question about customization using css file. I tried to put a css file in specific folder and i declare it in mokey.toml like that :

# Path to custom css styles file
css = "/usr/share/mokey/templates/static/custom"

This should be set to the full file path. Not the directory. So try:

css = "/usr/share/mokey/templates/static/custom/somefile.css"
Lejooohn commented 1 year ago

Hi Andrew,

Ty for your quick reply and everything works perfectly now.

Have a good day !