2022-07-21 23:47:00 +03:00
|
|
|
//
|
|
|
|
// Copyright 2021 Google LLC
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
2022-10-19 21:37:19 +03:00
|
|
|
@mixin styles() {
|
2023-08-11 00:57:07 +03:00
|
|
|
.touch {
|
2022-09-29 21:13:51 +03:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
height: 48px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
transform: translateY(-50%);
|
2022-07-21 23:47:00 +03:00
|
|
|
}
|
2023-08-11 00:57:07 +03:00
|
|
|
|
2023-11-07 02:49:38 +03:00
|
|
|
:host([touch-target='wrapper']) {
|
|
|
|
margin: max(0px, (48px - var(--_container-height)) / 2) 0;
|
|
|
|
}
|
|
|
|
|
2023-08-11 00:57:07 +03:00
|
|
|
:host([touch-target='none']) .touch {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-07-21 23:47:00 +03:00
|
|
|
}
|