Sha256: 1cf93325070a34b06406a3a5bf11444172756528ae5ec613e4f6ff88384b6afa

Contents?: true

Size: 1.96 KB

Versions: 2

Compression:

Stored size: 1.96 KB

Contents

/**
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import "variables";
@import "mixins";

.mdl-snackbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  margin-right: -50%;
  cursor: default;
  background-color: $snackbar-background-color;
  z-index: 10000;
  display: flex;
  font-family: $preferred_font;
  will-change: transform;
  transform: translate(0, 80px);
  transition: transform 0.25s $animation-curve-fast-out-linear-in;
  pointer-events: none;
  @media(max-width: $snackbar-tablet-breakpoint - 1) {
    width: 100%;
    left: 0;
    min-height: 48px;
    max-height: 80px;
  }
  @media(min-width: $snackbar-tablet-breakpoint) {
    min-width: 288px;
    max-width: 568px;
    border-radius: 2px;
  }
  &--active {
    transform: translate(0, 0);
    pointer-events: auto;
    transition: transform 0.25s $animation-curve-linear-out-slow-in;
  }

  &__text {
    padding: 14px 24px;
    vertical-align: middle;
    color: white;
  }

  &__action {
    background: transparent;
    border: none;
    color: $snackbar-action-color;
    text-transform: uppercase;
    padding: 14px 24px;
    @include typo-button();
    overflow: hidden;
    outline: none;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;

    &::-moz-focus-inner {
      border: 0;
    }
    &:not([aria-hidden]) {
      opacity: 1;
      pointer-events: auto;
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
material_design_lite-sass-1.1.1 vendor/assets/stylesheets/material/_snackbar.scss
material_design_lite-sass-1.1.0 vendor/assets/stylesheets/material/_snackbar.scss