Skip to content

Commit

Permalink
UnoCSS替代windicss导致应用样式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Sep 20, 2023
1 parent da5fbb5 commit b227d5f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/design/entry.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,16 @@
transform: translateY(0);
}
}

/*update-begin---author:wangshuai ---date:20230829 for:UnoCSS替代windicss 导致全局默认边框样丢失------------*/
*, :before, :after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: #e5e7eb;
}
.border-primary,.hover\:border-primary:hover {
--tw-border-opacity: 1;
border-color: rgba(24,144,255,var(--tw-border-opacity))
}
/*update-end---author:wangshuai ---date:20230829 for:UnoCSS替代windicss 导致全局默认边框样丢失------------*/
5 changes: 5 additions & 0 deletions src/design/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ ul {
margin: 0;
padding: 0;
}
img, video {
max-width: 100%;
height: auto;
}
// 保持 和 windi 一样的全局样式,减少升级带来的影响
4 changes: 3 additions & 1 deletion src/layouts/default/tabs/tabs.theme.card.less
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ html[data-theme='light'] {
}

.ant-tabs-tab-remove {
top: 5px;
//update-begin---author:scott ---date:2023-08-28 for:【QQYUN-6374】UnoCSS替代windicss导致应用样式问题--
/* top: 5px;*/
//update-end---author:scott ---date::2023-08-28 for:【QQYUN-6374】UnoCSS替代windicss导致应用样式问题--
left: 4px;

.anticon-close {
Expand Down

0 comments on commit b227d5f

Please sign in to comment.