소스 검색

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;