@berg-layout/core
v8.0.0
Published
This library contains the web-component version of berg-layout and all its styles.
Maintainers
Readme
@berg-layout/core
This library contains the web-component version of berg-layout and all its styles.
Usage
Usage and demo here.
Documentation
Styling
Since berg-layout uses web components, the layout styles are encapsulated in the shadow DOM.
You can still style them, but you need to use the pseudo element ::part() to pierce the encapsulation.
Styling panels
The panels have two ::part()
part="content"which wraps your contentpart="overflow"which handles overflow and wrapscontent
To style the content part, use ::part like this:
.berg-panel-top::part(content) {
padding: 16px;
}