balo85/foundation_paragraphs

Define usefull paragraphs to be used with Zurb Foundation 6 theme

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:drupal-module

pkg:composer/balo85/foundation_paragraphs

1.0.8.2 2021-11-17 20:26 UTC

This package is auto-updated.

Last update: 2025-12-18 20:44:52 UTC


README

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • Maintainers

INTRODUCTION

The Foundation 6 Utils Paragraphs defines a custom set of Paragraphs used as the basis for content management. We love the Zurb Foundation framework, as we use it in almost all of our websites. To make basic development faster, I've added all the standard paragraphs we use on our websites to this module. Always check the Zurb Foundation document for any information.

REQUIREMENTS

This module requires the following modules:

Please note that you need a custom theme based on Zurb Foundation framework to use this module. We suggest ZURB Foundation(https://www.drupal.org/project/zurb_foundation) theme as starter theme.

INSTALLATION

Install the Foundation 6 Utils Paragraphs module as you would normally install a contributed Drupal module. Visit https://www.drupal.org/node/1897420 for further information.

CONFIGURATION

This module needs no configuration. However, you will find two scss files in the utils folder.

spacers.scss help to manage the top and bottom spaces that are used in the grid system. Please check the file to learn how to use it.

theme-minimal-styles.scss give you a basic skeleton to manage the grid and cell background. Please feel free to use it as a starting point in your theme.

For any informations about using the single paragraphs check under.

FAQ

Q: How does Foundation Grid paragraph work?

A: Foundation Grid is the main paragraph of the set, and it is the one you need to manage on your content type. This paragraph makes it easy for you to manage

  • Custom ID and custom classes of the grid.
  • Both top and bottom spacing, both padding and margin. We define a basic set of spaces (0, 1, 2, 3), but feel free to add more when you need. Use spacers.scss as help to manage them.
  • Grid Container type, based on Zurb Foundation XY Grid.
  • Cell Gutters and Collapse gutters, based on Zurb Foundation XY Grid.
  • Horizontal and vertical cell alignment, based on Zurb Foundation Flexbox Utilities.
  • Background, both as image and color. You have an additional checkbox to manage the background as full witdh. Please check theme-minimal-styles.scss for a basic idea to how to manage it.
  • Cells, to manage each content inside the grid.

Q: How does Foundation Cell paragraph work?

A: Foundation Cell is another main paragraph of the set, and makes you define a custom cell in your grid system. This paragraph makes it easy for you to manage

  • Custom ID and custom classes of the cell.
  • For each standard breakpoint (small, medium and large), the opportunity to define the size and the offset, based on Zurb Foundation XY Grid.
  • Vertical alignment of the cell, based on Zurb Foundation Flexbox Utilities.
  • Background, both as image and color. You have two additional checkboxes to manage the background as expand on left or right. Please check theme-minimal-styles.scss for a basic idea to how to manage it.
  • Elements, to manage each content inside the cell.

Q: How does Text element paragraph works?

A: The paragraph give you the opportunity to add a single WYSIWYG text editor in the cell.

Q: How does Image paragraph works?

A: The paragraph give you the opportunity to add a single image in the cell. The predefined path for the upload is images/paragraphs/[date:custom:Y]-[date:custom:m]

Q: How does Interchange paragraph works?

A: The paragraph give you the opportunity to add a single Interchange image in the cell. You can manage 3 images, small, medium and large.

The predefined path for the uploads is images/paragraphs/[date:custom:Y]-[date:custom:m]

Q: How does Accordions and Responsive Accordions Tabs paragraphs works?

A: These two paragraphs make it easy for you to manage these two elements of Zurb Foundation, both Accordion and Responsive Accordion Tabs. Please read the official document for the definition of the settings.

Q: How does Highlight paragraph works?

A: The paragraph allows you to add a single WYSIWYG text editor in the cell, plus the ability to handle custom IDs and custom classes. We find that there is a need to manage Highlight content with a different style from Text, so we are keeping this content as standard.

Q: How does CTA Banner paragraph works?

A: The paragraph gives you the opportunity to add a block with the following field

  • Custom ID and custom classes
  • CTA link
  • Title
  • Text element as WYSIWYG editor
  • Background image There are always a few CTA banners to deal with, so we keep this content as standard.


Q: How does Separator paragraph works?

A: Sometimes you need to add an empty space, or a stylized space, between different paragraphs. This paragraph gives you the opportunity to manage it. You can define

  • Custom ID and custom classes
  • Top and bottom margin. We define a basic set of spaces (0, 1, 2, 3), but feel free to add more when you need. Use spacers.scss as help to manage them.
  • Separator type

Q: How does Drupal Block, Drupal View and Video paragraphs works?

A: This 3 paragraphs give you the opportunity to manage this standard items. Please check the related modules for more information

MAINTAINERS

Supporting organization: