提交 2e2590b6 编写于 作者: J Johannes Rieken

use scale transform instead of translate, fixes #10241

上级 06d85431
......@@ -24,11 +24,11 @@
.monaco-action-bar .action-item {
cursor: pointer;
display: inline-block;
-ms-transition: -ms-transform 100ms ease;
-webkit-transition: -webkit-transform 100ms ease;
-moz-transition: -moz-transform 100ms ease;
-o-transition: -o-transform 100ms ease;
transition: transform 100ms ease;
-ms-transition: -ms-transform 80ms ease;
-webkit-transition: -webkit-transform 80ms ease;
-moz-transition: -moz-transform 80ms ease;
-o-transition: -o-transform 80ms ease;
transition: transform 80ms ease;
position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */
}
......@@ -37,11 +37,11 @@
}
.monaco-action-bar.animated .action-item.active {
-ms-transform: translate(0, -3px);
-webkit-transform: translate(0, -3px);
-moz-transform: translate(0, -3px);
-o-transform: translate(0, -3px);
transform: translate(0, -3px);
-ms-transform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */
-webkit-transform: scale(1.272019649, 1.272019649);
-moz-transform: scale(1.272019649, 1.272019649);
-o-transform: scale(1.272019649, 1.272019649);
transform: scale(1.272019649, 1.272019649);
}
.monaco-action-bar .action-item .icon {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册