Skip to main content

A Zurb Foundation Theme for Pinax

A theme for Pinax 0.9 based on Zurb Foundation. Zurb Foundation is a popular CSS framework that is light weight, but includes all the basics such as; a twelve column responsive grid, forms,dialog, navigation tabs, buttons, typography and so on. Zurb Foundation is not as feature complete as some other frameworks, but this may be one of its advantages. It has been argued that frameworks that provide “everything out of the box” tend to encourage the development of “cookie cutter” sites and apps. You can read more about the ideas behind Foundation and how to use it for rapid prototyping here.

Contributors

What’s New

  • Improved top Navbar based on which is based on foundation’s top-bar branch .

  • Inclusion of zurb symbol icon fonts

  • Inclusion of CSS to support the `responsive design patterns`_ originally discussed by Joshnua Johson and implement by Matt Reimer.

  • Updated documentation and set up a demo site based on a pinax basic project

  • Some reorganization of the theme_base.html including:

    • Moved most the javascript to the bottom of the file

    • Use the static template tag_

    • Using the static assets for released version of zurb-foundation 2.2.1

  • Numerous bug fixes

Quickstart

Create a virtual environment for your project and activate it:

$ virtualenv mysite-env
$ source mysite-env/bin/activate
(mysite-env)$

Next install Pinax:

(mysite-env)$ pip install Pinax

Once Pinax is installed use pinax-admin to create a project for your site

(mysite-env)$ pinax-admin setup_project mysite -b basic mysite

The example above will create a starter django project in the mysite folder based on the Pinax basic project. Of ccourse you can use any of the Pinax starter Projects. The basic project provides features such as basic account management as well as user profiles and notifications. The project also comes with a theme - a collection css, javascript files and default templates based on Twitter Bootstrap.

To use the zurb-foundation theme in the project, include “pinax-theme-foundation” in requirements/project.txt. Edit the settings.py file and comment out the entry for “pinax_theme_bootstrap” and add “pinax_theme_foundation” in your INSTALLED APPS:

# theme
#"pinax_theme_bootstrap",
"pinax_theme_foundation",

Inside your project run:

(mysite-env)$ python manage.py syncdb
(mysite-env)$ python manage.py runserver

Change the Site name by editing fixture/initial_data.json you can also use the Admin app for this purpose.

Your “site_base.html” should extend “theme_base.html” and should provide “footer” and “nav” blocks (the latter should just be a ul of li of a links).

Your pages should have blocks “head_title” and “body” and should extend “site_base.html”.

The url name “home” should be defined as the homepage.

On desktop devices the default viewport width is set to 1200px you may prefer something different. To set for example, a 980px wide viewport on desktop devices simply add the following to your project style sheet static/site_sytles.css

row {
  max-width: 980px;
}

Documentation

See the full documentation for more details.

Metadata

Release files for pinax-theme-foundation 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pinax-theme-foundation 0.1.5
File Size Uploaded Provenance Actions
pinax-theme-foundation-0.1.5.tar.gz 376.0 kB Without provenance Details for pinax-theme-foundation-0.1.5.tar.gz

Release files / pinax-theme-foundation-0.1.5.tar.gz

Download URL pinax-theme-foundation-0.1.5.tar.gz
Size 376.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b99e404dda1edc3c8e68047cafc7479efca145d848879613f8a7f6bedef5ce14
BLAKE2b-256 checksum
How to use checksums
73b3bc7679596b016225a6f0bddb7e6c73c02dd578585028e3d144cbbaab95cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pinax-theme-foundation 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page