//
// Copyright 2019 Stijn de Witt. Some rights reserved.
// Licensed under the MIT Open Source license. 
// https://opensource.org/licenses/MIT
// See LICENSE for details.
//
// Based on code copyright 2018 Google Inc. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// http://www.apache.org/licenses/LICENSE-2.0
// See LICENSE-MDC for details.
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under these licenses is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the licenses for the specific language governing permissions and
// limitations under these licenses.
// 

.mdc-shape-container {
  display: inline-block;
  position: relative;
  overflow: hidden; // Prevent overflowed borders from encroaching on surrounding elements
}

.mdc-shape-container__corner {
  position: absolute;
  // IE and Edge require z-index set to 1 to properly mask ripple.
  z-index: 1;
}

.mdc-shape-container__corner::before,
.mdc-shape-container__corner::after {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  content: "";
}

.mdc-shape-container__corner--top-left {
  transform: rotate(-45deg);
}

.mdc-shape-container__corner--top-right {
  transform: rotate(45deg);
}

.mdc-shape-container__corner--bottom-right {
  transform: rotate(135deg);
}

.mdc-shape-container__corner--bottom-left {
  transform: rotate(-135deg);
}
