Skip to main content

Portable version of midnight-blue theme

Project description

Tests

ckanext-midnight-blue-theme

Portable version of CKAN's midnight blue theme that uses ckanext-theming.

Requirements

Compatibility with core CKAN versions:

CKAN version Compatible?
2.11 and earlier no
2.12 yes

Installation

To install ckanext-midnight-blue-theme:

  1. Install the extension

    git clone https://github.com/DataShades/ckanext-midnight-blue-theme.git
    cd ckanext-midnight-blue-theme
    pip install -e .
    
  2. Add theming and midnight_blue_theme to the ckan.plugins setting in your CKAN config file.

  3. Use midnight-blue-portable as a value ckanext-theming's ckan.ui.theme:

    ckan.ui.theme = midnight-blue-portable
    

Note, this extension requires ckanext-theming, but does not pins it to specific version. Consider adding ckanext-theming==X.Y.Z to requirements of your project.

Details

The theme implementation is close to the midnight blue theme from CKAN core. Tha main difference is that this theme follows ckanext-theming workflow. It provides and uses UI macros instead of inline HTML for standard components.

Bellow is the list of things that this plugin does differently comparint to the midnight-blue from CKAN core:

  • primary block does not use CSS float. Instead if relies on Bootstrap5 col class.
  • page.html uses layouts suggested in this PR. Try adding {% block page_layout %}no-sidebar{% endblock %} to any page to hide sidebar, or use sidebar-end value of the layout block to move sidebar to the other side of the page.
  • field errors reported using Bootstrap5 native styles for errors. Main differences: there is no red background for error text, instead, the text itself uses red color; fields with errors have red outline.
  • the whole block header_account_notlogged is not rendered if user is logged in. In the original theme, block is rendered without content.

License

AGPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_midnight_blue_theme-0.0.2.tar.gz (359.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_midnight_blue_theme-0.0.2-py3-none-any.whl (488.4 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_midnight_blue_theme-0.0.2.tar.gz.

File metadata

File hashes

Hashes for ckanext_midnight_blue_theme-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0f143a26b5a6b84822e5d93762db6c7cb746425fa951bd1e2ba852b7737e4791
MD5 eb7c0d6d6db3f38b2e6b6575d2873cdd
BLAKE2b-256 0bfd4cb58a6d7f6ce8de2ac846e3357a3f86406c51858aa1b3414fd44bf6c33e

See more details on using hashes here.

File details

Details for the file ckanext_midnight_blue_theme-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_midnight_blue_theme-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e4b56aaf016a27ec53a12ab4c5b6448367fca32e171ca4ffd8657f5c5a520f3d
MD5 67abeee9ad9751f4f8b6f32e0bf39060
BLAKE2b-256 e8630468f3687303b950e5fce442789f396a206dc40bc35bdeed32f51aceda04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page