Sticky bar

This element indicates that the user is on a sub-brand page of SCHWARZ Enterprise. It also provides a "back-to-top" scrolling function.

It only exists in combination with our footer and has a fixed order that must be followed at the end of each web page.


Recommendations#


Elements#

The sticky bar is built from the following elements:

  1. Background
  2. Sender badge
  3. "to top" button

footer complete LG


Overall styling#

  • Text-style for the "to top"-button-text is always small.
  • The line height for the "to top"-button-text is 120%.
  • The background-color is always brand-primary-base.
  • The icon is always "arrow-up.svg".

States#

  • Only the "to top"-button has a hover/focus state.
TypesAttributesPreview
Defaulttext-color: basic-white
icon-color: basic-white
button: default
Hover / focustext-color: gray-lighter
icon-color: gray-lighter
button: hover

Position#

  • It always sticks at the bottom of the viewport as the user scrolls up or down the page.

Spacing & measurements#

  • The background expands over the whole screen.
  • The sender badge's height scales to the complete element height depending on the viewport.
  • Lock the sender badge's ratio to scale it.
TypesAttributesPreview
Width1264px (LG)
944px (MD)
584px (SM)
304px (XS)
Width: LG
Width: MD
Width: SM
Width: XS
 Height32px (LG)
24px (MD-XS)
Height: LG
Height: MD-XS
Horizontal spacing (LG)padding-left: 80px
padding-right: 88px
Horizontal-spacing: LG
Horizontal spacing (MD-XS)padding-left: 0px
padding-right: 8px
Horizontal-spacing: MD-XS
Horizontal spacing (to top)margin: 8pxHorizontal-spacing: to top
Vertical spacingAll elements are vertically centeredVertical-spacing
Icon size16 x 16pxIcon-size

Example#

sticky bar: example


What can be modified?#

  • Adjust the width of symbols according to the breakpoint.

Our workflow in Sketch#

  • Use the „Overrides“-function to edit the button text and it's state.

Change log#

Changed#

  • Doc: "Sticky bar" | Clean up the documentation for the right structure and sentence case

Changed#

  • "Sticky bar" | Changed symbols: with layer-style settings