liquid_feedback_frontend

diff style/mdl/icon-toggle/_icon-toggle.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/icon-toggle/_icon-toggle.scss	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -0,0 +1,121 @@
     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-icon-toggle {
    1.23 +  position: relative;
    1.24 +
    1.25 +  z-index: 1;
    1.26 +
    1.27 +  vertical-align: middle;
    1.28 +
    1.29 +  display: inline-block;
    1.30 +  height: $icon-toggle-size;
    1.31 +  margin: 0;
    1.32 +  padding: 0;
    1.33 +}
    1.34 +
    1.35 +.mdl-icon-toggle__input {
    1.36 +  line-height: $icon-toggle-size;
    1.37 +
    1.38 +  .mdl-icon-toggle.is-upgraded & {
    1.39 +    // Hide input element, while still making it respond to focus.
    1.40 +    position: absolute;
    1.41 +    width: 0;
    1.42 +    height: 0;
    1.43 +    margin: 0;
    1.44 +    padding: 0;
    1.45 +    opacity: 0;
    1.46 +    -ms-appearance: none;
    1.47 +    -moz-appearance: none;
    1.48 +    -webkit-appearance: none;
    1.49 +    appearance: none;
    1.50 +    border: none;
    1.51 +  }
    1.52 +}
    1.53 +
    1.54 +.mdl-icon-toggle__label {
    1.55 +  display: inline-block;
    1.56 +  position: relative;
    1.57 +  cursor: pointer;
    1.58 +  height: $icon-toggle-size;
    1.59 +  width: $icon-toggle-size;
    1.60 +  min-width: $icon-toggle-size;
    1.61 +  color: $icon-toggle-color;
    1.62 +  border-radius: 50%;
    1.63 +  padding: 0;
    1.64 +  margin-left: 0;
    1.65 +  margin-right: 0;
    1.66 +  text-align: center;
    1.67 +  background-color: transparent;
    1.68 +  will-change: background-color;
    1.69 +  transition: background-color 0.2s $animation-curve-default,
    1.70 +  color 0.2s $animation-curve-default;
    1.71 +
    1.72 +  &.material-icons {
    1.73 +    line-height: $icon-toggle-size;
    1.74 +    font-size: $icon-toggle-font-size;
    1.75 +  }
    1.76 +
    1.77 +  .mdl-icon-toggle.is-checked & {
    1.78 +    color: $icon-toggle-checked-color;
    1.79 +  }
    1.80 +
    1.81 +  .mdl-icon-toggle.is-disabled & {
    1.82 +    color: $icon-toggle-disabled-color;
    1.83 +    cursor: auto;
    1.84 +    transition: none;
    1.85 +  }
    1.86 +
    1.87 +  .mdl-icon-toggle.is-focused & {
    1.88 +    background-color: $icon-toggle-focus-color;
    1.89 +  }
    1.90 +
    1.91 +  .mdl-icon-toggle.is-focused.is-checked & {
    1.92 +    background-color: $icon-toggle-checked-focus-color;
    1.93 +  }
    1.94 +}
    1.95 +
    1.96 +
    1.97 +.mdl-icon-toggle__ripple-container {
    1.98 +  position: absolute;
    1.99 +  z-index: 2;
   1.100 +  top: -(($icon-toggle-ripple-size - $icon-toggle-size) / 2);
   1.101 +  left: -(($icon-toggle-ripple-size - $icon-toggle-size) / 2);
   1.102 +
   1.103 +  box-sizing: border-box;
   1.104 +  width: $icon-toggle-ripple-size;
   1.105 +  height: $icon-toggle-ripple-size;
   1.106 +  border-radius: 50%;
   1.107 +
   1.108 +  cursor: pointer;
   1.109 +
   1.110 +  overflow: hidden;
   1.111 +  -webkit-mask-image: -webkit-radial-gradient(circle, white, black);
   1.112 +
   1.113 +  & .mdl-ripple {
   1.114 +    background: $icon-toggle-color;
   1.115 +  }
   1.116 +
   1.117 +  .mdl-icon-toggle.is-disabled & {
   1.118 +    cursor: auto;
   1.119 +  }
   1.120 +
   1.121 +  .mdl-icon-toggle.is-disabled & .mdl-ripple {
   1.122 +    background: transparent;
   1.123 +  }
   1.124 +}

Impressum / About Us