Skip to content

Commit

Permalink
fix: remove useless css rule
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Sep 2, 2024
1 parent 350b440 commit 38fc708
Showing 1 changed file with 11 additions and 27 deletions.
38 changes: 11 additions & 27 deletions packages/core/src/api/normalize.less
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
@scrollbarwidth: 10px;

codeblitz-root {
/* 防止 overlay/modal 撑开页面元素 */
overflow: hidden;
/* 防止 mac 上的回退手势 */
overscroll-behavior-x: none;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
// 全局默认字体颜色
color: var(--foreground);
background-color: var(--editor-background);
}

codeblitz-root {
/* 防止 overlay/modal 撑开页面元素 */
overflow: hidden;
/* 防止 mac 上的回退手势 */
overscroll-behavior-x: none;

input::placeholder,
textarea::placeholder {
Expand Down Expand Up @@ -74,26 +71,13 @@ codeblitz-root {
li {
list-style: none;
}
}

/* ---- 该样式主要用于让带 tabindex='-1' 的元素焦点态时拥有高亮边框,以便于实现如Tree,List组件焦点态时的自动高亮边框效果 ---- */
[tabindex='-1'] {
&:focus {
outline-width: 1px;
outline-style: solid;
outline-offset: -1px;
/* ---- 该样式主要用于让带 tabindex='-1' 的元素焦点态时拥有高亮边框,以便于实现如Tree,List组件焦点态时的自动高亮边框效果 ---- */
[tabindex='-1'] {
&:focus {
outline-width: 1px;
outline-style: solid;
outline-offset: -1px;
}
}
}
/* -------- */

::selection {
color: inherit;
background-color: var(--selection-background);
}

:root {
--base-font-size: 13px;
--tabBar-height: 35px;
overflow-x: overlay;
overflow-y: overlay;
}

0 comments on commit 38fc708

Please sign in to comment.