Skip to main content

Zurb Foundation Theme for Pinax

A theme for Pinax 0.9 based on Zurb Foundation. Zurb Foundation is a popular CSS framework that is built on a responsive grid that accommodates devices with a variety of screen sizes. Documentation on Foundation can be found at http://foundation.zurb.com/docs/

Authors

In This Version

We’ve added a number of major feature requests & bug fixes for this release including:
  • The use Zurb Foundation 2.2.0 which will be the last major release in the 2+ series

  • The top navigation bar is now responsive and can support things like drop down lists.

  • Modals dialogs now now work with forms where the link and the from are on different pages.

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.

Foundation is 100% responsive so that you may want to add the following to the project style sheet static/site_sytles.css to handle larger displays:

row {
  max-width: 980px;
}

Forms

This theme ships with a basic template tag for rendering forms that match the markup expected by foundation

To style forms, add the following to the top of your template

{% load foundation_tags %}

and include your form using the following markup:

<form method="POST" action="">
    {% csrf_token %}
    <fieldset class="form-controls">
        {{ form|as_foundation }}
    </fieldset>
    <fieldset class="form-actions">
        <button type="submit" class="button medium radius nice"">Submit</button>
    </fieldset>
</form>

Metadata

Release files for pinax-theme-foundation 0.1.4

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.4
File Size Uploaded Provenance Actions
pinax-theme-foundation-0.1.4.tar.gz 146.5 kB Without provenance Details for pinax-theme-foundation-0.1.4.tar.gz

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

Download URL pinax-theme-foundation-0.1.4.tar.gz
Size 146.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e4f46dad99cd86530b272be6759d745b8ad3d495e89cc9f8212e4dc4ce80ca22
BLAKE2b-256 checksum
How to use checksums
f4a4072f0d6e286bd379261dfcf3516addecec1180883357019b47264a93c6e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pinax-theme-foundation 0.1.4

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