liquid_feedback_frontend

diff style/mdl/tooltip/_tooltip.scss @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/style/mdl/tooltip/_tooltip.scss	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +/**
     1.5 + * Copyright 2015 Google Inc. All Rights Reserved.
     1.6 + *
     1.7 + * Licensed under the Apache License, Version 2.0 (the "License");
     1.8 + * you may not use this file except in compliance with the License.
     1.9 + * You may obtain a copy of the License at
    1.10 + *
    1.11 + *      http://www.apache.org/licenses/LICENSE-2.0
    1.12 + *
    1.13 + * Unless required by applicable law or agreed to in writing, software
    1.14 + * distributed under the License is distributed on an "AS IS" BASIS,
    1.15 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.16 + * See the License for the specific language governing permissions and
    1.17 + * limitations under the License.
    1.18 + */
    1.19 +
    1.20 +@import "../variables";
    1.21 +
    1.22 +.mdl-tooltip {
    1.23 +  transform: scale(0);
    1.24 +  transform-origin: top center;
    1.25 +  z-index: 999;
    1.26 +  background: $tooltip-background-color;
    1.27 +  border-radius: 2px;
    1.28 +  color: $tooltip-text-color;
    1.29 +  display: inline-block;
    1.30 +  font-size: $tooltip-font-size;
    1.31 +  font-weight: 500;
    1.32 +  line-height: 14px;
    1.33 +  max-width: 170px;
    1.34 +  position: fixed;
    1.35 +  top: -500px;
    1.36 +  left: -500px;
    1.37 +  padding: 8px;
    1.38 +  text-align: center;
    1.39 +}
    1.40 +.mdl-tooltip.is-active {
    1.41 +  animation: pulse 200ms $animation-curve-linear-out-slow-in forwards;
    1.42 +}
    1.43 +
    1.44 +.mdl-tooltip--large {
    1.45 +  line-height: 14px;
    1.46 +  font-size: $tooltip-font-size-large;
    1.47 +  padding: 16px;
    1.48 +}
    1.49 +
    1.50 +@keyframes pulse {
    1.51 +  0% {
    1.52 +    transform: scale(0);
    1.53 +    opacity: 0;
    1.54 +  }
    1.55 +  50% {
    1.56 +    // Fixes a weird bug with the interaction between Safari and the result of
    1.57 +    // the SASS compilation for the animation.
    1.58 +    // Essentially, we need to make sure that "50%" and "100%" don't get merged
    1.59 +    // into a single "50%, 100%" entry, so we need to avoid them having any
    1.60 +    // matching properties.
    1.61 +    transform: scale(0.99);
    1.62 +  }
    1.63 +  100% {
    1.64 +    transform: scale(1);
    1.65 +    opacity: 1;
    1.66 +    visibility: visible;
    1.67 +  }
    1.68 +}

Impressum / About Us