mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
Moves the `button` component to `components/button` and creates re-exports in the original `button` directory for backward compatibility. This change also updates internal imports and includes copyright headers in the re-export files.
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;
|
|
}
|
|
}
|