EverWeb Widgets

Main Section

The main section has an h1 heading, an optional image with alt text and a text block. The image is centered and has adjustable percentage width. The main section can have its font color, background and border color different from that of the sidebar.
The total height of the item is defined by the amount of content in the main section. There is a control for setting the maximum width and the vertical spacing from the items above and below it.

Sidebar

The sidebar has a contrasting header with scroll icons and up to 48 items with heading, text and a link.
There is a slider to adjust its width relative to the main section when the two items sit side by side when viewed on computers and tablets in landscape mode. On tablets in portrait mode and mobile phones, the sidebar slides below the main section.
Scroll
Up to 48 items can be inserted into the sidebar and, when these exceed the height of the main section, they are hidden and revealed on scroll.
The sidebar is an HTML5 aside element which contains the article elements which make up the content. This is wrapped in a container which is given absoute positioning to force it to be confined to the height of the main section. The aside is given 100% height with the overflow set to scroll.
When the item is viewed on a tablet in portrait mode or a mobile phone, the sidebar items become full width and stack themselves vertically and their container expands to full height.
Styles
The sidebar can have its own border and a line spacer between each item. The CTA style link tab can have a border and a hover color.

© EverWeb Widgets -