Ensure drawer content is hidden.
This commit is contained in:
@@ -20,19 +20,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#d {
|
#d {
|
||||||
// Adding for control, may not need this?
|
// Need to allow drawer controls to be visible.
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host([location='right']) #d {
|
:host([location=right]) #d {
|
||||||
// Position to the right.
|
// Position to the right.
|
||||||
left: unset;
|
left: unset;
|
||||||
right: 0;
|
right: 0;
|
||||||
transform: translateX(100%);
|
transform: translateX(100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
:host([location='right'][open]) #d {
|
:host([location=right][open]) #d {
|
||||||
transform: none;
|
transform: none;
|
||||||
box-shadow: 0px 0px 25px 0px black;
|
box-shadow: 0px 0px 25px 0px black;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ div.control-surround {
|
|||||||
padding-top: $drawer-padding-extend;
|
padding-top: $drawer-padding-extend;
|
||||||
padding-bottom: $drawer-padding-extend;
|
padding-bottom: $drawer-padding-extend;
|
||||||
}
|
}
|
||||||
:host([location='left']) div.control-surround {
|
:host([location=left]) div.control-surround {
|
||||||
@if $drawer-icon-size < 32 {
|
@if $drawer-icon-size < 32 {
|
||||||
// Ensure the clickable area is at least 32px wide.
|
// Ensure the clickable area is at least 32px wide.
|
||||||
padding-right: calc(32px - $drawer-icon-size);
|
padding-right: calc(32px - $drawer-icon-size);
|
||||||
}
|
}
|
||||||
left: 100%;
|
left: 100%;
|
||||||
}
|
}
|
||||||
:host([location='right']) div.control-surround {
|
:host([location=right]) div.control-surround {
|
||||||
@if $drawer-icon-size < 32 {
|
@if $drawer-icon-size < 32 {
|
||||||
// See note above.
|
// See note above.
|
||||||
padding-left: calc(32px - $drawer-icon-size);
|
padding-left: calc(32px - $drawer-icon-size);
|
||||||
@@ -48,12 +48,12 @@ ha-icon.control {
|
|||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host([location='left']) ha-icon.control {
|
:host([location=left]) ha-icon.control {
|
||||||
border-top-right-radius: $drawer-icon-size;
|
border-top-right-radius: $drawer-icon-size;
|
||||||
border-bottom-right-radius: $drawer-icon-size;
|
border-bottom-right-radius: $drawer-icon-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host([location='right']) ha-icon.control {
|
:host([location=right]) ha-icon.control {
|
||||||
border-top-left-radius: $drawer-icon-size;
|
border-top-left-radius: $drawer-icon-size;
|
||||||
border-bottom-left-radius: $drawer-icon-size;
|
border-bottom-left-radius: $drawer-icon-size;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
// Set the drawer relative to this host.
|
// Set the drawer relative to this host.
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
// Hide any content outside the main pane (e.g. side drawers) to ensure the
|
||||||
|
// user cannot scroll across to the drawers without opening them.
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
::slotted:not([name]) {
|
::slotted:not([name]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user