Font Face
Teva Sans Latin

Drafts & Templates
PBS Templates

Primitives & components context

Primitives & components: Teva Global

Container

v0.0.1-alpha.0

This component defines the containers used in the VI design. All templates within this styleguide are build with the these containers.

Note that they are defined separately from the BS containers. We want to safely overlay legacy styling based on BS.

Wrap content inside the .vi-container to maintain a centered container with a max-width of 1920px. Without any modifiers it is used to define the outer edges of the VI design.


<!-- Container  -->
<div class="vi-container">
  ...
</div>

Column #

Use modifier --column to maintain a centered container with a max-width of 1024px.

On smaller devices left and right space between container and viewport is 30px. From a viewport width of 768px and up this space is 50px until max-width is reached.

Most of the times this container is used to define the outer edges of the content or components inside the VI design.


<!-- Container (mods: --column) -->
<div class="vi-container vi-container--column">
  ...
</div>

Column Visual #

Use modifier --column-visual to maintain a centered container with a max-width of 1124px.

There is no left or right space between container and viewport until max-width is reached.

Use to wrap visuals near a --column container. On smaller devices the visuals are full width.


<!-- Container (mods: --column-visual) -->
<div class="vi-container vi-container--column-visual">
  ...
</div>

Screen #

Use modifier --screen for fullscreen pages (as required by TWS)

Specificly the min-width is required for sticky position trickery.


<!-- Container (mods: --screen) -->
<div class="vi-container vi-container--screen">
  ...
</div>

Special purpose

Following modifiers are for very specific use cases. Never use them in the wild.


Slider align #

Use modifier --slider-align-start or --slider-align-end inside Card Slider when in aligned mode.

Padding has very specific adjustments.


<!-- Container (mods: --slider-align-start) -->
<div class="vi-container vi-container--slider-align-start">
  ...
</div>
<!-- Container (mods: --slider-align-end) -->
<div class="vi-container vi-container--slider-align-end">
  ...
</div>

Table align #

Use modifier --table-align-start or --table-align-end inside Table when in aligned mode.

Padding has very specific adjustments.


Stylesheets #

The following stylesheet is required to display this component.


Usage documentation #

Usage documentation can be found here.


Changelog #

Changelog

Changed

  • Print: css adjustments
  • Changed modifiers --slider-align-left and --slider-align-right to --slider-align-start and --slider-align-end.

Added

  • 31 Mar 2023 - Add modifier --screen to fix table sticky position issues.
  • Special purpose modifiers --table-align-left and --table-align-right for use with Table when in aligned mode.
  • RTL support
  • Special purpose modifiers --slider-align-left and --slider-align-right for use with Card Slider when in aligned mode.
  • Initial draft