Skip to content

Commit

Permalink
🔖 v1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Nov 16, 2022
1 parent 23c4790 commit e8f15b6
Show file tree
Hide file tree
Showing 9 changed files with 418 additions and 362 deletions.
5 changes: 5 additions & 0 deletions CHANGE_LOGS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.4.5/2022.11.16

* :bug: 待办列表折叠问题
* :bug: 修复列表转导图、列表转表格、列表转看板出现错位、列表竖线遮挡的问题

## v1.4.4/2022.10.24
- :fire: 舍弃待办列表完成后的删除线样式(个人喜好,这样能对待办列表进行更多处理,不然打了一个勾之后,就很难再添加内容)

Expand Down
92 changes: 0 additions & 92 deletions style/attr.css
Original file line number Diff line number Diff line change
Expand Up @@ -262,98 +262,6 @@ rotyle-wysiwyg [data-node-id][custom-f="20"] div[contenteditable="true"]:after
/* width:calc(100% - 40px); */
}

/* -----------------------------------------------f:table列表转化为表格------------------------------------------- */
/* 设置整个列表表格的缩进 */
.list[data-node-id][data-type="NodeList"][custom-f="table"],
.list[data-node-id][data-type="NodeList"][custom-f="bg"] {
padding: 4px;
}

/* 所有子项目的表格(除去第一列其余的列),包含溢出的空白部分,所以才会有边框*/
.protyle-wysiwyg *[custom-f="table"] .li .list,
.protyle-wysiwyg *[custom-f="bg"] .li .list {
padding: 0px;
margin: 0px !important;
width: 80%;
outline: 1px solid #bbc9be;
/* flex-direction:row; */
}

/* 对所有子列表项设置格式*/
.protyle-wysiwyg *[custom-f="table"] .li,
.protyle-wysiwyg *[custom-f="bg"] .li {
display: flex;
outline: 1px solid #bbc9be;
border-radius: 0px;
background-color: var(--b3-theme-background);
background-image: url('../src/paper.png');
/* background-color: transparent; */
}

/* 调整每个子列表项右侧边距 */
.protyle-wysiwyg *[custom-f="table"] .li>div,
.protyle-wysiwyg *[custom-f="bg"] .li>div {
margin-right: 6px;
}


.protyle-wysiwyg *[custom-f="table"] [data-node-id].li>[data-node-id],
.protyle-wysiwyg *[custom-f="bg"] [data-node-id].li>[data-node-id] {
margin-left: 20px !important;
}

/* 对符号后文字设置格式 */
.protyle-wysiwyg *[custom-f="table"] .p,
.protyle-wysiwyg *[custom-f="bg"] .p {
flex: 1;
text-align: left;
align-items: center;
display: flex;
min-width: calc(25%);
height: auto;
margin: 0;
text-align: justify;
}

.protyle-wysiwyg [data-subtype="o"][custom-f="table"] .p div,
.protyle-wysiwyg [data-subtype="o"][custom-f="bg"] .p div {
margin-left: 7px !important;
}

.protyle-wysiwyg *[custom-f="table"] .li>.list>.li,
.protyle-wysiwyg *[custom-f="bg"] .li>.list>.li {
outline: none !important;
border-top: 1px solid #bbc9be;
}

.protyle-wysiwyg *[custom-f="table"] .li>.list>.li:first-of-type,
.protyle-wysiwyg *[custom-f="bg"] .li>.list>.li:first-of-type {
border-top: none;
}

/* 去除小竖线*/
.list[data-node-id][data-type="NodeList"][custom-f="table"] .li>:before,
.list[data-node-id][data-type="NodeList"][custom-f="bg"] .li>:before {
display: none;
}

/*设置前面的符号居中对齐 */
.list[data-node-id][data-type="NodeList"][custom-f="table"] .protyle-action,
.list[data-node-id][data-type="NodeList"][custom-f="bg"] .protyle-action {
position: absolute;
top: 50%;
transform: translate(0, -50%);
width: 20px;
}

/* 表格设置为100%宽度,即填充整个空间*/
.protyle-wysiwyg *[custom-f="table"] .table,
.protyle-wysiwyg *[custom-f="bg"] .table {
width: 100%;
}

/* ---------------------------------------------------------列表转化为表格 END-------------------------------------------------- */

/* f:scroll 表格和代码块控制宽度------------------------------------------ */
.protyle-wysiwyg:not([id="preview"]) [data-node-id][custom-f~=scroll].code-block::-webkit-scrollbar-thumb,
.protyle-wysiwyg:not([id="preview"]) [data-node-id][custom-f~=scroll][data-type="NodeTable"] ::-webkit-scrollbar-thumb{
Expand Down
86 changes: 0 additions & 86 deletions style/kanban.css

This file was deleted.

118 changes: 118 additions & 0 deletions style/list2board.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
.protyle-wysiwyg .list[custom-f~=kb]{
--kbline-boarditem-minwidth: 14rem;
/*看板卡片的最小宽度*/
--kb--li--background:#ffffff;
}
/*————————————————————列表转看板————————————————————*/

.protyle-wysiwyg .list[custom-f~=kb][data-node-id][data-type="NodeList"]
{
display: flex;
}
.protyle-wysiwyg *[custom-f~=kb].list[data-node-index]{
width:100%!important;
overflow-x:auto;/*溢出滚动*/
padding-bottom:50px;
}
/* ————————————————————所有子项目的表格(除去第一列其余的列),包含溢出的空白部分,所以才会有边框—————————————————————— */
.protyle-wysiwyg *[custom-f~=kb] .li .list{
min-width: var(--kbline-boarditem-minwidth);
border-radius: 3px;
transform: translate(-30px, 0);
}
/*去除竖线*/
.protyle-wysiwyg .list[custom-f="kb"][data-node-id] .li:before {
display: none;
}

/* ————————————————————对所有子列表项设置格式———————————————————— */

.protyle-wysiwyg *[custom-f~=kb] .li .li{
border-radius: 3px;
padding: 0.4em 0 0.1em 0 ;
margin-bottom: 6px;
background-color:var(--kb--li--background);
box-shadow: rgba(15, 15, 15, 0.1) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 2px 4px;
}

/*只处理每个列表的第一行*/
.protyle-wysiwyg *[custom-f~=kb][data-node-index] > div > div:nth-child(2),
.protyle-wysiwyg .sb>*[custom-f~=kb] > div > div:nth-child(2)
{
min-width: var(--kbline-boarditem-minwidth);
border-radius: 3px;
padding:9px 0px 11px 30px;
left:-30px;
margin-bottom: 10px;
}
.protyle-wysiwyg *[custom-f~=kb][data-node-index] > div > div:nth-child(2)[data-type="NodeHeading"],
.protyle-wysiwyg .sb>*[custom-f~=kb] > div > div:nth-child(2)[data-type="NodeHeading"]
{

padding:5px 0px 7px 30px;
}
.protyle-wysiwyg *[custom-f~=kb] .li [data-type="NodeHeading"]>[spellcheck="false"]:after{
display:none;
}/*取消标题层级提示*/

/*标题行循环颜色*/
.protyle-wysiwyg *[custom-f~=kb][data-node-index] > div:nth-child(4n-3) > div:nth-child(2),
.protyle-wysiwyg .sb>*[custom-f~=kb] > div:nth-child(4n-3) > div:nth-child(2){
background-color:var(--b3-card-error-background);
}
.protyle-wysiwyg *[custom-f~=kb][data-node-index] > div:nth-child(4n-2) > div:nth-child(2),
.protyle-wysiwyg .sb>*[custom-f~=kb] > div:nth-child(4n-2) > div:nth-child(2){
background-color:var(--b3-card-warning-background);
}
.protyle-wysiwyg *[custom-f~=kb][data-node-index] > div:nth-child(4n-1) > div:nth-child(2),
.protyle-wysiwyg .sb>*[custom-f~=kb] > div:nth-child(4n-1) > div:nth-child(2){
background-color:var(--b3-card-info-background);
}
.protyle-wysiwyg *[custom-f~=kb][data-node-index] > div:nth-child(4n) > div:nth-child(2),
.protyle-wysiwyg .sb>*[custom-f~=kb] > div:nth-child(4n) > div:nth-child(2){
background-color:var(--b3-card-success-background);
}

/*只处理每个列表第一行的点*/
.protyle-wysiwyg *[custom-f~=kb][data-node-index] > div > div:nth-child(1),
.protyle-wysiwyg .sb>*[custom-f~=kb] > div > div:nth-child(1)
{
transform: translate(4px,5px);
z-index:2;
}

/* ————————————————————去除小竖线———————————————————— */
.list[custom-f="kb"][data-node-id] .li:before {
display: none;
}

/* 对除了第一层之外的子列表 .protyle-action 移动 */
.protyle-wysiwyg *[custom-f~=kb] .li .list .protyle-action{
position: absolute;
top: 50%;
transform: translate(0, -50%);
border-radius: 3px;
}

/* 引用计数 */
.list[custom-f="kb"] .protyle-attr--refcount{
height: 14px;
width: 14px;
left:-44px;
top:9px;
padding: 0;
line-height: 14px;
text-align: center;
}

.list[custom-f="kb"] .list .protyle-attr--refcount{
height: 14px;
width: 14px;
left:-14px;
top:9px;
padding: 0;
line-height: 14px;
text-align: center;
}

/*————————————————————列表转化看板 END————————————————————*/
Loading

0 comments on commit e8f15b6

Please sign in to comment.