Skip to content

plone-ve/diazotheme.purecss

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diazotheme.purecss

Introduction

diazotheme.purecss package provides diazo themes based on the PureCSS framework using the theming and packaging features available for create Diazo theme using plone.app.theming.

diazotheme.purecss package contains the following diazo implementations:

  • PureCSS Starter Theme, is the PureCSS Starter theme on diazo based.
  • PureCSS Theme, a diazo theme based for PureCSS.

How to create a child theme

Any of the three theme folders can be used to create your own child theme, based on diazoframework.purecss. You can either wrap the theme up in a package or you can create a zip file of the folder and upload that to the theme panel.

There are two ways of creating a child theme.

The package way

For this example, lets assume we are creating a package called diazotheme.newtheme and we will copy the starter theme in this package.

  1. Created the diazotheme.newtheme package (for instance through paster script).

  2. Copy diazotheme.purecss/diazotheme/purecss/starter to diazotheme.newtheme/diazotheme/newtheme/starter.

  3. Rename diazotheme.newtheme/diazotheme/newtheme/starter to diazotheme.newtheme/diazotheme/newtheme/static (arbitrary name).

  4. Add <plone:static directory="static" name="newtheme" type="theme"/> to diazotheme.newtheme/diazotheme/newtheme/configure.zcml.

  5. Change diazotheme.newtheme/diazotheme/newtheme/static/manifest.cfg to reflect the changes, so:

    [theme]
    title = New theme
    description = Describe the new theme
    rules = /++theme++newtheme/rules.xml
    prefix = /++theme++newtheme
    doctype = <!DOCTYPE html>
    preview = preview.png
    

The zip file way

Again, lets assume we use the theme theme and we want to end up with the newtheme name.

  1. Copy diazotheme.purecss/diazotheme/purecss/theme to your file system.

  2. Rename theme to newtheme (the folder name will become the theme name in the theme panel)

  3. Change newtheme/manifest.cfg to reflect the changes, so:

    [theme]
    title = New theme
    description = Describe the new theme
    rules = /++theme++newtheme/rules.xml
    prefix = /++theme++newtheme
    doctype = <!DOCTYPE html>
    preview = preview.png
    
  4. Customize your theme.

  5. When you are finished customizing, create a zip archive of the newtheme folder.

  6. Upload the newtheme.zip in the plone theme panel.

Screenshots

PureCSS Theme

Layout of the site when viewed in a computer resolution:

PureCSS Theme

Requirements

  • From the Plone 4.1.x To the Plone 4.3 latest version (https://plone.org/download)
  • The plone.app.theming package (You will need enable it via "Add-ons" control panel to use this package)
  • The diazoframework.purecss package (You will need enable it via "buildout" configuration to use this package)

Features

  • Provides the diazo rules for PureCSS Starter theme.
  • Provides the diazo rules for PureCSS theme.

Installation

Buildout

If you are a developer, you might enjoy installing it via buildout.

For install diazotheme.purecss package add it to your buildout section's eggs parameter e.g.:

[buildout]
 ...
 eggs =
     ...
     diazotheme.purecss

and then running bin/buildout.

Or, you can add it as a dependency on your own product setup.py file:

install_requires=[
    ...
    'diazotheme.purecss',
],

Resources

This package is the parent of all Plone diazo themes and provides rule that are practical to use in other diazo themes.

PureCSS Starter Theme

The resources of this theme can be reached through

/++theme++purecss-starter

There are placed at diazotheme.purecss/diazotheme/purecss/starter directory with following resources files:

_ starter
  Provides the resources from "PureCSS Starter Theme".
  _ manifest.cfg
  _ rules.xml

PureCSS Theme

The resources of this theme can be reached through

/++theme++purecss

There are placed at diazotheme.purecss/diazotheme/purecss/theme directory with following resources files:

_ theme
  Provides the resources from "PureCSS Theme".
  _ index.html
  _ manifest.cfg
  _ marketing.css
  _ preview.png
  _ rules.xml

Contribute

License

The project is licensed under the GPLv2.

Credits

  • Thijs Jonkman (t.jonkman at gmail dot com).

Amazing contributions

  • Leonardo J. Caballero G. aka macagua (leonardocaballero at gmail dot com).

You can find an updated list of package contributors on https://github.com/TH-code/diazotheme.purecss/contributors

About

PureCSS Framework Theme (Diazo over Sunburst)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 67.2%
  • Python 18.9%
  • CSS 13.9%