Coder Social home page Coder Social logo

maoridiplomat / ckanext-dia_theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from data-govt-nz/ckanext-dia_theme

0.0 0.0 0.0 2.41 MB

CKAN theme for the New Zealand open data portal - data.govt.nz

License: GNU Affero General Public License v3.0

JavaScript 0.17% Python 0.43% CSS 92.76% HTML 3.43% Less 3.22%

ckanext-dia_theme's Introduction

ckanext-dia_theme

Frontend CKAN theme for data.govt.nz written in LESS

Requirements

CKAN 2.9.x

Possibly also CKAN 2.8.x, untested

If using CKAN 2.7.x, checkout this repo at tag 2.1.1

Installation

To install ckanext-dia_theme:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
    
  2. Install the ckanext-dia_theme Python package into your virtual environment:

    pip install ckanext-dia_theme
    
  3. Add dia_theme to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

  4. Restart CKAN. For example if you've deployed CKAN with Nginx on Ubuntu:

    sudo service nginx restart
    

CSS Styling of dia_theme

Any CSS styling changes to the dia_theme should be done in the LESS files and NOT directly in the CSS files.

We'll be replacing these styles with the rua pattern library, however for now we have both.

You can use npm to install and build the LESS files with npm i and npm run css

If you are actively developing/making css changes you can run npm run css-dev and the .less files will be automatically compiled on save.

You can use npm to update the rua pattern library styles with npm run rua

Alternatively the LESS files were previously compiled with these steps:

  • Install LESS Compiler
  • Make changes in LESS files as required
  • Open console and cd to /path/to/ckanext-dia_theme
  • Compile the LESS files by running " lessc less/main.less fanstatic/dia_custom.css "
  • The CSS changes will now show up in the browser

ckanext-dia_theme's People

Contributors

markstuart avatar niall-madecurious avatar camfindlay avatar ebuckley avatar matt-in-a-hat avatar dythya avatar mandy-kate avatar anotheredward avatar software-opal avatar benwrighton avatar dependabot[bot] avatar maoridiplomat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.