liquid_feedback_frontend
diff style/mdl/tabs/_tabs.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/tabs/_tabs.scss Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -0,0 +1,114 @@ 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 + 1.23 +.mdl-tabs { 1.24 + display: block; 1.25 + width: 100%; 1.26 +} 1.27 + 1.28 +.mdl-tabs__tab-bar { 1.29 + display : flex; 1.30 + flex-direction : row; 1.31 + justify-content : center; // ⇾ 1.32 + align-content : space-between; // || 1.33 + align-items : flex-start; // ↓ 1.34 + 1.35 + height : 48px; 1.36 + padding : 0 0 0 0; 1.37 + margin : 0; 1.38 + border-bottom : 1px solid $tab-border-color; 1.39 +} 1.40 + 1.41 +.mdl-tabs__tab { 1.42 + margin: 0; 1.43 + border: none; 1.44 + padding: 0 24px 0 24px; 1.45 + 1.46 + float: left; 1.47 + position: relative; 1.48 + display: block; 1.49 + 1.50 + text-decoration: none; 1.51 + height: 48px; 1.52 + line-height: 48px; 1.53 + 1.54 + text-align: center; 1.55 + font-weight: 500; 1.56 + font-size: $layout-tab-font-size; 1.57 + text-transform: uppercase; 1.58 + 1.59 + color: $tab-text-color; 1.60 + overflow: hidden; 1.61 + 1.62 + .mdl-tabs.is-upgraded &.is-active { 1.63 + color: $tab-active-text-color; 1.64 + } 1.65 + 1.66 + .mdl-tabs.is-upgraded &.is-active:after { 1.67 + height: 2px; 1.68 + width: 100%; 1.69 + display: block; 1.70 + content: " "; 1.71 + bottom: 0px; 1.72 + left: 0px; 1.73 + position: absolute; 1.74 + background: $tab-highlight-color; 1.75 + animation: border-expand 0.2s cubic-bezier(0.4, 0.0, 0.4, 1) 0.01s alternate forwards; 1.76 + transition: all 1s cubic-bezier(0.4, 0.0, 1, 1); 1.77 + } 1.78 + 1.79 + & .mdl-tabs__ripple-container { 1.80 + display: block; 1.81 + position: absolute; 1.82 + height: 100%; 1.83 + width: 100%; 1.84 + left: 0px; 1.85 + top: 0px; 1.86 + z-index: 1; 1.87 + overflow: hidden; 1.88 + 1.89 + & .mdl-ripple { 1.90 + background: $tab-highlight-color; 1.91 + } 1.92 + } 1.93 +} 1.94 + 1.95 +.mdl-tabs__panel { 1.96 + display: block; 1.97 + 1.98 + .mdl-tabs.is-upgraded & { 1.99 + display: none; 1.100 + } 1.101 + 1.102 + .mdl-tabs.is-upgraded &.is-active { 1.103 + display: block; 1.104 + } 1.105 +} 1.106 + 1.107 +@keyframes border-expand { 1.108 + 0% { 1.109 + opacity: 0; 1.110 + width: 0; 1.111 + } 1.112 + 1.113 + 100% { 1.114 + opacity: 1; 1.115 + width: 100%; 1.116 + } 1.117 +}