Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Docs: Explained floating-point values in the switch button styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Jun 22, 2018
1 parent b92c3e0 commit 161408e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions theme/ckeditor5-ui/components/button/switchbutton.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
@import "../../../mixins/_rounded.css";
@import "../../../mixins/_disabled.css";

/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature
of the component, floating–point numbers have been used which, for the default font size
(see: --ck-font-size-base), will generate simple integers. */
:root {
/* 34px at 13px font-size */
--ck-switch-button-toggle-width: 2.6153846154em;
Expand Down

0 comments on commit 161408e

Please sign in to comment.