pref: 删除 overflow:overlay 用法

This commit is contained in:
xiaozzzi 2024-04-05 17:43:57 +08:00
parent 92ea3f6274
commit 60439c7dbd
26 changed files with 31 additions and 34 deletions

View File

@ -31,14 +31,14 @@ img {
/* 定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸 */
::-webkit-scrollbar {
/* 滚动条宽度 */
width: 7px;
width: 5px;
/* 滚动条高度 */
height: 7px;
height: 5px;
}
::-webkit-scrollbar:hover {
width: 7px;
height: 7px;
width: 5px;
height: 5px;
}
/* 定义滑块 内阴影+圆角 */

View File

@ -125,8 +125,7 @@ const copyIcon = (icon: string) => {
align-content: flex-start;
flex-wrap: wrap;
background-color: var(--bl-html-color);
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll;
.icon-item {
@include flex(column, space-between, center);

View File

@ -242,7 +242,7 @@ const showWebCollectCard = (card: boolean) => {
.web-item-container {
@include box(100%, calc(100% - 31px));
overflow-y: overlay;
overflow-y: scroll;
.placeholder {
@include font(15px, 300);

View File

@ -191,7 +191,7 @@ const cancelDownload = async () => {
@include flex(column, flex-start, flex-start);
align-content: flex-start;
flex-wrap: wrap;
overflow-x: overlay;
overflow-x: scroll;
padding: 10px;
.bak-item {

View File

@ -106,8 +106,8 @@ onMounted(() => {
.history-list {
@include box(100%, calc(100% - 80px - 21px));
overflow-y: overlay;
padding: 10px 15px 10px 10px;
overflow-y: scroll;
.history-item {
@include box(100%, 55px);

View File

@ -111,7 +111,7 @@ const download = (id: string) => {
@include flex(column, flex-start, flex-start);
align-content: flex-start;
flex-wrap: wrap;
overflow-x: overlay;
overflow-x: scroll;
padding: 10px;
.recycle-item {

View File

@ -87,7 +87,7 @@ onMounted(() => {
@include box(100%, 100%);
font-size: 15px;
padding: 30px;
overflow-y: overlay;
overflow-y: scroll;
overflow-x: hidden;
line-height: 23px;

View File

@ -59,7 +59,7 @@ const openArticleLogWindow = () => {
background-color: var(--bl-editor-gutters-bg-color);
.status-item-container {
overflow-x: overlay;
overflow-x: hidden;
white-space: nowrap;
& > div {

View File

@ -400,7 +400,7 @@ const handleShowHotKeyDialog = () => {
padding: 0 5px;
position: absolute;
z-index: 2;
overflow-x: overlay;
overflow: hidden;
& > div {
@include themeColor(#5b5b5b, #909090);

View File

@ -74,7 +74,7 @@ export const cwTheme: any = {
width: '40px'
},
'.cm-scroller': {
overflow: 'overlay',
// overflow: 'scroll',
outline: 'none'
},
'.cm-foldGutter': {

View File

@ -105,7 +105,7 @@
@include box(50%, 100%);
font-family: inherit;
font-size: inherit;
overflow: overlay;
overflow: scroll;
z-index: 2;
/* 定义滑块 内阴影+圆角 */

View File

@ -9,7 +9,7 @@
.content-view {
@include box(100%, calc(100% - 25px));
@include themeBg(#f9f9f9, #262626);
overflow-y: overlay;
overflow-y: scroll;
overflow-x: hidden;
padding: 10px;
}

View File

@ -6,7 +6,7 @@
height 0.2s;
.toc-content {
overflow-y: overlay;
overflow-y: scroll;
.toc-1,
.toc-2,

View File

@ -146,7 +146,6 @@
:deep(.is-current) {
& > .el-tree-node__content {
border-radius: 5px;
// background-color: var(--el-color-primary-light-8);
&:has(.menu-divider) {
background-color: transparent;
@ -165,7 +164,6 @@
&::-webkit-scrollbar {
width: 5px;
height: 3px;
}
/* 定义滑块 内阴影+圆角 */

View File

@ -7,7 +7,7 @@
color: var(--bl-text-color);
font-size: 12px;
text-align: right;
overflow: overlay;
overflow: scroll;
padding-right: 5px;
}

View File

@ -87,7 +87,7 @@ defineExpose({ reload })
flex-wrap: wrap;
align-content: flex-start;
overflow: hidden;
overflow-y: overlay;
overflow-y: scroll;
padding-top: 10px;
}

View File

@ -90,7 +90,7 @@ const toToc = (articleId: number) => {
flex-wrap: wrap;
align-content: flex-start;
overflow: hidden;
overflow-y: overlay;
overflow-y: scroll;
}
.placeholder {

View File

@ -221,7 +221,7 @@ const fold = () => {
.chart-container {
@include box(100%, calc(100% - 315px));
overflow-x: hidden;
overflow-y: overlay;
overflow-y: scroll;
}
}

View File

@ -140,7 +140,7 @@ const notes = ref<any>([])
padding-left: 40px;
z-index: 3;
overflow: auto;
overflow-y: overlay;
overflow-y: scroll;
.placeholder {
@include font(14px, 300);
@ -236,7 +236,7 @@ const notes = ref<any>([])
white-space: pre-line;
word-wrap: break-word;
overflow: auto;
overflow-y: overlay;
overflow-y: scroll;
user-select: text;
cursor: cell;
}

View File

@ -294,8 +294,8 @@
.status-item-container {
height: 100%;
overflow-x: overlay;
white-space: nowrap;
overflow-x: hidden;
& > div {
height: 100%;

View File

@ -102,7 +102,7 @@ const delDaily = (id: number) => {
.daily-container {
@include box(100%, 100%);
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll;
.title {
width: 100%;
@ -150,7 +150,7 @@ const delDaily = (id: number) => {
white-space: normal;
word-wrap: break-word;
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll;
}
.del {

View File

@ -191,7 +191,7 @@ const emits = defineEmits(['saved'])
white-space: normal;
word-wrap: break-word;
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll
}
img {
@ -208,7 +208,7 @@ const emits = defineEmits(['saved'])
align-content: flex-start;
flex-wrap: wrap;
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll;
div {
margin: 1px;

View File

@ -184,7 +184,7 @@ defineExpose({
align-content: flex-start;
flex-wrap: wrap;
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll;
padding: 10px;
.color {

View File

@ -145,7 +145,7 @@
@include box(100%, calc(100% - 60px));
@include flex(column, flex-start, center);
position: relative;
overflow-y: overlay;
overflow-y: scroll;
padding: 20px 0;
.drag-container {

View File

@ -168,7 +168,7 @@ const top = () => {
white-space: pre-line;
word-wrap: break-word;
overflow: auto;
overflow-y: overlay;
overflow-y: scroll;
user-select: text;
}
.time {

View File

@ -157,7 +157,7 @@ const emits = defineEmits(['saved'])
align-content: flex-start;
flex-wrap: wrap;
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll;
padding: 10px 10px 8px 0;
.color {