Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vcl/app-area

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vcl/app-area

The background and layout of the app's viewport and app area

  • 0.6.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

VCL app-area

The background and layout of the app's viewport and app area.

Features

Sets @viewport { width: device-width; }.

Introduces the following concept:

  • The app viewport which is the highest level content container (in HTML this should be the body tag) and defines its background color.

  • The app area which holds high level areas like header, content, footer, sidebar etc. Layout-wise it defines the boundary for these elements relative to the viewport.

The vclLayoutWidth utility class can be used to give containers the width of the app area. This is useful if containers with a 100% spanning background are needed and the actual content should be limited to the width of the layout.

Usage

Viewport with centered app area which contains the main content area:

basic example

Classes

  • vclViewport: In HTML the body tag.
  • vclViewportBg: Utility to apply the background color of the viewport.
  • vclApp: Main application area.
  • vclLayoutWidth: Utility to apply the width of the app area.

Modifiers

Variables

  • --app-viewport-bg-color
  • --app-area-bg-color
  • --app-area-max-width
  • --app-area-min-width

Demo

example.html on GH-pages.

Keywords

FAQs

Package last updated on 18 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc