Skip to content

Commit

Permalink
pref: 删除 overflow:overlay 用法
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozzzi committed Apr 5, 2024
1 parent 92ea3f6 commit 60439c7
Show file tree
Hide file tree
Showing 26 changed files with 31 additions and 34 deletions.
8 changes: 4 additions & 4 deletions blossom-editor/src/renderer/src/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/* 定义滑块 内阴影+圆角 */
Expand Down
3 changes: 1 addition & 2 deletions blossom-editor/src/renderer/src/components/IconList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion blossom-editor/src/renderer/src/components/WebCollect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ const handleShowHotKeyDialog = () => {
padding: 0 5px;
position: absolute;
z-index: 2;
overflow-x: overlay;
overflow: hidden;
& > div {
@include themeColor(#5b5b5b, #909090);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const cwTheme: any = {
width: '40px'
},
'.cm-scroller': {
overflow: 'overlay',
// overflow: 'scroll',
outline: 'none'
},
'.cm-foldGutter': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
@include box(50%, 100%);
font-family: inherit;
font-size: inherit;
overflow: overlay;
overflow: scroll;
z-index: 2;

/* 定义滑块 内阴影+圆角 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
height 0.2s;

.toc-content {
overflow-y: overlay;
overflow-y: scroll;

.toc-1,
.toc-2,
Expand Down
2 changes: 0 additions & 2 deletions blossom-editor/src/renderer/src/views/doc/doc-tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -165,7 +164,6 @@

&::-webkit-scrollbar {
width: 5px;
height: 3px;
}

/* 定义滑块 内阴影+圆角 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
color: var(--bl-text-color);
font-size: 12px;
text-align: right;
overflow: overlay;
overflow: scroll;
padding-right: 5px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ defineExpose({ reload })
flex-wrap: wrap;
align-content: flex-start;
overflow: hidden;
overflow-y: overlay;
overflow-y: scroll;
padding-top: 10px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const toToc = (articleId: number) => {
flex-wrap: wrap;
align-content: flex-start;
overflow: hidden;
overflow-y: overlay;
overflow-y: scroll;
}
.placeholder {
Expand Down
2 changes: 1 addition & 1 deletion blossom-editor/src/renderer/src/views/home/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const fold = () => {
.chart-container {
@include box(100%, calc(100% - 315px));
overflow-x: hidden;
overflow-y: overlay;
overflow-y: scroll;
}
}
Expand Down
4 changes: 2 additions & 2 deletions blossom-editor/src/renderer/src/views/note/NoteIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@

.status-item-container {
height: 100%;
overflow-x: overlay;
white-space: nowrap;
overflow-x: hidden;

& > div {
height: 100%;
Expand Down
4 changes: 2 additions & 2 deletions blossom-editor/src/renderer/src/views/plan/PlanDaily.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand Down Expand Up @@ -150,7 +150,7 @@ const delDaily = (id: number) => {
white-space: normal;
word-wrap: break-word;
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll;
}
.del {
Expand Down
4 changes: 2 additions & 2 deletions blossom-editor/src/renderer/src/views/plan/PlanDailyInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const emits = defineEmits(['saved'])
white-space: normal;
word-wrap: break-word;
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll
}
img {
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion blossom-editor/src/renderer/src/views/plan/PlanDayInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ defineExpose({
align-content: flex-start;
flex-wrap: wrap;
overflow: scroll;
overflow-y: overlay;
overflow-y: scroll;
padding: 10px;
.color {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion blossom-web/src/views/note/NoteIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion blossom-web/src/views/plan/PlanDayInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 60439c7

Please sign in to comment.