Skip to main content

A sphinx extension for designing beautiful, view size responsive web components.

Project description

sphinx-design (IN-DEVELOPMENT)

A sphinx extension for designing beautiful, view size responsive web components.

Created with inspiration from Bootstrap (v5), Material Design and Material-UI design frameworks.

Supported browsers

  • Chrome >= 60
  • Firefox >= 60
  • Firefox ESR
  • iOS >= 12
  • Safari >= 12
  • Explorer >= 12

(Mirrors: https://github.com/twbs/bootstrap/blob/v5.0.2/.browserslistrc)

Comparison to sphinx-panels

This package is an iteration on sphinx-panels and intends to replace it.

  • Replaces panel directive with top-level grid + children grid-item-card
    • less "bespoke" syntax
    • grid-item can be used when no card is needed
    • card can be used independently of grids
  • tabs changed:
    • top-level tab-set
    • tabbed -> tab-item
    • include :sync: option to synchronize tab selection across sets
  • Minimises direct use of CSS classes (encourage to not use them)
    • More declarative, easy to understand options
    • Easier to work with non-HTML outputs
    • Easier to improve/refactor
  • Updated Bootstrap CSS v4 -> v5
    • top-level grid can define both column numbers and gutter sizes
  • All CSS classes are prefixed with sd- (no clash with other theme/extension CSS)
  • All colors use CSS variables (customisable)

TODO

note that directly using classes should be used as a "last resort", and to please open an issue if you find you are commonly using a certain class.

grids items cannot contain headers; is this in anyway possible with docutils structure?

naming of directives/roles: standard prefix?

why are cards setup with "word-wrap: break-word;"?

check grid-items and tab-items are inside parents (or auto-wrap?)

handle latex

card header/footer syntax?

Use autoprefixer when compiling SASS (see https://getbootstrap.com/docs/5.0/getting-started/browsers-devices/#supported-browsers)

horizontal card (grid row inside card, picture on left)

horizontally scrollable cards: (see https://stackoverflow.com/questions/35993300/horizontally-scrollable-list-of-cards-in-bootstrap)

from inline-tabs:

  • Elegant design: Small footprint in the markup and generated website, while looking good.
  • Configurable: All the colors can be configured using CSS variables.
  • Works without JavaScript: JavaScript is not required for "essential" functionality, only for tab synchronisation.

Project details


Download files

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

Source Distribution

sphinx_design-0.0.1.tar.gz (84.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_design-0.0.1-py3-none-any.whl (86.9 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_design-0.0.1.tar.gz.

File metadata

  • Download URL: sphinx_design-0.0.1.tar.gz
  • Upload date:
  • Size: 84.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.11

File hashes

Hashes for sphinx_design-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c708179bb1dc9cf3630f6df1a22aa897478e75b76c98b97078dc3c3ccb8d4932
MD5 cc14f822a9dd9ec38f592d4113e7168a
BLAKE2b-256 38eb05865c699742cc749d24fd70d34782ae3a39fb67f3ec17ac6de20c73de83

See more details on using hashes here.

File details

Details for the file sphinx_design-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sphinx_design-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 86.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.11

File hashes

Hashes for sphinx_design-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2839a1a5e34656d4d948e67d9d0c50947a217468205f899a3b557fb7a7b1f53c
MD5 72ce485934e529f7f824595e09e2484f
BLAKE2b-256 6461ac223682d4cf1f4669bafdcbd3b7fdb9026fdfda3a48a82812026b0356aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page