@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
60 lines (50 loc) • 1.09 kB
CSS
/* stop scrolling */
*,
html {
scroll-behavior: auto ;
}
.sticky-menu,
#portal-sidebar-menu {
display: none ;
}
.dnb-live-editor,
.dnb-live-toolbar {
padding: 0 ;
}
.dnb-app-content {
margin-left: 0 ;
}
[data-visual-test-wrapper] {
position: relative;
z-index: 9999;
/* to get smaller width to the right (no white space) */
display: inline-block;
/**
* to get a space around the element,
* so we can include a box-shadow in the screenshot
*/
padding: 1rem;
margin: -1rem;
box-shadow: 0 0 0 1px #fff;
background: #fff;
}
[data-visual-test]:has(
.dnb-section[style*='--outset--medium: 1'],
.dnb-section[style*='--outset--large: 1']
) {
@media (min-width: 40em) {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
/**
* Hide "Preparing requested page" popup
*/
gatsby-qod {
opacity: 0;
}
[data-visual-test].hide-page-content
div.eufemia-theme:not(.dnb-modal__content) {
/* NB: visibility: hidden; does not work here, because playwright does not find the selectors anymore */
opacity: 0;
}