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.1.tar.gz (358.9 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.1-py3-none-any.whl (488.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ckanext_midnight_blue_theme-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d93449bdc5bbad0c8afc7a92fe87abaedb2285d0e216e17e1a0a13fccaf5c2b5
MD5 2426cb7e7d8ed68eb9734c2a0d21ba14
BLAKE2b-256 cbd8373ebf6925d44b3cc633f11760bc936c96990090654b31224695c43684e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ckanext_midnight_blue_theme-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f44cebb66f526f1898db486efa43bbcda9043e192285f3753bacc578b5b0867
MD5 2238603521584fc194cd410a98427b29
BLAKE2b-256 9a5dd7e037b539d5872a700f4b9d24062a9d0344868924d0b3a690331fa64051

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