META-INF.resources.frontend.styles.components.navi-drawer.css Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-vaadin-flow Show documentation
Show all versions of fluent-vaadin-flow Show documentation
Broderick Labs for fluent vaadin flow. Inherits common Vaadin components.
/*
* Copyright (c) 2008 - 2020. - Broderick Labs.
* Author: Broderick Johansson
* E-mail: [email protected]
* Modify date:2020-07-02 09:33:44
* _____________________________
* Project name: fluent-vaadin-flow
* Class name:D:/broderick/develop/vaadin/16/fluent-vaadin-flow/frontend/styles/components/navi-drawer.css
* Copyright (c) 2008 - 2020. - Broderick Labs.
*/
.navi-drawer {
z-index: 2;
}
.navi-drawer[open] + * {
pointer-events: none;
}
/* Scrim */
.navi-drawer__scrim {
animation: var(--transition-duration-m) lumo-overlay-backdrop-enter both;
background-color: var(--lumo-shade-20pct);
bottom: 0;
opacity: 0;
pointer-events: none;
position: absolute;
top: 0;
width: 100%;
will-change: opacity;
}
/* Content */
.navi-drawer__content {
background-color: var(--lumo-base-color);
box-shadow: var(--lumo-box-shadow-xs);
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100%;
position: relative;
transition: margin var(--transition-duration-m);
width: var(--navi-drawer-width);
z-index: 2;
}
/* Content */
.navi-drawer__before_menu {
height: unset;
box-shadow: none;
margin: var(--lumo-space-m) 0;
}
/* Search */
.navi-drawer vaadin-text-field {
box-shadow: inset 0 -1px var(--lumo-contrast-10pct);
box-sizing: border-box;
padding: var(--lumo-space-m);
width: 100%;
}
/* Footer button */
.navi-drawer__footer {
border-radius: 100%;
align-self: flex-end;
margin: var(--lumo-space-s);
height: 2em;
padding: 0px;
min-width: 2em;
}
/* Rail navigation */
.navi-drawer[rail]:not([open]) .navi-drawer__content {
left: 0;
overflow: hidden;
position: absolute;
top: 0;
transition: width var(--transition-duration-s);
width: var(--navi-drawer-rail-width);
}
.navi-drawer[rail][enable-swap]:not([open]):hover .navi-drawer__content {
width: var(--navi-drawer-width);
}
/* Push the content in rail mode. */
.navi-drawer[rail]:not([open]) + .root__column {
padding-left: var(--navi-drawer-rail-width);
}
@media (max-width: 1023px) {
/* Show scrim when drawer is open */
.navi-drawer[open] .navi-drawer__scrim {
opacity: 1;
pointer-events: all;
}
/* Don't push the content in rail mode on narrow viewports. */
.navi-drawer[rail]:not([open]) + .root__column {
padding-left: 0;
}
/* Fixed positioning on narrow viewports. */
.navi-drawer__content {
bottom: 0;
position: absolute;
top: 0;
}
/* Push the drawer out of view */
.navi-drawer:not([open]) .navi-drawer__content {
margin-left: calc(var(--navi-drawer-width) * -1.2);
}
/* Hide the footer */
.navi-drawer__footer {
display: none;
}
}
@media (min-width: 1024px) {
.navi-drawer[rail]:not([open]):not([enable-swap]) .account-switcher__avatar,
.navi-drawer[rail]:not([open]):not([enable-swap]) .navi-item__link iron-icon {
margin-left: auto;
margin-right: auto;
}
.navi-drawer[rail]:not([open]):not([enable-swap]) .account-switcher__title,
.navi-drawer[rail]:not([open]):not([enable-swap]) .account-switcher__email,
.navi-drawer[rail]:not([open]):not([enable-swap]) .brand-expression__title,
.navi-drawer[rail]:not([open]):not([enable-swap]) .navi-item[level],
.navi-drawer[rail]:not([open]):not([enable-swap]) .navi-item__link span,
.navi-drawer[rail]:not([open]):not([enable-swap]) .navi-item vaadin-button {
display: none;
}
.navi-drawer[rail]:not([open]):not([enable-swap]) .navi-drawer__footer {
align-self: center;
}
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .account-switcher__avatar,
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .navi-item__link iron-icon {
margin-left: auto;
margin-right: auto;
}
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .account-switcher__title,
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .account-switcher__email,
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .brand-expression__title,
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .navi-item[level],
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .navi-item__link span,
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .navi-item vaadin-button {
display: none;
}
.navi-drawer[rail][enable-swap]:not([open]):not(:hover) .navi-drawer__footer {
align-self: center;
}
}
/* === IE 11 workarounds === */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.navi-drawer__scrim,
.navi-drawer__content {
/* z-index is needed on each level for IE11 support. */
z-index: 2
}
.brand-expression .h3 {
font-size: 1.375rem;
}
}
@media all and (max-width: 1023px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.navi-drawer:not([open]) .navi-drawer__content {
/* IE11 doesn't understand nested calculations. */
margin-left: -18.9rem;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy