Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Django-CMS Plugin for accordion tabs. It's easy to style and does not rely on big dependencies

Project Description

A plugin for django CMS which provides you an easy way to add accordion tabs to your pages. It’s minimalistic and can be easily customized via CSS.

Installation

To get started using djangocms-simple-accordion:

  • install it with pip:

    $ pip install djangocms-simple-accordion
    
  • add the plugins to INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'djangocms_accordion',
        ...
    )
    
  • run migrate djangocms_accordion.

Dependencies

  • Currently this plugin depends on bootstrap and glyphicons.

Customization

You can just override some of the CSS rules. In order to find the correct one, nspect the generated HTML in the development tools in the browser of your choice.

However, here are some commonly used customization options to get you started:

Tab-Icons

.accordion-title .accordion-toggleIcon:after {
  font-size: 13px;
  content: '\e080';
}
.accordion-title.active .accordion-toggleIcon:after {
  content: '\e114';
}

Accordion Color

.accordion {
  background-color: red;
}

Title font size

.accordion-title {
  font-size: 20px;
}

Transition Time

.u-accordion-transition {
  -webkit-transition: ease-in-out .2s;
  -moz-transition: ease-in-out .2s;
  -ms-transition: ease-in-out .2s;
  -o-transition: ease-in-out .2s;
  transition: ease-in-out .2s;
}
Release History

Release History

This version
History Node

0.0.2.1

History Node

0.0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
djangocms-simple-accordion-0.0.2.1.tar.gz (6.5 kB) Copy SHA256 Checksum SHA256 Source Apr 25, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting