From 161408e79d5af6d2bdb0804fde6421d655497dbb Mon Sep 17 00:00:00 2001 From: Aleksander Nowodzinski Date: Fri, 22 Jun 2018 16:07:56 +0200 Subject: [PATCH] Docs: Explained floating-point values in the switch button styles. --- theme/ckeditor5-ui/components/button/switchbutton.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/theme/ckeditor5-ui/components/button/switchbutton.css b/theme/ckeditor5-ui/components/button/switchbutton.css index ea121c7..6ce2765 100644 --- a/theme/ckeditor5-ui/components/button/switchbutton.css +++ b/theme/ckeditor5-ui/components/button/switchbutton.css @@ -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;