mirror of
https://github.com/material-components/material-web.git
synced 2024-09-17 16:48:02 +03:00
48d84f86ee
Why? We don't use https://getbem.com/ styles anymore now that we have shadow dom. Just cleanup to help with child changes. PiperOrigin-RevId: 579980984
24 lines
394 B
SCSS
24 lines
394 B
SCSS
//
|
|
// Copyright 2021 Google LLC
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
@mixin styles() {
|
|
.touch {
|
|
position: absolute;
|
|
top: 50%;
|
|
height: 48px;
|
|
left: 0;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
:host([touch-target='wrapper']) {
|
|
margin: max(0px, (48px - var(--_container-height)) / 2) 0;
|
|
}
|
|
|
|
:host([touch-target='none']) .touch {
|
|
display: none;
|
|
}
|
|
}
|