简体   繁体   English

最小化的CSS样式适用于步进向导

[英]CSS styles applying differently when minified for stepper wizard

I have two plunkers of material design wizard selector.One is having minified version of css and the other expanded. 我有两个材料设计向导选择器插件,一个是缩小版本的CSS,另一个是扩展版本。 Both are acting differently upon stepper clicks. 步进单击时两者的行为不同。 I wonder the minified file is not taking the transition effects of .step-wizard .progressbar class. 我想知道缩小的文件是否没有采用.step-wizard .progressbar类的过渡效果。

Please suggest what could be the reason for this change even though the code is similar.One minified and the other expanded. 即使代码相似,也请提出造成此更改的原因是什么,一个缩小,另一个扩展。

-webkit-transition: width 0.6s ease;
  -o-transition: width 0.6s ease;
  transition: width 0.6s ease;

Minified CSS plunker: 缩小的CSS插件:

Minified css-stepper wizard 精简的CSS步进向导

Expanded CSS plunker 扩展CSS插件

Expanded css-stepper wizard 扩展的CSS步进向导

the stepper clicks work fine on both versions, only difference I see the border under .progressbar are different. 步进单击在两个版本上都可以正常工作,唯一的区别是我看到.progressbar下的边框不同。

expanded has: 扩展了:

border: 1px solid e5e6e6;

minified has: 缩小有:

border:1px solid;

I found your typo. 我发现了你的错字。 Your color code is wrong. 您的颜色代码有误。

Your color code is 您的颜色代码是

.progressbar {
position: absolute;
background-color: #0aa89e;
opacity: 0.4;
height: 12px;
border: 1px solid e5e6e6; // have a look here. color code has no #

} }

You need to change like this 你需要这样改变

.progressbar {
position: absolute;
background-color: #0aa89e;
opacity: 0.4;
height: 12px;
border: 1px solid #e5e6e6; // you need to change color code 

} }

Fixed it by removing border: 1px solid e5e6e6; 通过移除border: 1px solid e5e6e6;修复border: 1px solid e5e6e6; from .step-wizard .progressbar-stepper class 来自.step-wizard .progressbar-stepper

Link here 连结这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM