浏览代码

Docs: Explained floating-point values in the switch button styles.

Aleksander Nowodzinski 7 年之前
父节点
当前提交
06f3e3d3a8
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css

+ 3 - 0
packages/ckeditor5-theme-lark/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;