divi255 / sphinxcontrib.asciinema

Easily embed asciinema videos into Sphinx documentation
MIT License
21 stars 12 forks source link

Custom css #13

Closed euri10 closed 3 years ago

euri10 commented 3 years ago

The !important in the asciinema-custom.css file makes it impossible to override it

I want to be able to override the asciinema-custom.css adding this to conf.py:

html_css_files = [
    'css/asciinema-custom.css', 'css/copybutton.css'
]

then have a custom font in _static/fonts and then use my custom font in _static/css/asciinema_custom.css

@font-face {
    font-family: 'MesloLGS NF Regular';
    src: url('../fonts/MesloLGS NF Regular.ttf') format('truetype');
}

.asciinema-terminal {
        font-family: 'MesloLGS NF Regular', Consolas, Menlo, 'Bitstream Vera Sans Mono', monospace, 'Powerline Symbols';
}