Portable version of midnight-blue theme
Project description
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:
-
Install the extension
git clone https://github.com/DataShades/ckanext-midnight-blue-theme.git cd ckanext-midnight-blue-theme pip install -e .
-
Add
themingandmidnight_blue_themeto theckan.pluginssetting in your CKAN config file. -
Use
midnight-blue-portableas a value ckanext-theming'sckan.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
colclass. page.htmluses layouts suggested in this PR. Try adding{% block page_layout %}no-sidebar{% endblock %}to any page to hide sidebar, or usesidebar-endvalue 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_notloggedis not rendered if user is logged in. In the original theme, block is rendered without content.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ckanext_midnight_blue_theme-0.0.2.tar.gz.
File metadata
- Download URL: ckanext_midnight_blue_theme-0.0.2.tar.gz
- Upload date:
- Size: 359.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f143a26b5a6b84822e5d93762db6c7cb746425fa951bd1e2ba852b7737e4791
|
|
| MD5 |
eb7c0d6d6db3f38b2e6b6575d2873cdd
|
|
| BLAKE2b-256 |
0bfd4cb58a6d7f6ce8de2ac846e3357a3f86406c51858aa1b3414fd44bf6c33e
|
File details
Details for the file ckanext_midnight_blue_theme-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ckanext_midnight_blue_theme-0.0.2-py3-none-any.whl
- Upload date:
- Size: 488.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4b56aaf016a27ec53a12ab4c5b6448367fca32e171ca4ffd8657f5c5a520f3d
|
|
| MD5 |
67abeee9ad9751f4f8b6f32e0bf39060
|
|
| BLAKE2b-256 |
e8630468f3687303b950e5fce442789f396a206dc40bc35bdeed32f51aceda04
|