From f85bcc3b06b02dbf2a711580a3e9d0a24efd3155 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Sep 06 2018 23:33:35 +0000 Subject: Update the themes to match the newmaster layout Changes the theme hooks so there is now only one variable to add items to the navbar at the top of the page (theme.masthead_class) Also change each of the themes to use only this variable, and change the default themes so they render the same as before the changes to master.html in https://pagure.io/pagure/c/bcd6a2b0a0deb29e0883c4fe61e37d4c27a75463?branch=master Related: #3614 --- diff --git a/doc/usage/theming.rst b/doc/usage/theming.rst index ee13399..8bbe4b3 100644 --- a/doc/usage/theming.rst +++ b/doc/usage/theming.rst @@ -60,27 +60,14 @@ The current items configurable in theme.html are: `masthead_class` variable ######################### -A string of additional CSS class(es) to be added to the `.masthead` element. -The masthead is the topbar in Pagure. For example: +A string of additional CSS class(es) to be added to the navbar element. +This navbar element is the topbar in Pagure. For example: :: - {% set masthead_class = "bg-dark" %} + {% set masthead_class = "navbar-dark bg-dark" %} -`masthead_nav_class` variable -############################# - -A string of additional CSS class(es) to be added to the bootstrap -`navbar` element that is used as the top level menu in the top right -of the Pagure interface. This is primarily used to control the text -color of the nav elements. For example, if you have a dark colour for -the masthead, you would set this: - -:: - - {% set masthead_nav_class = "navbar-dark" %} - `site_title` variable ############################# diff --git a/pagure/templates/master.html b/pagure/templates/master.html index 7a50cfc..8560232 100644 --- a/pagure/templates/master.html +++ b/pagure/templates/master.html @@ -14,7 +14,7 @@ -