@antdv-next/docs-plugins 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antdv-next/docs-plugins",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "private": false,
6
6
  "description": "Vite / markdown-it plugins and demo components for docs-base documentation sites",
7
7
  "license": "MIT",
@@ -158,9 +158,18 @@ const useStyles = createStyles(({ token }) => ({
158
158
  '& .cm-content': {
159
159
  lineHeight: 2,
160
160
  },
161
+ // CodeMirror 挂载/聚焦时首行会带激活行样式与聚焦描边,与 antdv-next 原
162
+ // code-demo 一致地隐藏,避免展开/收起代码时首行出现样式变化
163
+ // (选择器特异性足够,无需 !important)
161
164
  '& .cm-activeLine, & .cm-activeLineGutter': {
162
165
  background: 'transparent',
163
166
  },
167
+ '&.cm-focused': {
168
+ outline: 'none',
169
+ },
170
+ '&.cm-focused .cm-activeLine, &.cm-focused .cm-activeLineGutter': {
171
+ background: 'transparent',
172
+ },
164
173
  },
165
174
  '& .cm-gutters': {
166
175
  background: 'transparent',