.. _app_projectroles_custom: Projectroles Customization ^^^^^^^^^^^^^^^^^^^^^^^^^^ Here you can find some customization instructions and tips for projectroles and SODAR Core. CSS Overrides ============= If some of the CSS definitions in ``{STATIC}/projectroles/css/projectroles.css`` do not suit your purposes, it is possible to override them in your own includes. It is still recommended to include the *"Flexbox page setup"* section as provided. In this chapter are examples of overrides you can place e.g. in ``project.css`` to change certain defaults. .. hint:: While not explicitly mentioned, some parameters may require the ``!important`` argument to take effect on your site. .. warning:: In the future we may instead offer a full Bootstrap 4 theme, which may deprecate current overriding/extending CSS classes. Static Element Coloring ----------------------- If you wish to recolor the background of the static elements on the page (title bar, side bar and project navigation breadcrumb), add the following CSS overrides. .. code-block:: css .sodar-base-navbar, .sodar-pr-sidebar, .sodar-pr-sidebar-nav { background-color: #ff00ff; } .sodar-pr-navbar { background-color: #00ff00; } Sidebar Width ------------- If the sidebar is not wide enough for your liking or e.g. a name of an app overflowing, the sidebar can be resized with the following override: .. code-block:: css .sodar-pr-sidebar { width: 120px; } Title Bar ========= You can implement your own title bar by replacing the default base.html include of ``projectroles/_site_titlebar.html`` with your own HTML or include. When doing this, it is possible to include elements from the default title bar separately: - Search form: ``projectroles/_site_titlebar_search.html`` - Site app and user operation dropdown: ``projectroles/_site_titlebar_dropdown.html`` See the templates themselves for further instructions. Additional Title Bar Links ========================== If you want to add additional links *not* related to apps in the title bar, you can implement in the template file ``{SITE_NAME}/templates/include/_titlebar_nav.html``. This can be done for e.g. documentation links or linking to external sites. Example: .. code-block:: django {# Example extra link #}