Skip to content

Commit

Permalink
Merge branch i/6202-remove-env.isEdge to master.
Browse files Browse the repository at this point in the history
Internal: Removed mentions on Edge. See #6202.
  • Loading branch information
Reinmar committed Apr 20, 2020
2 parents 89b199d + ce205a2 commit 02b507d
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ of the component, floating–point numbers have been used which, for the default
/* 14px at 13px font-size */
--ck-switch-button-toggle-inner-size: 1.0769230769em;
--ck-switch-button-toggle-spacing: 1px;
--ck-switch-button-translation: 1.3846153847em;
--ck-switch-button-translation: calc(
var(--ck-switch-button-toggle-width) -
var(--ck-switch-button-toggle-inner-size) -
2 * var(--ck-switch-button-toggle-spacing)
);
}

.ck.ck-button.ck-switchbutton {
Expand Down Expand Up @@ -89,15 +93,6 @@ of the component, floating–point numbers have been used which, for the default
& .ck-button__toggle__inner {
/*
* Move the toggle switch to the right. It will be animated.
*
* Edge is not supporting calc() in the transitions and animations, we need to hardcode this value (see ckeditor5-ui#433).
* It boils down to:
*
* calc(
* var(--ck-switch-button-toggle-width) -
* var(--ck-switch-button-toggle-inner-size) -
* 2 * var(--ck-switch-button-toggle-spacing) )
* )
*/
@mixin ck-dir ltr {
transform: translateX( var( --ck-switch-button-translation ) );
Expand Down

0 comments on commit 02b507d

Please sign in to comment.