File tree Expand file tree Collapse file tree 5 files changed +44
-12
lines changed
Expand file tree Collapse file tree 5 files changed +44
-12
lines changed Original file line number Diff line number Diff line change 1212- 修复闪卡挖空样式无法显示问题 | Fixed the issue of the flash card blank style not being displayed.
1313- 调整设置对话框样式 | Adjust the style of the settings dialog.
1414- 调整闪卡撤销按钮样式 | Adjust the style of the flash card undo button.
15+ - 调整闪卡块样式 | Adjust the style of the flash card block.
1516
1617## v1.7.1/2023-02-15
1718
Original file line number Diff line number Diff line change 428428 --custom-span-mark-shadow-color : var (--b3-theme-on-primary );
429429 /* 思源标记阴影宽度 | The shadow width of mark */
430430 --custom-span-mark-shadow-width : 2px ;
431- /* 闪卡标记颜色 | Flash card marker color */
432- --custom-riff-decks-color : var (--b3-theme-primary-light );
431+ /* 闪卡阴影颜色 | Flash card shadow color */
432+ --custom-riff-decks-shadow-color-default : var (--b3-card-info-color );
433+ --custom-riff-decks-shadow-color-super : var (--b3-card-warning-color );
434+ --custom-riff-decks-shadow-color-list : var (--b3-card-error-color );
435+ --custom-riff-decks-shadow-color-li : var (--b3-card-success-color );
436+ /* 闪卡阴影宽度 | Flash cord shadow width */
437+ --custom-riff-decks-shadow-width : 0.25em ;
433438 /* 思源加粗文本颜色 | The color of bold text */
434439 /* 原样式 | Original style */
435440 /* --custom-span-strong-color: var(--b3-protyle-inline-strong-color); */
436441 /* 继承样式 | Inherit style */
437- --custom-span-strong-color : unset ;
442+ --custom-span-strong-color : var ( --b3-protyle-inline-strong-color ) ;
438443 /* 拖拽参考线颜色 | The color of drag guide */
439444 --custom-drag-top-shadow-color : var (--b3-theme-primary-lighter );
440445 --custom-drag-bottom-shadow-color : var (--b3-theme-primary-lighter );
Original file line number Diff line number Diff line change 559559 /* 思源标记阴影宽度 | The shadow width of mark */
560560 --custom-span-mark-shadow-width : 2px ;
561561
562- /* 闪卡标记颜色 | Flash card marker color */
563- --custom-riff-decks-color : var (--b3-theme-primary-light );
562+ /* 闪卡阴影颜色 | Flash card shadow color */
563+ --custom-riff-decks-shadow-color-default : var (--b3-card-info-color );
564+ --custom-riff-decks-shadow-color-super : var (--b3-card-warning-color );
565+ --custom-riff-decks-shadow-color-list : var (--b3-card-error-color );
566+ --custom-riff-decks-shadow-color-li : var (--b3-card-success-color );
567+ /* 闪卡阴影宽度 | Flash cord shadow width */
568+ --custom-riff-decks-shadow-width : 0.25em ;
564569
565570 /* 思源加粗文本颜色 | The color of bold text */
566571 /* 原样式 | Original style */
567572 /* --custom-span-strong-color: var(--b3-protyle-inline-strong-color); */
568573 /* 继承样式 | Inherit style */
569- --custom-span-strong-color : unset ;
574+ // --custom-span-strong-color: unset;
575+ --custom-span-strong-color : var (--b3-protyle-inline-strong-color );
570576
571577 /* 拖拽参考线颜色 | The color of drag guide */
572578 --custom-drag-top-shadow-color : var (--b3-theme-primary-lighter );
Original file line number Diff line number Diff line change 11/* 闪卡 */
2- .protyle-wysiwyg [data-node-id ][custom-riff-decks ] {
2+ .protyle-wysiwyg [data-node-id ][custom-riff-decks ]: not (. sb , . list , . li ) {
33 /* 设置为闪卡的块 */
4- box-shadow : 3 px 0 px 0 px -1 px var (--custom-riff-decks-color ) ;
4+ box-shadow : 0 0 var ( --custom-riff-decks-shadow-width ) 0 var (--custom-riff-decks-shadow- color-default ) inset ;
55}
66.protyle-wysiwyg [data-node-id ][custom-riff-decks ].sb {
77 /* 设置为闪卡的超级块 */
8- box-shadow : 0 0 var (--custom-block-super-margin ) 0 var (--custom-riff-decks-color );
8+ box-shadow : 0 0 var (--custom-riff-decks-shadow-width ) 0 var (--custom-riff-decks-shadow-color-super );
9+ }
10+ .protyle-wysiwyg [data-node-id ][custom-riff-decks ].list {
11+ /* 设置为闪卡的列表块 */
12+ box-shadow : 0 0 var (--custom-riff-decks-shadow-width ) 0 var (--custom-riff-decks-shadow-color-list ) inset;
13+ }
14+ .protyle-wysiwyg [data-node-id ][custom-riff-decks ].li {
15+ /* 设置为闪卡的列表项 */
16+ box-shadow : 0 0 var (--custom-riff-decks-shadow-width ) 0 var (--custom-riff-decks-shadow-color-li ) inset;
917}
Original file line number Diff line number Diff line change 22
33.protyle-wysiwyg {
44 [data- node- id][custom- riff- decks] {
5- /* 设置为闪卡的块 */
6- box-shadow : 3px 0px 0px -1px var (--custom-riff-decks-color );
5+ & :not (.sb , .list , .li ) {
6+ /* 设置为闪卡的块 */
7+ box-shadow : 0 0 var (--custom-riff-decks-shadow-width ) 0 var (--custom-riff-decks-shadow-color-default ) inset ;
8+ }
79
810 & .sb {
911 /* 设置为闪卡的超级块 */
10- box-shadow : 0 0 var (--custom-block-super-margin ) 0 var (--custom-riff-decks-color );
12+ box-shadow : 0 0 var (--custom-riff-decks-shadow-width ) 0 var (--custom-riff-decks-shadow-color-super );
13+ }
14+
15+ & .list {
16+ /* 设置为闪卡的列表块 */
17+ box-shadow : 0 0 var (--custom-riff-decks-shadow-width ) 0 var (--custom-riff-decks-shadow-color-list ) inset ;
18+ }
19+
20+ & .li {
21+ /* 设置为闪卡的列表项 */
22+ box-shadow : 0 0 var (--custom-riff-decks-shadow-width ) 0 var (--custom-riff-decks-shadow-color-li ) inset ;
1123 }
1224 }
1325}
You can’t perform that action at this time.
0 commit comments