├── custom.css ├── config ├── 橙色系界面.css ├── pink-room-root.css ├── root.css ├── 绿色系界面.css └── 蓝色系界面.css ├── style ├── 关系图所用颜色.css ├── 设置面板.css ├── 关系图.css ├── pic │ └── pink-room主题背景图裁切说明.jpg ├── 修改菜单阴影 ├── 修改菜单阴影.css ├── 大纲.css ├── SuperLink.css ├── 引述.css ├── InlineCode.css ├── table.css ├── SuperBlock.css ├── 超级块边框.css ├── 底层超级块边框.css ├── 复习用填空&黑条样式.css ├── 背景图片.css ├── 另外一种默认字体.css ├── CodeBlock.css ├── PDF相关自定义属性.css ├── Keyboard.css ├── BlockRef.css ├── 多彩文档树.css ├── 标题.css ├── 新反链面板.css ├── Breadcrumb&TabBar.css ├── title.css ├── 卷轴页面.css ├── 反链面板.css ├── TextColorMenu.css ├── 4类主要自定义字色.css └── ListTree.css ├── preview.png ├── theme.json ├── 自定义属性 ├── 图片边框.css ├── 取消超级块边框.css └── 仿维基百科简介+信息卡.css ├── icon └── title │ ├── h1.svg │ ├── h3.svg │ ├── h2.svg │ ├── h4.svg │ ├── h6.svg │ └── h5.svg ├── 主题自定义属性.css ├── theme.css ├── theme.js ├── README.md ├── 杂乱的修改.css └── LICENSE /custom.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/橙色系界面.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style/关系图所用颜色.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style/设置面板.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style/关系图.css: -------------------------------------------------------------------------------- 1 | canvas { 2 | /* background-color:#fffcf8 !important; */ 3 | } -------------------------------------------------------------------------------- /preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpaqueGlass/pink-room-fork/main/preview.png -------------------------------------------------------------------------------- /style/pic/pink-room主题背景图裁切说明.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpaqueGlass/pink-room-fork/main/style/pic/pink-room主题背景图裁切说明.jpg -------------------------------------------------------------------------------- /style/修改菜单阴影: -------------------------------------------------------------------------------- 1 | 2 | :root{ 3 | --b3-dialog-shadow: 0px 4px 11px 2px 4 | rgb(189 46 46 / 41%), 0px 17px 33px 0px rgb(125 108 108 / 22%), 0px 9px 41px 5px rgb(90 84 82 / 28%); 5 | } -------------------------------------------------------------------------------- /style/修改菜单阴影.css: -------------------------------------------------------------------------------- 1 | 2 | :root{ 3 | --b3-dialog-shadow: 0px 4px 11px 2px 4 | rgb(189 46 46 / 41%), 0px 17px 33px 0px rgb(125 108 108 / 22%), 0px 9px 41px 5px rgb(90 84 82 / 28%); 5 | } -------------------------------------------------------------------------------- /style/大纲.css: -------------------------------------------------------------------------------- 1 | .fn__flex-1.fn__flex-column.file-tree.sy__outline.layout__tab--active{ 2 | background-color: lightgrey; 3 | filter: contrast(0.9),saturate(0.9),brightness(0.9); 4 | } -------------------------------------------------------------------------------- /theme.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pink-room", 3 | "author": "StarDustSheep", 4 | "url": "https://github.com/StarDustSheep/pink-room", 5 | "version": "0.6.1 ", 6 | "modes": [ 7 | "light" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /自定义属性/图片边框.css: -------------------------------------------------------------------------------- 1 | /* 给图片设置边框 */ 2 | [custom-tpbk="1"] img{ 3 | /* border-color: #852a4b; */ 4 | /* border-width: 1px; */ 5 | /* border-style: solid; */ 6 | outline-color: #852a4bcb; 7 | outline-style: solid; 8 | outline-width: 1px; 9 | } -------------------------------------------------------------------------------- /icon/title/h1.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /icon/title/h3.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /自定义属性/取消超级块边框.css: -------------------------------------------------------------------------------- 1 | [custom-wbk="1"].sb:not(.sb:has(.sb)){ 2 | outline: none; 3 | background-color: transparent ; 4 | border: none ; 5 | margin: 0px !important; 6 | padding: 0px; 7 | } 8 | 9 | .protyle-wysiwyg [custom-wbk="1"][data-node-id].sb{ 10 | outline: none; 11 | background-color: transparent; 12 | border: none ; 13 | margin: 0px !important; 14 | padding: 0px; 15 | } 16 | -------------------------------------------------------------------------------- /icon/title/h2.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style/SuperLink.css: -------------------------------------------------------------------------------- 1 | /* 修改超链接的样式 */ 2 | .protyle-wysiwyg [data-node-id] span[data-type~=a]{ 3 | border-bottom: 1px solid var(--b3-protyle-inline-link-color); 4 | margin: 0px 2px 0px; 5 | font-weight: 500; 6 | } 7 | 8 | /* 修改鼠标悬浮在超链接上的样式 */ 9 | .protyle-wysiwyg [data-node-id] span[data-type~=a]::after { 10 | content: "↑"; 11 | position: relative; 12 | font-size: 80%; 13 | top: -0.1em; 14 | margin-left: 2px; 15 | } -------------------------------------------------------------------------------- /style/引述.css: -------------------------------------------------------------------------------- 1 | /* 让引述块背景色不那么刺眼 */ 2 | .bq{ 3 | background-color: hsl(0deg 0% 98%) !important; 4 | border-radius: 5px; 5 | border-color: #8eebff !important; 6 | border-width: 4px 0 0 0 !important; 7 | border-style: solid !important; 8 | box-shadow: 0px 1px 1px 2px #cabfbf; 9 | color: #5c6b86f0 !important; 10 | font-family: "仓耳今楷03"; 11 | } 12 | 13 | .bq .li>.protyle-action{ 14 | color: #5c6b86f0 !important; 15 | } -------------------------------------------------------------------------------- /自定义属性/仿维基百科简介+信息卡.css: -------------------------------------------------------------------------------- 1 | .protyle-wysiwyg [custom-wikicard="1"][data-node-id].sb{ 2 | /* outline: none; */ 3 | border-radius: 0%; 4 | background-color: transparent; 5 | border: none ; 6 | margin: 0px !important; 7 | padding: 0px; 8 | } 9 | 10 | .sb[custom-wikicard="1"]>:nth-child(1) { 11 | width: 85%; 12 | margin-bottom: 0px !important; 13 | } 14 | 15 | .sb[custom-wikicard="1"]>:nth-child(2) { 16 | font-size: 85%; 17 | background-color: #f8f9fa !important; 18 | margin: 0.4em 0.4em 0.4em 0 !important; 19 | border: 1px solid #a2a9b1 !important; 20 | } -------------------------------------------------------------------------------- /style/InlineCode.css: -------------------------------------------------------------------------------- 1 | /* 行内代码块 */ 2 | .fn__code, .b3-typography code:not(.hljs), .b3-typography span[data-type~=code], .protyle-wysiwyg code:not(.hljs), .protyle-wysiwyg span[data-type~=code] { 3 | margin: 0px 0.1rem 0px 0.1rem; 4 | color: rgb(98 41 0 / 78%); 5 | background-color: rgb(252 247 226); 6 | font-size: 0.85em; 7 | /* line-height: 100%; */ 8 | border-radius: 5px; 9 | font-family: var(--b3-font-family-code); 10 | vertical-align: 0.5px; 11 | padding: 0.1em 0.2em 0.1em 0.2em; 12 | /* box-shadow: 0px 0px 6px 1px #ffecdcc4 inset, 0px 0px 1px 1px #9f7959 inset; */ 13 | border: solid 1px; 14 | } -------------------------------------------------------------------------------- /icon/title/h4.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style/table.css: -------------------------------------------------------------------------------- 1 | 2 | /* 重新声明表格标题行的底色 */ 3 | thead >:nth-child(1) { 4 | background-color: var(--pinkroom-table-head-background-color) !important; 5 | } 6 | 7 | /* 覆盖思源默认的表格中的单数行的底色 */ 8 | .b3-typography table tr, .protyle-wysiwyg table tr{ 9 | background-color: var(--pinkroom-table-2n-1-background-color); 10 | } 11 | 12 | 13 | /* 覆盖思源默认的表格中的双数行的底色 */ 14 | .b3-typography table tbody tr:nth-child(2n), .protyle-wysiwyg table tbody tr:nth-child(2n){ 15 | background-color: var(--pinkroom-table-2n-background-color); 16 | } 17 | 18 | /* 覆盖思源默认的表格边框颜色 */ 19 | .b3-typography table td, .b3-typography table th, .protyle-wysiwyg table td, .protyle-wysiwyg table th{ 20 | border-color:var(--pinkroom-table-border-color) !important; 21 | } 22 | 23 | 24 | -------------------------------------------------------------------------------- /icon/title/h6.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style/SuperBlock.css: -------------------------------------------------------------------------------- 1 | /* 为超级块设置边框、底色、顶部颜色识别区、底部间距*/ 2 | .protyle-wysiwyg [data-node-id].sb { 3 | background-color: #fffef9; 4 | /* border: solid 1px #b36e3fd4; */ 5 | border-radius: 5px; 6 | padding: 0.1em 0.2em 0.1em 0.2em; 7 | margin-bottom: 15px !important; 8 | border-top-style: solid; 9 | border-top-color: #1ecde4cf; 10 | border-top-width: 5px; 11 | box-shadow: 0px 0px 0px 0.5px #b36e3fd4; 12 | } 13 | 14 | 15 | /* 使得超级块中的超级块不会有边框、边距等样式 */ 16 | .protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] .sb, .protyle-wysiwyg [data-node-id].sb[data-sb-layout="row"] .sb { 17 | margin: 0em; 18 | margin-top: 0em; 19 | margin-bottom: 0em; 20 | border-radius: 0em; 21 | box-shadow: none; 22 | /* background-color: transparent; */ 23 | border: none; 24 | } -------------------------------------------------------------------------------- /主题自定义属性.css: -------------------------------------------------------------------------------- 1 | :root { 2 | 3 | /* 给面板菜单使用的边框 */ 4 | --pinkroom-pink-menu-border: 4px solid pink; 5 | --pinkroom-blue-menu-border: 4px solid #74cbdf; 6 | --pinkroom-green-menu-border: 4px solid #d4eaba; 7 | 8 | --pinkroom-tag-boxshadow-color: #9a6e84; 9 | 10 | /* 虚拟引用标记颜色 */ 11 | --pinkroom-virtual-rel-background-color:#ffbdd12b; 12 | 13 | /* 块引伪类边框颜色 */ 14 | --b3-block-ref-pseudo-color:#824a79a2; 15 | 16 | 17 | 18 | 19 | /* 表格标题行的底色 */ 20 | --pinkroom-table-head-background-color:#f0dada; 21 | /* 表格单数行底色 */ 22 | --pinkroom-table-2n-1-background-color:hsl(34deg 98% 99%); 23 | /* 表格双数行底色 */ 24 | --pinkroom-table-2n-background-color:hsl(33deg 88% 98%); 25 | /* 表格边框颜色 */ 26 | --pinkroom-table-border-color:#ab888d4a; 27 | 28 | } 29 | 30 | -------------------------------------------------------------------------------- /config/pink-room-root.css: -------------------------------------------------------------------------------- 1 | :root { 2 | 3 | /* 给面板菜单使用的边框 */ 4 | --pinkroom-pink-menu-border: 4px solid pink; 5 | --pinkroom-blue-menu-border: 4px solid #74cbdf; 6 | --pinkroom-green-menu-border: 4px solid #d4eaba; 7 | 8 | --pinkroom-tag-boxshadow-color: #9a6e84; 9 | 10 | /* 虚拟引用标记颜色 */ 11 | --pinkroom-virtual-rel-background-color:#ffbdd12b; 12 | 13 | /* 块引伪类边框颜色 */ 14 | --b3-block-ref-pseudo-color:#824a79a2; 15 | 16 | 17 | 18 | 19 | /* 表格标题行的底色 */ 20 | --pinkroom-table-head-background-color:#f0dada; 21 | /* 表格单数行底色 */ 22 | --pinkroom-table-2n-1-background-color:hsl(34deg 98% 99%); 23 | /* 表格双数行底色 */ 24 | --pinkroom-table-2n-background-color:hsl(33deg 88% 98%); 25 | /* 表格边框颜色 */ 26 | --pinkroom-table-border-color:#ab888d4a; 27 | 28 | } 29 | 30 | -------------------------------------------------------------------------------- /icon/title/h5.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /style/超级块边框.css: -------------------------------------------------------------------------------- 1 | /* 为超级块设置边框、底色、顶部颜色识别区、底部间距*/ 2 | .protyle-wysiwyg [data-node-id].sb { 3 | background-color: #fffef9; 4 | /* border: solid 1px #b36e3fd4; */ 5 | border-radius: 5px; 6 | padding: 0.1em 0.2em 0.1em 0.2em; 7 | margin-bottom: 15px !important; 8 | border-top-style: solid; 9 | /* border: 1px solid #b36e3fd4; */ 10 | border-top-color: #70e3f3cf; 11 | border-top-width: 5px; 12 | outline: 0.5px solid #b36e3fd4; 13 | /* box-shadow: 0px 0px 0px 0.5px #b36e3fd4; */ 14 | } 15 | 16 | 17 | /* 使得超级块中的超级块不会有边框、边距等样式 */ 18 | .protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] .sb, .protyle-wysiwyg [data-node-id].sb[data-sb-layout="row"] .sb { 19 | margin: 0em; 20 | margin-top: 0em; 21 | margin-bottom: 0em; 22 | border-radius: 0em; 23 | box-shadow: none; 24 | background-color: #fffef900; 25 | border: none; 26 | outline: none; 27 | } 28 | 29 | -------------------------------------------------------------------------------- /style/底层超级块边框.css: -------------------------------------------------------------------------------- 1 | /* 为超级块设置边框、底色、顶部颜色识别区、底部间距*/ 2 | 3 | .protyle-wysiwyg .sb:not(.sb:has(.sb)){ 4 | background-color: #fffef9; 5 | /* border: solid 1px #b36e3fd4; */ 6 | border-radius: 5px; 7 | /* padding: 0.1em 0.2em 0.1em 0.2em; */ 8 | margin: 0.5em !important; 9 | border-top-style: solid; 10 | /* border: 1px solid #b36e3fd4; */ 11 | border-top-color: #70e3f3cf; 12 | border-top-width: 5px; 13 | outline: 0.5px solid #b36e3fd4; 14 | /* box-shadow: 0px 0px 0px 0.5px #b36e3fd4; */ 15 | } 16 | 17 | 18 | /* 使得超级块中的超级块不会有边框、边距等样式 */ 19 | /* .protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] .sb, .protyle-wysiwyg [data-node-id].sb[data-sb-layout="row"] .sb { 20 | margin: 0em; 21 | margin-top: 0em; 22 | margin-bottom: 0em; 23 | border-radius: 0em; 24 | box-shadow: none; 25 | background-color: #fffef900; 26 | border: none; 27 | outline: none; 28 | } */ 29 | 30 | -------------------------------------------------------------------------------- /style/复习用填空&黑条样式.css: -------------------------------------------------------------------------------- 1 | /* ---第十三种字色样式用作复习内容用,平时文字不显示而是显示一条横线,以模仿现实中的填空题。鼠标移动上去即可显示文字\答案--- */ 2 | 3 | 4 | :root{ 5 | /* 修改第十三种字色为透明色,以用来复习内容 */ 6 | --b3-font-color13: transparent; 7 | } 8 | 9 | /* 第十三种字色选中的文字加上下划线 */ 10 | [style*="color: var(--b3-font-color13)"]{ 11 | border-bottom: 1px solid var(--b3-theme-on-background); 12 | } 13 | /* 鼠标悬浮在其上时,显示文字 */ 14 | [style*="color: var(--b3-font-color13)"]:hover{ 15 | color:var(--b3-theme-on-background) !important; 16 | } 17 | 18 | /* 将设置了第十三底色的文字,使鼠标悬浮在其上时会显示出文字,鼠标移开则是黑条的状态,以模仿保密文件的样式 */ 19 | [style*="background-color: var(--b3-font-background13)"]:hover{ 20 | background-color: transparent !important; 21 | color: var(--b3-theme-on-background) !important; 22 | } 23 | 24 | /* 使第十三种底色文字字色无论是否加粗都继承默认字色 */ 25 | span[data-type~=strong][style*="background-color: var(--b3-font-background13)"],span[data-type~=em][style*="background-color: var(--b3-font-background13)"]{ 26 | color: inherit !important; 27 | } -------------------------------------------------------------------------------- /style/背景图片.css: -------------------------------------------------------------------------------- 1 | /* ----以整个界面为边界设置背景图片,但只显示在始质或者说编辑区域---- */ 2 | /* 全屏动漫背景图 */ 3 | body{ 4 | background-image: url("../pic/思源笔记背景图.png"); 5 | background-position:center top; 6 | background-size:cover; 7 | z-index: -1; 8 | } 9 | 10 | /* 花纹背景图 */ 11 | /* body { 12 | background-image: url(pic/tex1.jpg); 13 | background-position:center top; 14 | background-repeat:repeat; 15 | z-index: -1; 16 | } */ 17 | 18 | /* 让始质\编辑区底色透明,以实现一种蒙板的效果 */ 19 | .protyle{ 20 | background-color: transparent; 21 | } 22 | 23 | 24 | /* 设置输入容器底色透明以让背景图片可以显示,但除了标签面板输入容器 */ 25 | .layout__center.fn__flex.fn__flex-1 > div:nth-child(1) > div > div.layout-tab-container.fn__flex-1{ 26 | background-color: transparent; 27 | } 28 | 29 | /* 由于上面一段代码会让文档树和大纲透明,这里重新设置文档树和大纲底色 */ 30 | .fn__flex-1.fn__flex-column.file-tree{ 31 | background-color: #fef9f9; 32 | } 33 | 34 | 35 | /* 修改中间区域阴影层,给底下的图片叠一层色降低对比度*/ 36 | .fn__flex-1.protyle{ 37 | background-color: #d2d2d211; 38 | } 39 | -------------------------------------------------------------------------------- /style/另外一种默认字体.css: -------------------------------------------------------------------------------- 1 | :root { 2 | /* 字体 */ 3 | --b3-font-family: "Alibaba PuHuiTi 2.0","quote", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; 4 | --b3-font-family-code: "Consolas",微软雅黑,"TsangerYuMo W02","JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; 5 | --b3-font-family-graph: mononoki; 6 | --b3-font-family-emoji: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"; 7 | --b3-font-family-math: KaTeX_Math; 8 | --b3-font-family-yinshu:"三极柴园简体"; 9 | --b3-font-family-button:"Consolas"; /*给按键kbd用的字体 */ 10 | --b3-font-family-strong:"Alibaba PuHuiTi 2.0","Microsoft Yahei"; 11 | } 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /style/CodeBlock.css: -------------------------------------------------------------------------------- 1 | /* ----代码块相关样式---- */ 2 | /* 设置代码块背景色为浅色 */ 3 | .b3-typography div.hljs, .protyle-wysiwyg div.hljs { 4 | background-color: #ffffff; 5 | border-top-right-radius: 5px; 6 | border-bottom-right-radius: 5px; 7 | } 8 | 9 | /* 为代码块设置阴影和圆角 */ 10 | .b3-typography .code-block, .protyle-wysiwyg .code-block{ 11 | box-shadow: 0px 0px 6px 1px #c6979772; 12 | border-radius: 5px; 13 | } 14 | 15 | /* 代码块左边部分样式,设置统一圆角以让代码块整体阴影能正常显示 */ 16 | .protyle-linenumber__rows{ 17 | border-right: 1px solid #e3bfc5; 18 | border-top-left-radius: 5px; 19 | border-bottom-left-radius: 5px; 20 | box-sizing:border-box; 21 | } 22 | 23 | /* 实验性功能:为代码块设置行线 */ 24 | /* .protyle-linenumber__rows > span::after { 25 | content: ""; 26 | display: block; 27 | border-top: 1px solid rgb(181 181 181); 28 | width: 75em; 29 | margin: 0px 0rem; 30 | box-sizing:border-box; 31 | position:absolute; 32 | left:50px; 33 | } */ 34 | 35 | /* .protyle-linenumber__rows>span { 36 | height:22.08928680419922px; 37 | } */ 38 | /* 实验性功能:为代码块设置行线 */ -------------------------------------------------------------------------------- /style/PDF相关自定义属性.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | :root { 4 | /* PDF */ 5 | /* PDF标注有7种颜色 */ 6 | --b3-pdf-selection: #d0e9c8; 7 | --b3-pdf-sidebar-width: 200px; 8 | --b3-pdf-offset: 0; 9 | --b3-pdf-background1: hsl(0deg 100% 81%); 10 | --b3-pdf-background2: hsl(36deg 100% 75%); 11 | --b3-pdf-background3: hsl(53deg 100% 73%); 12 | --b3-pdf-background4: hsl(83deg 55% 76%); 13 | --b3-pdf-background5: hsl(191deg 84% 76%); 14 | --b3-pdf-background6: hsl(212deg 100% 82%); 15 | --b3-pdf-background7: hsl(308deg 76% 85%); 16 | } 17 | 18 | /* 为pdf页面增加阴影以增强层次感 */ 19 | .pdf__outer .textLayer, .pdf__outer .pdf__resize{ 20 | box-shadow: #33101624 0px 0px 0.7em 0.3em, #da5b872b 0px 0px 3em 1em, #f5e4e7a3 0px 0px 2.5em; 21 | } 22 | 23 | 24 | /* 给pdf跟打时修改二次元背景外观 */ 25 | .pdfViewer{ 26 | background-image: url("/pic/思源笔记背景图.png"); 27 | } 28 | 29 | .layout-tab-container__drag{ 30 | background-color: #09a9da1f; 31 | } 32 | .fn__flex-1.protyle{ 33 | background-color: #eee6e2; 34 | } 35 | 36 | .pdf__toolbar{ 37 | background-color: #ffe2e2; 38 | box-shadow: inset 0 0 2px 0px #b75252; 39 | } 40 | 41 | -------------------------------------------------------------------------------- /style/Keyboard.css: -------------------------------------------------------------------------------- 1 | /* kbd 按键/按钮的样式 */ 2 | .b3-typography kbd, .b3-typography span[data-type~=kbd], .protyle-wysiwyg kbd, .protyle-wysiwyg span[data-type~=kbd]{ 3 | font-size: 0.9em; 4 | font-family: var(--b3-font-family-button); 5 | margin: 0.1rem 0.1rem 0.2rem 0.1rem; 6 | border-radius: 4px; 7 | color: rgb(0 94 118); 8 | background-color: hsl(185deg 64% 85%); 9 | /* padding: 3px 5px 3px 5px; */ 10 | vertical-align:2px; 11 | box-shadow: 1px 1px 1px 0px #825d78a6,0px 0px 1px inset grey; 12 | border: 1px solid; 13 | } 14 | 15 | /* 第二种按键样式 */ 16 | /* .b3-typography kbd, .protyle-wysiwyg kbd { 17 | box-shadow: 0px 1px 2px 0px #a77d8b99, 0px -1px 0px 1px inset #86c8d0, 1px 2px 1px 0px #fff inset; 18 | border: 1px solid #155f61; 19 | } */ 20 | 21 | /* 第三种按键样式 */ 22 | .b3-typography kbd, .b3-typography span[data-type~=kbd], .protyle-wysiwyg kbd, .protyle-wysiwyg span[data-type~=kbd]{ 23 | border-radius: 3px; 24 | color: rgb(67 11 16); 25 | background-color: rgb(255 255 255); 26 | vertical-align: 2px; 27 | box-shadow: rgb(131 131 131 / 90%) 0px 1px 2px -1px, #d9d9d9 0px -1px 0px 1px inset; 28 | border: 1px solid; 29 | } -------------------------------------------------------------------------------- /style/BlockRef.css: -------------------------------------------------------------------------------- 1 | /* 设置块引用样式 */ 2 | 3 | /* 修改的样式 */ 4 | .protyle-wysiwyg [data-node-id] span[data-type~=block-ref], .protyle-wysiwyg [data-node-id] span[data-type~=file-annotation-ref]{ 5 | /* border-bottom: 1px solid var(--b3-protyle-inline-blockref-color); */ 6 | margin: 0px 2px 0px; 7 | font-weight: 500; 8 | } 9 | /* 鼠标悬浮时的样式 */ 10 | .protyle-wysiwyg [data-node-id] span[data-type~=block-ref]:hover, .protyle-wysiwyg [data-node-id] span[data-type~=file-annotation-ref]:hover{ 11 | border-bottom: 1px solid var(--b3-protyle-inline-blockref-color); 12 | } 13 | 14 | /* 增加块引后部的标示符号 */ 15 | /* .protyle-wysiwyg [data-node-id] span[data-type="block-ref"]::after { 16 | content: "↓"; 17 | font-style: bold; 18 | position: relative; 19 | font-size: 80%; 20 | margin-left: 1px; 21 | } */ 22 | 23 | 24 | /* 为引用块后面增加引用图标 */ 25 | .protyle-wysiwyg [data-node-id] span[data-type="block-ref"]::before { 26 | color: var(--b3-block-ref-pseudo-color); 27 | content: "[["; 28 | font-family: auto; 29 | padding-right: 1px; 30 | } 31 | 32 | .protyle-wysiwyg [data-node-id] span[data-type="block-ref"]::after { 33 | color: var(--b3-block-ref-pseudo-color); 34 | content: "]]"; 35 | font-family: auto; 36 | padding-left: 1px; 37 | } 38 | -------------------------------------------------------------------------------- /style/多彩文档树.css: -------------------------------------------------------------------------------- 1 | /* 给不同位置笔记本添加不同颜色(不包含文档和关闭的笔记本) */ 2 | div.sy__file ul:not(ul ul):not(ul.b3-list.fn__flex-column):nth-of-type(8n+1) { 3 | border-left: 4px solid var(--b3-font-color1) !important; 4 | } 5 | 6 | 7 | div.sy__file ul:not(ul ul):not(ul.b3-list.fn__flex-column):nth-of-type(8n+2) { 8 | border-left: 4px solid var(--b3-font-color2) !important; 9 | } 10 | 11 | div.sy__file ul:not(ul ul):not(ul.b3-list.fn__flex-column):nth-of-type(8n+3) { 12 | border-left: 4px solid var(--b3-font-color3) !important; 13 | } 14 | 15 | div.sy__file ul:not(ul ul):not(ul.b3-list.fn__flex-column):nth-of-type(8n+4) { 16 | border-left: 4px solid var(--b3-font-color4) !important; 17 | } 18 | 19 | div.sy__file ul:not(ul ul):not(ul.b3-list.fn__flex-column):nth-of-type(8n+5) { 20 | border-left: 4px solid var(--b3-font-color5) !important; 21 | } 22 | 23 | div.sy__file ul:not(ul ul):not(ul.b3-list.fn__flex-column):nth-of-type(8n+6) { 24 | border-left: 4px solid var(--b3-font-color6) !important; 25 | } 26 | 27 | div.sy__file ul:not(ul ul):not(ul.b3-list.fn__flex-column):nth-of-type(8n+7) { 28 | border-left: 4px solid var(--b3-font-color7) !important; 29 | } 30 | 31 | div.sy__file ul:not(ul ul):not(ul.b3-list.fn__flex-column):nth-of-type(8n) { 32 | border-left: 4px solid var(--b3-font-color8) !important; 33 | } 34 | -------------------------------------------------------------------------------- /theme.css: -------------------------------------------------------------------------------- 1 | /* ----引入root元素,勿动---- */ 2 | @import url("config/root.css"); 3 | @import url("style/关系图所用颜色.css"); 4 | @import url("style/修改菜单阴影.css"); 5 | @import url("config/pink-room-root.css"); 6 | 7 | /* ----作者自用特色功能,可开关 ---- */ 8 | /* @import url("style/另外一种默认字体.css"); */ 9 | /* @import url("style/卷轴页面.css"); */ 10 | /* @import url("style/背景图片.css"); */ 11 | /* @import url("style/4类主要自定义字色.css"); */ 12 | /* @import url("style/复习用填空&黑条样式.css"); */ 13 | @import url("style/超级块边框.css"); 14 | /* @import url("style/底层超级块边框.css"); */ 15 | /* @import url("style/PDF相关自定义属性.css"); */ 16 | 17 | /* ----通用样式---- */ 18 | @import url("style/Breadcrumb&TabBar.css"); 19 | 20 | @import url("style/TextColorMenu.css"); 21 | @import url("style/ListTree.css"); 22 | 23 | @import url("style/CodeBlock.css"); 24 | 25 | @import url("style/keyboard.css"); 26 | @import url("style/InlineCode.css"); 27 | 28 | @import url("style/BlockRef.css"); 29 | @import url("style/SuperLink.css"); 30 | @import url("style/table.css"); 31 | /* @import url("style/title.css"); */ 32 | @import url("style/标题.css"); 33 | @import url("style/关系图.css"); 34 | @import url("style/反链面板.css"); 35 | /* @import url("style/新反链面板.css"); */ 36 | /* @import url("style/设置面板.css"); */ 37 | @import url("style/引述.css"); 38 | @import url("style/大纲.css"); 39 | 40 | @import url("杂乱的修改.css"); 41 | 42 | @import url("自定义属性/图片边框.css"); 43 | @import url("自定义属性/取消超级块边框.css"); 44 | @import url("自定义属性/仿维基百科简介+信息卡.css"); 45 | 46 | 47 | /* ---多种色系配色界面暂时性解决方案,可开关切换--- */ 48 | /* @import url("config/绿色系界面.css"); */ 49 | /* @import url("config/蓝色系界面.css"); */ 50 | -------------------------------------------------------------------------------- /style/标题.css: -------------------------------------------------------------------------------- 1 | /* 荧光标题 */ 2 | .b3-typography .h1, .b3-typography h1, .b3-typography .h2, .b3-typography h2, .b3-typography .h3, .b3-typography h3, .b3-typography .h4, .b3-typography h4, .b3-typography .h5, .b3-typography h5, .b3-typography .h6, .b3-typography h6, .protyle-wysiwyg .h1, .protyle-wysiwyg h1, .protyle-wysiwyg .h2, .protyle-wysiwyg h2, .protyle-wysiwyg .h3, .protyle-wysiwyg h3, .protyle-wysiwyg .h4, .protyle-wysiwyg h4, .protyle-wysiwyg .h5, .protyle-wysiwyg h5, .protyle-wysiwyg .h6, .protyle-wysiwyg h6{ 3 | letter-spacing: 0.1em; 4 | color: #c25678 !important; 5 | } 6 | 7 | 8 | 9 | 10 | /* 标题前图标 */ 11 | .h1 > :first-child::before{ 12 | background: url('../icon/title/h1.svg'); 13 | left: 0.3rem; 14 | bottom: 0.62rem; 15 | } 16 | .h1 > :first-child{ 17 | padding-left: 1.6rem; 18 | } 19 | 20 | 21 | 22 | .h2 > :first-child::before{ 23 | background: url('../icon/title/h2.svg'); 24 | left: 0.3rem; 25 | bottom: 0.6rem; 26 | } 27 | .h2 > :first-child{ 28 | padding-left: 1.6rem; 29 | } 30 | 31 | .h3 > :first-child::before{ 32 | background: url('../icon/title/h3.svg'); 33 | left: 0.32rem; 34 | bottom: 0.34rem; 35 | } 36 | .h3 > :first-child{ 37 | padding-left: 1.6rem; 38 | } 39 | 40 | .h4 > :first-child::before{ 41 | background: url('../icon/title/h4.svg'); 42 | left: 0.35rem; 43 | bottom: 0.4rem; 44 | } 45 | .h4 > :first-child{ 46 | padding-left: 1.6rem; 47 | } 48 | /* 防止标题折叠后右侧圆点标示和小三角图标对不齐 */ 49 | .protyle-wysiwyg div[fold="1"][data-type=NodeHeading].h4:before{ 50 | top: 40% !important; 51 | } 52 | 53 | 54 | .h5 > :first-child::before{ 55 | background: url('../icon/title/h5.svg'); 56 | left: 0.37rem; 57 | bottom: 0.55rem; 58 | } 59 | .h5 > :first-child{ 60 | padding-left: 1.6rem; 61 | } 62 | /* 防止标题折叠后右侧圆点标示和小三角图标对不齐 */ 63 | .protyle-wysiwyg div[fold="1"][data-type=NodeHeading].h5:before{ 64 | top: 40% !important; 65 | } 66 | 67 | 68 | .h6 > :first-child::before{ 69 | background: url('../icon/title/h6.svg'); 70 | left: 0.39rem; 71 | bottom: 0.68rem; 72 | } 73 | .h6 > :first-child{ 74 | padding-left: 1.6rem; 75 | } 76 | /* 防止标题折叠后右侧圆点标示和小三角图标对不齐 */ 77 | .protyle-wysiwyg div[fold="1"][data-type=NodeHeading].h6:before{ 78 | top: 40% !important; 79 | } 80 | 81 | 82 | 83 | /* 为所有标题伪元素图标设置相同的一些属性 */ 84 | .h1 > :first-child::before,.h2 > :first-child::before,.h3 > :first-child::before,.h4 > :first-child::before,.h5 > :first-child::before,.h6 > :first-child::before{ 85 | height: 1em; 86 | width: 1em; 87 | display: inline-block; 88 | position: absolute; 89 | content: ""; 90 | fill: var(--b3-theme-on-background); 91 | background-position: left bottom; 92 | background-repeat: no-repeat; 93 | filter: brightness(38%) sepia(100%) hue-rotate(283deg) saturate(194%); 94 | } -------------------------------------------------------------------------------- /style/新反链面板.css: -------------------------------------------------------------------------------- 1 | /* 设置反向链接背景颜色 */ 2 | .sy__backlink .protyle, 3 | .backlinkList { 4 | background-color: #f3f3f5; 5 | } 6 | 7 | /* 提及面板背景颜色 */ 8 | .backlinkMList { 9 | background-color: #f3f3f5; 10 | } 11 | 12 | /* 去掉反向链接筛选按钮阴影,黑框不好看 */ 13 | input.b3-text-field.b3-text-field--small.b3-form__icon-input { 14 | box-shadow: none; 15 | padding: 1px 8px; 16 | } 17 | 18 | /* 反链·文档标题 */ 19 | .sy__backlink .b3-list-item { 20 | height: 32px; 21 | border-radius: 1px; 22 | margin: 6px 10px 6px 10px !important; 23 | outline: 1px solid #e6e6e8; 24 | background-color: #fafafa; 25 | /* 顶部阴影 */ 26 | box-shadow: 27 | 0px -4px 8px 0px rgba(0, 0, 0, 0.05), 28 | 0px 1px 0px 0px rgba(230, 230, 232, 1); 29 | } 30 | 31 | /* 首个文档标题设置上外边距 */ 32 | .sy__backlink .b3-list-item:nth-of-type(1) { 33 | margin-top: 6px !important; 34 | } 35 | 36 | /* 反链·正文内容 */ 37 | .sy__backlink .protyle { 38 | border-radius: 1px; 39 | margin: -6px 10px 6px 10px; 40 | outline: 1px solid #e6e6e8; 41 | background-color: white; 42 | box-shadow: 43 | rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, 44 | rgba(0, 0, 0, 0.08) 0px 0px 0px 1px; 45 | } 46 | 47 | /* 修改边距,使可以并列两个块标(如果是3个需要设置成5em) */ 48 | .sy__backlink .protyle-wysiwyg { 49 | padding-left: 3.3em !important; 50 | } 51 | 52 | .sy__backlink .protyle-breadcrumb__bar { 53 | margin-left: -1em !important; 54 | } 55 | 56 | /* 调小面包屑字体大小 */ 57 | .sy__backlink .protyle-breadcrumb__bar { 58 | font-size: 12px; 59 | height: 20px; 60 | margin-top: -6px; 61 | } 62 | 63 | /* 调小面包屑中项目符号大小 */ 64 | .sy__backlink .protyle-breadcrumb__item svg { 65 | height: 12px; 66 | width: 12px; 67 | } 68 | 69 | /* 给面包屑底部添加横线 */ 70 | .sy__backlink .protyle::before { 71 | content: ""; 72 | height: 0.05em; 73 | width: 100%; 74 | background-color: #e6e6e8; 75 | position: absolute; 76 | top: 24px; 77 | } 78 | 79 | /* 给包含两个以上面包屑的块中间添加横线 */ 80 | .protyle-wysiwyg .protyle-breadcrumb__bar:not(.protyle-breadcrumb__bar:nth-child(1)):after { 81 | content: ""; 82 | height: 0.05em; 83 | width: 100%; 84 | background-color: #e6e6e8; 85 | position: relative; 86 | top: 0px; 87 | } 88 | 89 | .protyle-wysiwyg .protyle-breadcrumb__bar:not(.protyle-breadcrumb__bar:nth-child(1)):before { 90 | content: "▌"; 91 | color: #80808080; 92 | position: absolute; 93 | left: 20px; 94 | } 95 | 96 | /* 减小面包屑高度 */ 97 | .sy__backlink .protyle-breadcrumb__item { 98 | margin-top: 0px; 99 | margin-bottom: 0px; 100 | padding-top: 0px !important; 101 | padding-bottom: 0px !important; 102 | } 103 | 104 | 105 | /* 给提及面板增加顶部分割线 */ 106 | .sy__backlink .block__icons:not(.block__icons:nth-child(1)) { 107 | box-shadow: 0px -0.1em 0px 0px rgba(128, 128, 128, 0.1); 108 | } -------------------------------------------------------------------------------- /style/Breadcrumb&TabBar.css: -------------------------------------------------------------------------------- 1 | /* 整个标签栏的样式 */ 2 | .layout-tab-bar { 3 | font-size: 110%; 4 | list-style: none; 5 | font-family: "TsangerYuMo W02"; 6 | font-weight: bold; 7 | align-items: center; 8 | overflow: auto; 9 | position: relative; 10 | /* border-radius: 0.4em; */ 11 | background-color: #ffe2e2; 12 | /* box-shadow: inset 0px 1px 0px 0px var(--b3-border-color), inset 0px -1px 0px 0px var(--b3-border-color); */ 13 | flex-wrap:wrap; 14 | } 15 | 16 | 17 | 18 | /* 取消思源页签默认的阴影 */ 19 | .layout-tab-bar .item:not(:last-child),.layout-tab-bar .item:last-child:not(.item--focus):not(.item--readonly){ 20 | box-shadow: none; 21 | } 22 | 23 | 24 | /* 面包屑导航栏 */ 25 | .protyle-breadcrumb { 26 | display: flex; 27 | padding: 0 8px; 28 | background-color: #ffffff; 29 | flex-shrink: 0; 30 | box-sizing: border-box; 31 | /* box-shadow: 0px 5px 0px #ad4040; */ 32 | border-bottom: 1.5px solid #c98c8c; 33 | /* border-bottom-left-radius: 0.7em; */ 34 | /* border-bottom-right-radius: 0.7em; */ 35 | /* border-bottom: 0.4em solid #ffd0d0; */ 36 | /* border-top: 1px solid #ad4040; */ 37 | /* border-radius: 0.6em; */ 38 | /* box-shadow: inset 0px 0px 5px #ffd1cdaa, inset 0px 0px 5px 5px #ffcfc973; */ 39 | } 40 | 41 | /* 在标签页区域和面包屑交界的地方添加边界线 */ 42 | #layouts > div.fn__flex.fn__flex-1 > div.layout__center.fn__flex.fn__flex-1 > div > div > div.fn__flex{ 43 | /* border-bottom: 1px solid #c47e7e; */ 44 | } 45 | 46 | /* 取消标签页圆角 */ 47 | .layout-tab-bar .item { 48 | border-radius: 0px 0px 0px 0px; 49 | box-shadow: none; 50 | } 51 | 52 | /* 给页签设置字色 */ 53 | .layout-tab-bar .item__text{ 54 | color: #bc5572; 55 | } 56 | 57 | /* 设置文字最小宽度,页签过多时才能看清楚文字 */ 58 | .layout-tab-bar .item__text { 59 | width: 5em; 60 | /* white-space: nowrap !important; */ 61 | padding-left: 12px; 62 | } 63 | 64 | /* 修改页签在鼠标悬浮于其上时的底色 */ 65 | .layout-tab-bar .item:hover:not(.layout__wnd--active .item--focus):not(.item--readonly) { 66 | background-color: rgb(255 212 208); 67 | box-shadow: none; 68 | border-radius: 0px 0px 0px 0px; 69 | } 70 | /* 修改页签在鼠标悬浮于其上时,其中文字的颜色 */ 71 | .layout-tab-bar .item:hover:not(.item--focus):not(.item--readonly) .item__text{ 72 | color: #bc5572; 73 | } 74 | 75 | 76 | 77 | /* 页签 */ 78 | .layout-tab-bar .item{ 79 | background-color: #ffe2e2; 80 | border-bottom: 0.5px solid #c98c8c; 81 | border-left: 0.5px solid var(--b3-border-color); 82 | border-right: 1px solid var(--b3-border-color); 83 | } 84 | 85 | /* 修改当前正在处于编辑\使用状态的页签的底色 */ 86 | .layout__wnd--active .layout-tab-bar .item--focus{ 87 | /* background-color: #ffd0d0; */ 88 | background-color:#ffc4c4; 89 | box-shadow: none !important; 90 | } 91 | 92 | /* 修改当前正在处于编辑\使用状态的页签的字色 */ 93 | .layout__wnd--active .layout-tab-bar .item--focus>.item__text{ 94 | color: hsl(346deg 37% 45% / 87%); 95 | } 96 | 97 | /* 当前正在编辑的页面的页签底部的线条 */ 98 | .layout-tab-bar .item--focus:after{ 99 | background-color: transparent !important; 100 | } -------------------------------------------------------------------------------- /style/title.css: -------------------------------------------------------------------------------- 1 | .h1 div[spellcheck="false"]::before { 2 | content: " "; 3 | position: absolute; 4 | display: inline-block; 5 | background-color: #87cefaa8; 6 | /* margin-left: 10px; */ 7 | width: 10px; 8 | left: -24px; 9 | } 10 | 11 | .b3-typography .h1, .b3-typography h1, .protyle-wysiwyg .h1, .protyle-wysiwyg h1 { 12 | /* padding: 0px !important; */ 13 | } 14 | 15 | .h1,.h2,.h3,.h4,.h5,.h6{ 16 | /* margin-top: 1em !important; */ 17 | } 18 | 19 | 20 | .h2 div[spellcheck="false"]::after { 21 | content: ""; 22 | position: absolute; 23 | display: inline-block; 24 | width: -moz-available; 25 | width: -webkit-fill-available; 26 | width: fill-available; 27 | height: 1.5px; 28 | top: 50%; 29 | /* background-color: var(--pinkroom-tag-boxshadow-color); */ 30 | background: linear-gradient(90deg, var(--pinkroom-tag-boxshadow-color) 0%, var(--pinkroom-tag-boxshadow-color) 45%, var(--pinkroom-tag-boxshadow-color) 100%); 31 | margin-left: 4px; 32 | } 33 | 34 | 35 | 36 | 37 | .h3 div[spellcheck="false"]::before { 38 | content: ""; 39 | position: relative; 40 | display: inline-block; 41 | width: 5px; 42 | height: 1px; 43 | top: -0.3em; 44 | opacity: 90%; 45 | background-color: var(--pinkroom-tag-boxshadow-color); 46 | margin-right: 1px; 47 | } 48 | 49 | 50 | .h3 div[spellcheck="false"]::after { 51 | content: ""; 52 | position: absolute; 53 | display: inline-block; 54 | width: -webkit-fill-available; 55 | height: 1px; 56 | top: 50%; 57 | opacity: 90%; 58 | background-color: var(--pinkroom-tag-boxshadow-color); 59 | margin-left: 4px; 60 | } 61 | 62 | 63 | .h4 div[spellcheck="false"]::before { 64 | content: ""; 65 | position: relative; 66 | display: inline-block; 67 | width: 6px; 68 | height: 1px; 69 | top: -0.3em; 70 | background-color: var(--pinkroom-tag-boxshadow-color); 71 | margin-right: 2px; 72 | opacity: 90%; 73 | } 74 | 75 | 76 | .h4 div[spellcheck="false"]::after { 77 | content: ""; 78 | position: absolute; 79 | display: inline-block; 80 | width: -webkit-fill-available; 81 | height: 1.05em; 82 | top: 50%; 83 | opacity: 90%; 84 | background-image: linear-gradient(to right, var(--pinkroom-tag-boxshadow-color) 0%, var(--pinkroom-tag-boxshadow-color) 50%, transparent 50%); 85 | background-size: 10px 1px; 86 | background-repeat: repeat-x; 87 | margin-left: 4px; 88 | } 89 | 90 | 91 | 92 | .h5 div[spellcheck="false"]::before { 93 | content: ""; 94 | position: relative; 95 | display: inline-block; 96 | width:6px; 97 | height: 1px; 98 | top: -0.3em; 99 | background-color: var(--pinkroom-tag-boxshadow-color); 100 | margin-right: 2px; 101 | opacity: 90%; 102 | } 103 | 104 | 105 | .h6 div[spellcheck="false"]::before { 106 | content: ""; 107 | position: relative; 108 | display: inline-block; 109 | width: 6px; 110 | height: 1px; 111 | top: -0.3em; 112 | background-color: var(--pinkroom-tag-boxshadow-color); 113 | margin-right: 2px; 114 | opacity: 90%; 115 | } 116 | -------------------------------------------------------------------------------- /style/卷轴页面.css: -------------------------------------------------------------------------------- 1 | /* --------------------让页面编辑区域变成固定宽度且固定在页面中部,以呈现一种竖卷轴式的编辑区 特色性功能-------------------- */ 2 | :root{ 3 | /* 修改主要的背景色,如果开启卷轴模式则将其设置为编辑区域旁边的背景色 */ 4 | --b3-theme-background: hsl(0, 33%, 97%); 5 | } 6 | 7 | /* ----------此处为初版样式,由于即使是浅粉色,也依旧对不同颜色的文字阅读造成了不好的影响,故换成纯白底色---------- */ 8 | /* .protyle-content:not(#searchPreview.fn__flex-1.protyle>.protyle-content,.block__popover,.block__edit.fn__flex-1.protyle>.protyle-content){ 9 | width: 297mm !important; 10 | background-color: #faf5f5; 11 | box-shadow: #5007134a 0px 0px 0.7em 0.3em, #b43e672b 0px 0px 3em 1em, #f5e4e7a3 0px 0px 2.5em; 12 | border: 10px solid #f4c4d0; 13 | border-bottom-width: 0px; 14 | border-top-width: 0px; 15 | margin: 0 0 0 0; 16 | padding: 0 0 30rem 0; 17 | min-height: 10rem; 18 | } */ 19 | 20 | /* ----------此为当前正在使用的卷轴页面样式,去除了边框以防止其干扰对文字内容的阅读,底色相比之前更接近白色了,能更好地让多种字色的文字比较容易阅读---------- */ 21 | .protyle-content:not(#searchPreview.fn__flex-1.protyle>.protyle-content,.block__popover,.block__edit.fn__flex-1.protyle>.protyle-content,.backlinkList .protyle-content,.backlinkMList .protyle-content){ 22 | width: 297mm !important; 23 | background-color: hsl(0, 33%, 99%); 24 | box-shadow: #33101624 0px 0px 0.7em 0.3em, #da5b872b 0px 0px 3em 1em, #f5e4e7a3 0px 0px 2.5em; 25 | border-bottom-width: 0px; 26 | border-top-width: 0px; 27 | margin: 0 0 0 0; 28 | padding: 0 0 30rem 0; 29 | min-height: 10rem; 30 | } 31 | 32 | .backlinkList.protyle-content,.backlinkMList .protyle-content{ 33 | background-color: hsl(0, 33%, 99%); 34 | box-shadow: 0px 0px 5px pink; 35 | } 36 | 37 | 38 | 39 | 40 | /* ----------此为修复瑕疵而做的试验,请勿使用---------- */ 41 | /* 开启绝对定位后,在向下滑动页面的时候,面包屑依旧留在“上面”然后被挡zz */ 42 | /* .protyle-content:not(#searchPreview.fn__flex-1.protyle>.protyle-content,.block__popover,.block__edit.fn__flex-1.protyle>.protyle-content){ 43 | margin: 0 40rem 40rem 30rem; 44 | left: 50%; 45 | align-self: center; 46 | position: absolute; 47 | } */ 48 | 49 | 50 | 51 | 52 | /* 中央卷轴之外的区域,视觉上看起来就像是卷轴底下的平面。设为灰粉色以和中央文字区域区分,目的是让使用者更容易把注意力集中在中央的文字区域 */ 53 | .protyle{ 54 | background-color: #f3e3e3; 55 | } 56 | 57 | 58 | 59 | /* 为文档文字编辑区域设置较窄的内边距 */ 60 | .protyle-wysiwyg,.protyle-wysiwyg--attr{ 61 | padding: 34px 16px 16px 24px !important; 62 | } 63 | 64 | /* 修改题头图标的位置 此代码可能是为了适应主题的内容区域宽度固定而做的针对性修改 */ 65 | .protyle-background__iconw{ 66 | left: 16px !important; 67 | } 68 | /* -----让页面编辑区域变成固定宽度且固定在页面中部 特色性功能----- */ 69 | 70 | 71 | 72 | /* 为始质…或者说编辑区域,添加背景图片 */ 73 | /* .protyle{ 74 | background-image:url(pic/bg3.jpg) ; 75 | } */ 76 | 77 | 78 | 79 | /* 此选择器元素内包括protyle-content protyle-breadcrumb等元素 此处主要功能是将这些元素居中放置 */ 80 | .fn__flex-1.protyle{ 81 | align-items: center; 82 | } 83 | 84 | 85 | /* 使得protyle-content的box-shadow不遮挡面包屑 */ 86 | .protyle-breadcrumb{ 87 | z-index: 1; 88 | /* position: fixed; */ 89 | } 90 | 91 | /* 使得面包屑的宽度为父元素的100% */ 92 | .protyle-breadcrumb{ 93 | width: 100%; 94 | } 95 | 96 | 97 | .protyle-background{ 98 | min-height: 20rem !important; 99 | padding-bottom: 0px; 100 | } 101 | 102 | .protyle-background__img img{ 103 | height: 20rem !important; 104 | } 105 | 106 | /* 改变标题区域的样式 1版 */ 107 | /* .protyle-title__input{ 108 | background: #ffefef; 109 | border-bottom: 3px solid #dba9b9; 110 | box-shadow: 0px 0px 1px #904971, 0px 2px 2px 1px #c57685ba, 0px 2px 15px 1px #e7a0a0ab; 111 | border-radius: 0.2em; 112 | color: #580000b5; 113 | } */ 114 | 115 | /* 改变标题区域的样式 2版 */ 116 | .protyle-title__input { 117 | background: transparent; 118 | border-bottom: 3px solid rgb(219, 169, 185); 119 | color: rgba(88, 0, 0, 0.71); 120 | line-height: 1.1em; 121 | } 122 | 123 | /* 修改标题的位置 此代码可能是为了适应主题的内容区域宽度固定而做的针对性修改 */ 124 | .protyle-title{ 125 | margin: 34px 16px 0 24px !important; 126 | padding: 6px !important; 127 | } 128 | 129 | /* 改变文档属性图标的位置 */ 130 | .protyle-title__icon{ 131 | left: -16px; 132 | } -------------------------------------------------------------------------------- /style/反链面板.css: -------------------------------------------------------------------------------- 1 | /* 使反链面板中第一个项目和顶部有一定间隔,和左右间隔统一 */ 2 | .sy__backlink .b3-list.b3-list--background{ 3 | margin-top: 7px; 4 | } 5 | 6 | 7 | /* 为反链面板中反链区域添加内部阴影,以增加层次感,方便用户目光聚焦于该区域 */ 8 | .sy__backlink .backlinkList.fn__flex-1{ 9 | box-shadow: 0px 0px 9px -1px inset #e2d5d5, inset 3px 0px 2px -1px #e2d5d5, inset -3px 0px 2px -1px #e2d5d5; 10 | } 11 | 12 | 13 | 14 | /* 反链列表项底色*/ 15 | .sy__backlink .b3-list-item:not(.hint--menu .b3-list-item){ 16 | background-color: #fff5f5; 17 | } 18 | 19 | 20 | /* 为反链列表中的内容区域添加底部阴影 */ 21 | .sy__backlink .protyle{ 22 | background-color: white; 23 | min-height: auto; 24 | margin-bottom: 15px; 25 | border-bottom-left-radius: 1px; 26 | border-bottom-right-radius: 1px; 27 | margin: 0px 10px 10px 18px; 28 | outline: 1px solid #c37d7d; 29 | box-shadow: 0px 3px 3px -2px #c3b4b4; 30 | } 31 | 32 | /* 反链列表项 */ 33 | .sy__backlink .b3-list-item:not(.protyle-hint .b3-list-item):not(.hint--menu .b3-list-item){ 34 | padding-left: 17px; 35 | border-top-right-radius: 0px; 36 | border-top-left-radius: 0px; 37 | border-bottom-right-radius: 0px; 38 | border-bottom-left-radius: 0px; 39 | margin: 0px 10px 0px 18px !important; 40 | outline: 1px solid #c37d7d; 41 | } 42 | 43 | 44 | 45 | .sy__backlink .b3-list-item:nth-last-child(1):not(.protyle-hint .b3-list-item){ 46 | border-bottom-left-radius: 1px!important; 47 | border-bottom-right-radius: 1px!important; 48 | } 49 | 50 | .sy__backlink .protyle+.b3-list-item:not(.protyle-hint .b3-list-item){ 51 | border-top-left-radius: 1px !important; 52 | border-top-right-radius: 1px !important; 53 | } 54 | 55 | 56 | 57 | 58 | 59 | /* 修改反链面板中每个文档标题栏左边箭头图标的颜色,使其更显眼 */ 60 | .sy__backlink .b3-list-item__arrow{ 61 | color: #310000bf !important; 62 | } 63 | 64 | /* 修改反链面板所见即所得区域左右内边距,减少空间浪费 */ 65 | .sy__backlink .protyle-wysiwyg{ 66 | padding:0px 30px 2px 30px!important; 67 | } 68 | 69 | 70 | /* 反链面板,真反链和提及的顶部栏 */ 71 | .sy__backlink .block__icons--active,.sy__backlink .block__icons{ 72 | background-color: #ffcdd0; 73 | border-top: 1px solid var(--b3-border-color); 74 | box-shadow: inset 0px -0.5px 0px 0px var(--b3-border-color); 75 | border-left: 0.5px solid var(--b3-border-color); 76 | z-index: 2; 77 | } 78 | 79 | 80 | /* 解决边线靠近的时候会形成视觉上很粗的线的情况 */ 81 | div.layout-tab-container.fn__flex-1 > div > div:nth-child(1){ 82 | margin-top: -1px; 83 | } 84 | 85 | 86 | 87 | 88 | 89 | 90 | /* 给反链面板中的面包屑和正文间添加横线以作分割 */ 91 | .sy__backlink .protyle::before { 92 | content: ""; 93 | height: 0.05em; 94 | width: 100%; 95 | background-color: #986e6e80; 96 | position: absolute; 97 | top: 29px; 98 | } 99 | 100 | 101 | /* 修改反链面板中面包屑文字大小,原因,该区域文字太大的话会抢走底下正文的注意力 */ 102 | .sy__backlink .protyle-breadcrumb__bar{ 103 | font-size: 12px; 104 | } 105 | 106 | .sy__backlink .protyle-breadcrumb__item{ 107 | height: 14px; 108 | } 109 | 110 | 111 | 112 | 113 | /* 暂给反链面板底下设置底色和内阴影 */ 114 | /* .fn__flex-1.fn__flex-column.file-tree.sy__backlink{ 115 | box-shadow: 0px 5px 13px -2px inset #ab8484cc; 116 | background-color: #fffcf8; 117 | } */ 118 | 119 | .backlinkMList.fn__flex-1 ::-webkit-scrollbar-thumb{ 120 | overflow-y: overlay; 121 | } 122 | 123 | 124 | /* ——反链面板中的提示栏的样式—— */ 125 | .sy__backlink .protyle-hint.b3-list.b3-list--background{ 126 | border: var( --pinkroom-pink-menu-border); 127 | border-radius: 2px; 128 | } 129 | 130 | 131 | 132 | 133 | /* 反链面板中按[[唤出的hint菜单的项目,底色设置为白色方便看字 */ 134 | .backlinkList .protyle-hint.b3-list.b3-list--background:not(.hint--menu) .b3-list-item{ 135 | width: 100% !important; 136 | border: 1px solid rgba(130, 23, 23, 0.556); 137 | border-left: none; 138 | border-radius: 0px !important; 139 | background-color: #ffffff; 140 | border-top: none; 141 | } 142 | 143 | 144 | .backlinkList .protyle-hint:not(.hint--menu){ 145 | /* padding-top: 0px !important; */ 146 | /* margin-top: 0px !important; */ 147 | } 148 | 149 | 150 | -------------------------------------------------------------------------------- /theme.js: -------------------------------------------------------------------------------- 1 | // REF https://github.com/Zuoqiu-Yingyi/siyuan-theme-dark-plus/blob/main/theme.js 2 | window.theme = {}; 3 | 4 | /* 颜色配置文件列表 */ 5 | window.theme.colors = [ 6 | 'config/橙色系界面.css', 7 | 'config/蓝色系界面.css', 8 | 'config/绿色系界面.css', 9 | ]; 10 | 11 | /* DOM 节点 ID */ 12 | window.theme.IDs = { 13 | STYLE_COLOR: 'custom-id-style-theme-color', 14 | BUTTON_TOOLBAR_CHANGE_COLOR: 'custom-id-button-toolbar-change-color', 15 | LOCAL_STORAGE_COLOR_HREF: 'pink-room-color-href', 16 | }; 17 | 18 | /* 循环迭代器 */ 19 | window.theme.Iterator = function* (items) { 20 | // REF [ES6中的迭代器(Iterator)和生成器(Generator) - 小火柴的蓝色理想 - 博客园](https://www.cnblogs.com/xiaohuochai/p/7253466.html) 21 | for (let i = 0; true; i = (i + 1) % items.length) { 22 | yield items[i]; 23 | } 24 | } 25 | 26 | /** 27 | * 加载样式文件 28 | * @params {string} href 样式地址 29 | * @params {string} id 样式 ID 30 | */ 31 | window.theme.loadStyle = function (href, id = null) { 32 | let style = document.createElement('link'); 33 | if (id) style.id = id; 34 | style.type = 'text/css'; 35 | style.rel = 'stylesheet'; 36 | style.href = href; 37 | document.head.appendChild(style); 38 | } 39 | 40 | /** 41 | * 更新样式文件 42 | * @params {string} id 样式文件 ID 43 | * @params {string} href 样式文件地址 44 | */ 45 | window.theme.updateStyle = function (id, href) { 46 | let style = document.getElementById(id); 47 | if (style) { 48 | style.setAttribute('href', href); 49 | } 50 | else { 51 | window.theme.loadStyle(href, id); 52 | } 53 | } 54 | 55 | setTimeout(() => { 56 | const drag = document.getElementById('drag'); // 标题栏 57 | const themeStyle = document.getElementById('themeStyle'); // 当前主题引用路径 58 | if (drag && themeStyle) { 59 | const THEME_ROOT = new URL(themeStyle.href).pathname.replace('theme.css', ''); // 当前主题根目录 60 | /* 通过颜色配置文件列表生成完整 URL 路径 */ 61 | const colors_href = []; 62 | window.theme.colors.forEach(color => colors_href.push(`${THEME_ROOT}${color}`)); 63 | window.theme.iter = window.theme.Iterator(colors_href); 64 | var color_href = localStorage.getItem(window.theme.IDs.LOCAL_STORAGE_COLOR_HREF); 65 | if (color_href) { // 将迭代器调整为当前配色 66 | for (let i = 0; i < window.theme.colors.length; ++i) { 67 | if (window.theme.iter.next().value === color_href) break; 68 | } 69 | } 70 | else { // 迭代器第一个为当前配色 71 | color_href = window.theme.iter.next().value; 72 | localStorage.setItem(window.theme.IDs.LOCAL_STORAGE_COLOR_HREF, color_href); 73 | } 74 | 75 | /* 加载配色文件 */ 76 | window.theme.updateStyle(window.theme.IDs.STYLE_COLOR, color_href); 77 | 78 | const button_change_color = document.createElement('button'); // 切换主题颜色按钮 79 | button_change_color.id = window.theme.IDs.BUTTON_TOOLBAR_CHANGE_COLOR; 80 | button_change_color.className = 'toolbar__item b3-tooltips b3-tooltips__sw'; 81 | button_change_color.ariaLabel = '切换主题颜色'; 82 | button_change_color.innerHTML = ``; 83 | button_change_color.addEventListener('click', e => { 84 | color_href = window.theme.iter.next().value; 85 | localStorage.setItem(window.theme.IDs.LOCAL_STORAGE_COLOR_HREF, color_href); 86 | window.theme.updateStyle(window.theme.IDs.STYLE_COLOR, color_href); 87 | }); 88 | // REF [JS DOM 编程复习笔记 -- insertAdjacentHTML(九) - 知乎](https://zhuanlan.zhihu.com/p/425616377) 89 | drag.insertAdjacentElement('afterend', button_change_color); 90 | drag.insertAdjacentHTML('afterend', `
`); 91 | 92 | } 93 | }, 0); 94 | 95 | 96 | 97 | 98 | // // 看板娘 功能测试中…… 99 | // function loadScript(url, type = 'module') { 100 | // let script = document.createElement('script'); 101 | // script.setAttribute('type', type); 102 | // script.setAttribute('src', url); 103 | // document.head.appendChild(script); 104 | // } 105 | // loadScript("D:/创作/stevenjoezhang - live2d-widget-master/autoload.js"); 106 | 107 | // function loadScript(url, type = 'module') { 108 | // let script = document.createElement('script'); 109 | // script.setAttribute('type', type); 110 | // script.setAttribute('src', url); 111 | // document.head.appendChild(script); 112 | // } 113 | // loadScript("D:/创作/fghrsh - live2d_demo-master/assets/autoload.js") -------------------------------------------------------------------------------- /style/TextColorMenu.css: -------------------------------------------------------------------------------- 1 | /* ————————————字体菜单样式———————————— */ 2 | 3 | /* ———————为字体菜单中13种背景色选项图标设置数字编号,以方便选择———————— */ 4 | /* 为所有背景色图标设置一些统一属性 */ 5 | .b3-color__square[data-type="color"]:before{ 6 | position: relative; 7 | font-size: 80%; 8 | z-index: 2; 9 | top: 13px; 10 | margin-left: 0px; 11 | font-weight: bold; 12 | color:#6b4545ad 13 | } 14 | 15 | /* .b3-color__square[style="background-color:var(--b3-font-color1)"]:before{ 16 | content: "1"; 17 | } 18 | 19 | .b3-color__square[style="background-color:var(--b3-font-color2)"]:before{ 20 | content: "2"; 21 | } 22 | .b3-color__square[style="background-color:var(--b3-font-color3)"]:before{ 23 | content: "3"; 24 | } 25 | .b3-color__square[style="background-color:var(--b3-font-color4)"]:before{ 26 | content: "4"; 27 | 28 | } 29 | .b3-color__square[style="background-color:var(--b3-font-color5)"]:before{ 30 | content: "5"; 31 | } 32 | .b3-color__square[style="background-color:var(--b3-font-color6)"]:before{ 33 | content: "6"; 34 | } 35 | .b3-color__square[style="background-color:var(--b3-font-color7)"]:before{ 36 | content: "7"; 37 | } 38 | .b3-color__square[style="background-color:var(--b3-font-color8)"]:before{ 39 | content: "8"; 40 | } 41 | .b3-color__square[style="background-color:var(--b3-font-color9)"]:before{ 42 | content: "9"; 43 | } 44 | .b3-color__square[style="background-color:var(--b3-font-color10)"]:before{ 45 | content: "10"; 46 | } 47 | .b3-color__square[style="background-color:var(--b3-font-color11)"]:before{ 48 | content: "11"; 49 | } 50 | .b3-color__square[style="background-color:var(--b3-font-color12)"]:before{ 51 | content: "12"; 52 | } */ 53 | 54 | /* 为所有背景色图标设置一些统一属性 */ 55 | .b3-color__square[data-type="backgroundColor"]:before{ 56 | position: relative; 57 | font-size: 80%; 58 | z-index: 2; 59 | top: 13px; 60 | margin-left: 0px; 61 | font-weight: bold; 62 | color:#6b4545ad 63 | } 64 | 65 | /* 为每个底色图标设置编号 */ 66 | /* .b3-color__square[style="background-color:var(--b3-font-background1)"]:before{ 67 | content: "Ⅰ"; 68 | } 69 | 70 | .b3-color__square[style="background-color:var(--b3-font-background2)"]:before{ 71 | content: "Ⅱ"; 72 | } 73 | .b3-color__square[style="background-color:var(--b3-font-background3)"]:before{ 74 | content: "Ⅲ"; 75 | } 76 | .b3-color__square[style="background-color:var(--b3-font-background4)"]:before{ 77 | content: "Ⅳ"; 78 | 79 | } 80 | .b3-color__square[style="background-color:var(--b3-font-background5)"]:before{ 81 | content: "Ⅴ"; 82 | } 83 | .b3-color__square[style="background-color:var(--b3-font-background6)"]:before{ 84 | content: "Ⅵ"; 85 | } 86 | .b3-color__square[style="background-color:var(--b3-font-background7)"]:before{ 87 | content: "Ⅶ"; 88 | } 89 | .b3-color__square[style="background-color:var(--b3-font-background8)"]:before{ 90 | content: "Ⅷ"; 91 | } 92 | .b3-color__square[style="background-color:var(--b3-font-background9)"]:before{ 93 | content: "Ⅸ"; 94 | } 95 | .b3-color__square[style="background-color:var(--b3-font-background10)"]:before{ 96 | content: "Ⅹ"; 97 | } 98 | .b3-color__square[style="background-color:var(--b3-font-background11)"]:before{ 99 | content: "Ⅺ"; 100 | } 101 | .b3-color__square[style="background-color:var(--b3-font-background12)"]:before{ 102 | content: "Ⅻ"; 103 | } 104 | .b3-color__square[style="background-color:var(--b3-font-background13)"]:before{ 105 | content: ""; 106 | } */ 107 | 108 | 109 | /* 增加字色、底色方块图标的下边距以放下上面的文字 */ 110 | .protyle-font>.fn__flex{ 111 | margin-bottom: 15px; 112 | } 113 | /* 使部分同级元素没有下边距,如有边距则有无用且多余的空白空间 */ 114 | .protyle-font > div:nth-child(8){ 115 | margin-bottom: 10px; 116 | } 117 | .protyle-font > div:nth-child(10){ 118 | margin-bottom: 0px; 119 | } 120 | 121 | /* 为字色面板\菜单设置边框 */ 122 | .protyle-util{ 123 | border: solid 4px var(--b3-pinkroom-border); 124 | } 125 | 126 | /* 在字体颜色\底色菜单栏中设置分界线的通用属性 */ 127 | .protyle-font>div:nth-child(2):before,.protyle-font> div:nth-child(4):before,.protyle-font> div:nth-child(6):before,.protyle-font>div:nth-child(8):before{ 128 | content: ''; 129 | position: absolute; 130 | bottom: auto; 131 | right: auto; 132 | height: 1px; 133 | width: 101%; 134 | background-color: #e0cecf; 135 | } 136 | 137 | /* 在字体颜色\底色菜单栏中设置分界线,以方便区分不同区域 */ 138 | .protyle-font> div:nth-child(2):before{ 139 | left: -1px; 140 | top: 56px; 141 | } 142 | .protyle-font> div:nth-child(4):before{ 143 | left: -1px; 144 | top: 105px; 145 | } 146 | .protyle-font> div:nth-child(6):before{ 147 | left: -1px; 148 | top: 153px; 149 | } 150 | .protyle-font> div:nth-child(8):before{ 151 | left: -1px; 152 | top: 197px; 153 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pink-room主题介绍 2 | 我发现思源的集市上没有粉色系的主题,于是打算自己做一个给自己用。
3 | pink-room的界面颜色以浅粉色、白色以及米色为主,试图营造出清新、温馨的感觉。更重要的是优化一些常用样式,使其易读性更强。
4 | 如有任何使用问题可以加思源爱好者折腾QQ群:1017854502,直接提问。(请多反馈 \_(ÒωÓ๑ゝ∠)\_) 5 | 6 | ## 主要特性 7 | ### 风格化行内代码、按键、超链接、块引用 8 | 将按键和行内代码做得更加易读。给超链接和块引用加上了末尾标志。
向上代表前往外界,即互联网/外部链接;向下代表前往自家内部,即思源笔记内部的其他位置。
不在它们前面设置图标的理由是太图标容易吸走人视线的注意力,影响对大段文本的阅读。

9 | ![Snipaste_2022-10-11_21-20-57](https://user-images.githubusercontent.com/114859111/195103421-8860be79-e18a-48be-81d5-53855089978e.jpg) 10 | 11 | 12 | 13 | ### 超级块边框
14 | #### 一级超级块边框 15 | 为一级超级块添加边框,以用来进行不同话题内容图文的分区

16 | ![image](https://user-images.githubusercontent.com/114859111/193455158-fdedcab4-b448-4f87-b002-1caec93c0f2f.png)
17 | 此特性默认开启,如不需要,请下载好主题后用任意文本编辑器找到主题文件夹内theme.css中的```@import url("style/超级块边框.css");```,在其两边的加上```/*```和```*/```后保存。

18 | #### 底层超级块边框 19 | 为底层超级块添加边框,以用来满足不一样的排版需求。(注意:实验性功能,普通用户不要尝试) 20 | ![image](https://user-images.githubusercontent.com/114859111/195104956-ff7dbd06-8e28-44f5-bd91-39c38b29864b.png) 21 | 22 | 23 | 24 | 25 | ### 卷轴页面
26 | 将整个图文编辑区域改为固定宽度,所有内容都好像在一个竖向无限长的卷轴之上。作者自用。
27 | **注意:使用该模式可能会导致图片无法正常地使用拖动滑块对其进行缩放的问题,以及潜在的其他问题。如果不是只使用简单图文排版和笔记只给自己查看使用就够了的用户请不要使用该模式。** 28 | ![image](https://user-images.githubusercontent.com/114859111/194843869-bd16dc87-4906-4330-991d-538c0d1ba6f9.png) 29 | 此特性默认不开启,如需开启,请下载好主题后用任意文本编辑器将主题文件夹内theme.css中的```@import url("style/卷轴页面.css");```两边的```/*```和```*/```删除后保存,**并在思源笔记中开启自适应宽度**

30 | 31 | ### 字体样式菜单 32 | 对字体样式菜单做了改动,添加了号码以让人能更加轻易地找到自己所需要的样式
33 | 未对思源默认的自定义字色、底色做偏离色调的大修改,以防止用户笔记外观和默认主题差距过大无法使用。但未来可能会加入另外标准的自定义字色和底色。

34 | ![image](https://user-images.githubusercontent.com/114859111/193455782-6f7380f2-7f68-402d-be28-0edd115f3551.png)

35 | 36 | ### 四色系字体颜色 37 | 作者自用字体样式
38 | ![image](https://user-images.githubusercontent.com/114859111/194844923-b471a84c-2a51-46b1-8f9d-316d2a54bd06.png) 39 | 此特性默认不开启,如需开启,请下载好主题后用任意文本编辑器将主题文件夹内theme.css中的```@import url("style/4类主要自定义字色.css");```两边的```/*```和```*/```删除后保存。
40 | 已为该样式补充四色系底色。

41 | 42 | ### 复习用填空&黑条样式 43 | 第13种字色和第13种字体底色改为填空样式和黑色色块,只有将鼠标移动上去的时候才会显示文字,用来对特定内容进行回忆复习。 44 | ![13号样式展示](https://user-images.githubusercontent.com/114859111/196854286-5daf0ae3-347d-4285-b1c4-35bb10b1ab9a.gif) 45 | 此特性默认不开启,如需要,请下载好主题后用任意文本编辑器找到主题文件夹内theme.css中的```@import url("style/复习用填空&黑条样式.css");```,在其两边的```/*```和```*/```删除后保存。

46 | 47 | ### 另外两种配色界面 48 | 如需开启,请下载好主题后直接在右上角使用按钮切换。(感谢 [Zuoqiu-Yingyi](https://github.com/Zuoqiu-Yingyi))

49 | ![主题配色切换展示](https://user-images.githubusercontent.com/114859111/196854830-1762d995-3c57-48eb-9bb4-ff6b9bd66bdc.gif) 50 | 51 | ### 图片边框 52 | ![image](https://user-images.githubusercontent.com/114859111/196853759-aadbe55d-9a4c-406a-91ae-b342033d8764.png)
53 | 有时候在亮色主题中插入白色底色图片的时候,总感觉隐隐约约颜色不一样,但又看不清具体的边界在哪。这时候点击图片所在的块的块标,打开块属性面板,添加属性。属性名为tpbk(图片边框拼音缩写),值设置为1,就能让图片有边框线了。 54 | 55 | 56 | 57 | ### 背景图片 58 | 默认不开启,需要使用者请下载好主题后用任意文本编辑器将主题文件夹内theme.css打开,将```@import url("style/背景图片.css");```两边的```/*```和```*/```删除后保存,并按上面的方法开启卷轴页面。 59 | ![image](https://user-images.githubusercontent.com/114859111/194846882-bf4dadbb-7063-4f12-a5f1-6a3889599f3b.png) 60 | 61 | 62 | 63 | # 更新日志 64 | ## 0.5.1版本 65 | * 优化关闭按钮外观 66 | * 对移动端宽度问题作出第一次解决尝试 67 | * 修复反链面板项目的样式,使其有圆角 68 | 69 | ## 0.5.0版本 70 | 71 | ### 新增特性 72 | 73 | * 不同样式的标题 74 | 75 | ### 其他修改 76 | 77 | * 修改了引用的样式,是否一直采用该样式待定中 78 | * 调整了标签样式的圆角 79 | * 修改了3种配色情况下的表格,使其易读性更强 80 | 81 | 82 | ## 0.4.4版本 83 | ### 问题修复 84 | 85 | * 修复了不同字号情况下,标签样式显示不正常的问题 86 | * 修复了鼠标悬浮于引用上时出现的`block__popover`无法使用上下滚动页面的问题 87 | 88 | ## 0.4.3版本 89 | 修改了引用搜索面板和菜单面板的外观 90 | 将`复习用填空&黑条样式`修改为默认不开启(未来计划添加将全部字色样式都变成填空的可选功能) 91 | 92 | ## 0.4.2版本 93 | 补全未更新的代码 94 | 95 | ## 0.4.1版本 96 | 97 | 适配了思源主题更新带来的改变 98 | 99 | ### 新增特性 100 | 101 | * 增加了给图片添加边框的自定义属性 102 | * 为四色系字色添加了对应的底色 103 | 104 | ### 问题修复 105 | 106 | * 修复了弹出菜单面板的边框颜色错误 107 | * 修复了蓝色界面字体样式菜单面板中的颜色错误 108 | 109 | ### 其他改动 110 | 111 | * 为绿色界面、蓝色界面的空白页面增加了背景图 112 | * 微调了左侧文档树笔记本两边的外边距 113 | 114 | ## 0.4版本 115 | 116 | 适配了思源主题更新带来的改变 117 | 118 | 修改了反链面板的外观 119 | 120 | ### 其他改动 121 | 122 | 调整了粉色界面中部分元素的配色 123 | 124 | ## 0.3版本 125 | 126 | ### 新增特性 127 | 128 | * 增加了主题配色切换按钮 129 | * 增加了实验性的底层超级块边框功能,如需使用需要在theme.css中通过注释掉```@import url("style/超级块边框.css")```;,取消注释```@import url("style/底层超级块边框.css");```来开启 130 | 131 | ### 问题修复 132 | 133 | * 修复一些配色错误 134 | * 修复了鼠标悬浮于符合超级块图标上时,不显示容器范围的问题 135 | 136 | ### 其他改动 137 | 138 | * 细微地调整了一了蓝色系界面下的的默认字色和块引字色,使其和蓝色系主题整体配色更加搭调 139 | * 调整了蓝色系界面中表格的底色 140 | 141 | ## 0.2版本 142 | 143 | ### 说明 144 | 145 | * 未来应该会以所有人都有的微软雅黑字体为标准做调整,用户如有字体修改的意愿可以直接在思源的设置-编辑器中更换自己设备上安装了的字体 146 | * 采用思源默认的字色标准(意义不明的标准),**特色性四色系字色需要在根据上方的说明手动开启 147 | * 卷轴页面现在同四色系字色一样需要手动开启 148 | 149 | ### 新增特性 150 | 151 | * **页签栏:** 将页签栏改成支持多行 152 | * **块拖放合并提示**:将思源默认的拖放合并块提示色条改得更加显眼 153 | * **标签样式:** 新增标签样式 ![image](https://user-images.githubusercontent.com/114859111/194849208-ecdb5f49-a2a6-46ce-b4c4-141ef9d94f04.png) 154 | 155 | * **字体样式:** 增加了红、绿、蓝、紫的4色系自定义字色和背景色,为特色性功能 156 | 157 | ### 问题修复 158 | * 使代码块和嵌入块在块合并操作中能正常显示拖放合并块提示色条 159 | * 开启超级块边框后,鼠标悬浮在最外层超级块的图标上时,能正确地显示该超级块的范围了 160 | * 去除了代码块左边影响美观的虚线 161 | ### 其他改动 162 | 163 | * **卷轴页面:** 取消了竖卷轴页面的边框,以防止其边框线影响干扰对正文的阅读。 164 | * **块引用&超级块标示**:根据微软雅黑字体进行调整 165 | 166 | ## 0.1版本 167 | 168 | 上架了初版的pink-room主题 169 | 170 | * 修改了按键和行内代码的外观 171 | * 为超级块添加了边框和底色,以实现卡片外观 172 | * 添加了特性:竖卷轴页面 173 | * 对字体样式菜单做了改动,添加了号码以让人能更加轻易地定位到自己所需要的样式 174 | 175 | 176 | # 更多图片展示 177 | 通过Ctrl++/-可以对界面进行缩放,以调整出合适自己的比例

178 | ![image](https://user-images.githubusercontent.com/114859111/193455229-a02cf0ce-43a0-423f-ba13-ea64008c4d90.png) 179 | 180 | ![image](https://user-images.githubusercontent.com/114859111/193455452-2ca2f9ad-cd2d-477c-86f7-69d9537dfd9a.png) 181 | 182 | 竖屏使用能看到更多的内容 183 | ![image](https://user-images.githubusercontent.com/114859111/193455376-5b30ac9c-6830-4c69-8d45-536cc07cb0db.png) 184 | 185 | # 改进计划 186 | ## 短期改进计划 187 | * 收集使用者反馈 188 | * 改善思源各界面的使用体验 189 | * 将其他主题作者的自定义字体样式方案引入作为用户可选方案 190 | 191 | ## 长期改进计划 192 | * 建立自己的自定义字体样式通用方案 193 | * 制作出设计语言统一但整体色调为其他颜色的变体 194 | * 编写制作背景图教程 195 | -------------------------------------------------------------------------------- /config/root.css: -------------------------------------------------------------------------------- 1 | :root { 2 | /* 主色 */ 3 | --b3-theme-primary: #0969da; 4 | --b3-theme-primary-light: rgba(9, 169, 218, 0.54);/* 半透明亮蓝色,用在了拖拽标示上 */ 5 | --b3-theme-primary-lighter: rgba(9, 169, 218, 0.38); 6 | --b3-theme-primary-lightest: rgba(9, 169, 218, 0.12); 7 | --b3-theme-secondary: #f3a92f; 8 | /* 修改主要的背景色,如果开启卷轴模式则将其设置为编辑区域旁边的背景色,且会深一些 */ 9 | --b3-theme-background: #fff; 10 | 11 | 12 | /* 为了修改当前编辑中页面的页签的顶部阴影色做出修改 */ 13 | /* */ 14 | --b3-theme-background-light: #e86494; 15 | 16 | /* 修改界面颜色为米色 */ 17 | --b3-theme-surface: #fffcf8; 18 | 19 | --b3-theme-surface-light: rgba(243, 243, 243, .86); 20 | --b3-theme-error: #d83021; 21 | 22 | /* 文字颜色 */ 23 | --b3-theme-on-primary: #fff; 24 | --b3-theme-on-secondary: #fff; 25 | 26 | /* 多级标题默认字色,修改以和米色背景搭配,黑色太难看了 */ 27 | --b3-theme-on-background: #7a4d5b; 28 | 29 | /* 此色影响顶部栏图标颜色和不少界面区域中的文字颜色,修改为暗红色以和粉色的界面整体色调匹配 */ 30 | --b3-theme-on-surface: #8b606d; 31 | 32 | --b3-theme-on-surface-light: rgb(174 101 133 / 87%); 33 | --b3-theme-on-error: #fff; 34 | --b3-toolbar-hover:#ef94b7; 35 | /* 字体 */ 36 | --b3-font-family: "quote", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; 37 | --b3-font-family-code: "Consolas",微软雅黑,"TsangerYuMo W02","JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; 38 | --b3-font-family-graph: mononoki; 39 | --b3-font-family-emoji: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"; 40 | --b3-font-family-math: KaTeX_Math; 41 | --b3-font-family-yinshu:"三极柴园简体"; 42 | --b3-font-family-button:"Consolas"; /*给按键kbd用的字体 */ 43 | --b3-font-family-strong:"Microsoft Yahei"; /* 添加了字色部分的字体 44 | 45 | /* 线条 */ 46 | --b3-border-color: #9d2e2e55; 47 | 48 | /* 滚动条 */ 49 | --b3-scroll-color: rgba(0, 0, 0, .2); 50 | 51 | /* 列表 */ 52 | --b3-list-hover: #ffe4e5; 53 | 54 | /* 菜单 */ 55 | --b3-menu-background: #f8f9fa; 56 | 57 | /* 提示 */ 58 | --b3-tooltips-color: rgba(0, 0, 0, 0.54); 59 | 60 | /* 遮罩 */ 61 | --b3-mask-background: rgba(0, 0, 0, 0.78); 62 | 63 | /* 卡片背景 */ 64 | --b3-card-error-color: hsl(4deg 87% 34%); 65 | --b3-card-error-background: rgb(253 236 234 / 80%); 66 | --b3-card-warning-color: rgb(160, 93, 0 ); 67 | --b3-card-warning-background: rgb(255 235 209 / 80%); 68 | --b3-card-info-color: rgb(10, 103, 175); 69 | --b3-card-info-background: rgb(232 244 253 / 80%); 70 | --b3-card-success-color: rgb(23, 120, 28); 71 | --b3-card-success-background: rgb(237 247 237 / 80%); 72 | 73 | /* 自定义文字 */ 74 | --b3-font-color1: var(--b3-card-error-color); 75 | --b3-font-color2: var(--b3-card-warning-color); 76 | --b3-font-color3: var(--b3-card-info-color); 77 | --b3-font-color4: var(--b3-card-success-color); 78 | --b3-font-color5: var(--b3-theme-on-surface); 79 | --b3-font-color6: var(--b3-theme-primary); 80 | --b3-font-color7: var(--b3-theme-secondary); 81 | --b3-font-color8: var(--b3-theme-error); 82 | --b3-font-color9: #f55376; 83 | --b3-font-color10: #a335a3; 84 | --b3-font-color11: #6cad05; 85 | --b3-font-color12: #f56f10; 86 | /* 修改第十三种字色为透明色,以用来复习内容 */ 87 | --b3-font-color13: transparent; 88 | 89 | --b3-font-background1: var(--b3-card-error-background); 90 | --b3-font-background2: var(--b3-card-warning-background); 91 | --b3-font-background3: var(--b3-card-info-background); 92 | --b3-font-background4: var(--b3-card-success-background); 93 | --b3-font-background5: #e2e3e4; 94 | --b3-font-background6: #acd0fc; 95 | --b3-font-background7: #fdeed6; 96 | --b3-font-background8: rgba(255, 193, 153, 0.5); 97 | --b3-font-background9: #fdd5e7; 98 | --b3-font-background10: #e6c7e6; 99 | --b3-font-background11: #def0d9; 100 | --b3-font-background12: rgba(253, 198, 200, 0.5); 101 | --b3-font-background13: var(--b3-theme-on-background); 102 | 103 | /* 动画效果 */ 104 | --b3-transition: all .15s cubic-bezier(0, 0, .2, 1) 0ms; 105 | --b3-width-transition: width .15s cubic-bezier(0, 0, .2, 1) 0ms; 106 | 107 | /* 阴影 */ 108 | --b3-point-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); 109 | --b3-dialog-shadow: 0px 11px 11px 2px rgb(176 90 90 / 41%), 0px 24px 38px 4px rgb(0 0 0 / 14%), 0px 9px 46px 8px rgb(0 0 0 / 12%); 110 | 111 | /* 图表颜色 */ 112 | --b3-graph-p-point: #076f7e; 113 | --b3-graph-heading-point: #0e51af; 114 | --b3-graph-math-point: #80FFA5; 115 | --b3-graph-code-point: #00DDFF; 116 | --b3-graph-table-point: #37A2FF; 117 | --b3-graph-list-point: #FF0087; 118 | --b3-graph-todo-point: #FFBF00; 119 | --b3-graph-olist-point: #b3005f; 120 | --b3-graph-listitem-point: #f65b00; 121 | --b3-graph-bq-point: #8d48e3; 122 | --b3-graph-super-point: #dd79ff; 123 | --b3-graph-doc-point: #0ccadf; 124 | --b3-graph-tag-point: #dbf32f; 125 | --b3-graph-asset-point: #05c091; 126 | --b3-graph-line: #5f6368; 127 | --b3-graph-ref-line: #d23f31; 128 | --b3-graph-tag-line: #5f6b06; 129 | --b3-graph-tag-tag-line: #dbf32f; 130 | --b3-graph-asset-line: #037457; 131 | --b3-graph-hl-point: #f3a92f; 132 | --b3-graph-hl-line: #4285f4; 133 | 134 | /* 编辑器搜索颜色 */ 135 | --b3-protyle-search-background: #ffe955; 136 | --b3-protyle-search-border-color: #f2e680; 137 | --b3-protyle-search-current-background: #a5d3fe; 138 | 139 | /* 代码片段背景 */ 140 | --b3-protyle-code-background: rgba(27, 31, 35, .05); 141 | --b3-protyle-code-linenumber-hl: #b9d1f4; 142 | 143 | /* 所见即所得行内元素颜色 */ 144 | /* 修改带删除线样式的字的字色,继承上级字色 */ 145 | --b3-protyle-inline-strong-color: inherit; 146 | --b3-protyle-inline-em-color: inherit; 147 | --b3-protyle-inline-s-color: inherit; 148 | 149 | /* 超链接字色 */ 150 | --b3-protyle-inline-link-color: #4285f4; 151 | 152 | --b3-protyle-inline-mark-background: #ffe955; 153 | --b3-protyle-inline-mark-color: #202124; 154 | --b3-protyle-inline-tag-color: #5f6368; 155 | 156 | /* 块引用字色 */ 157 | --b3-protyle-inline-blockref-color: #960064; 158 | 159 | /* PDF */ 160 | --b3-pdf-selection: #d0e9c8; 161 | --b3-pdf-sidebar-width: 200px; 162 | --b3-pdf-offset: 0; 163 | --b3-pdf-background1: var(--b3-theme-error); 164 | --b3-pdf-background2: #f5822e; 165 | --b3-pdf-background3: var(--b3-theme-secondary); 166 | --b3-pdf-background4: #65b84d; 167 | --b3-pdf-background5: #f5539e; 168 | --b3-pdf-background6: var(--b3-theme-primary); 169 | --b3-pdf-background7: #944194; 170 | 171 | 172 | /* 文档树辅助样式 */ 173 | --b3-list-item-background-color:inherit; 174 | 175 | 176 | 177 | /* 为各类菜单和面板设置一个统一的边框颜色 */ 178 | --b3-pinkroom-border:#f9c1c5; 179 | 180 | /* 顶栏图标颜色 */ 181 | --b3-toolbar-color:var(--b3-theme-on-surface); 182 | 183 | } 184 | 185 | 186 | 187 | -------------------------------------------------------------------------------- /style/4类主要自定义字色.css: -------------------------------------------------------------------------------- 1 | 2 | /* ——————————————————文字发光/荧光字———————————————— */ 3 | 4 | /* 为所有字色设置相同的字体、字重、透明度 */ 5 | [style*="color: var(--b3-font-color"] { 6 | /* font-family:var(--b3-font-family-strong); */ 7 | font-weight: 500; 8 | font-size: 1em; 9 | opacity: 90% !important; 10 | vertical-align:inherit; 11 | padding: 0px 2px 0px 2px; 12 | } 13 | 14 | 15 | /* 红色系 字色 重要等级低 */ 16 | [style*="var(--b3-font-color1);"] { 17 | color:#e26681 !important; 18 | text-shadow:none; 19 | } 20 | 21 | /* 红色系 字色 重要等级中 */ 22 | [style*="var(--b3-font-color2);"] { 23 | color: #e63965 !important; 24 | /* text-shadow: 0px 0px 2px hsl(345, 88%, 46%, 0.8), 25 | 0px 0px 3px hsla(342, 88%, 53%, 0.8); */ 26 | } 27 | 28 | /* 红色系 字色 重要等级高 */ 29 | [style*="var(--b3-font-color3);"] { 30 | color:#dd0e42 !important; 31 | /* text-shadow: 0px 0px 2px hsl(345, 88%, 46%), 32 | 0px 0px 3px hsl(342, 88%, 53%), 33 | 1px 1px 4px hsla(0, 100%, 73%, 0.829); */ 34 | } 35 | 36 | 37 | /* 绿色系 字色 重要等级低 */ 38 | [style*="var(--b3-font-color4);"] { 39 | color:#8ec181 !important; 40 | text-shadow:none; 41 | } 42 | 43 | /* 绿色系 字色 重要等级中 */ 44 | [style*="var(--b3-font-color5);"] { 45 | /* opacity: 88%; */ 46 | color:#5d9c35!important; 47 | } 48 | 49 | /* 绿色系 字色 重要等级高 */ 50 | [style*="var(--b3-font-color6);"] { 51 | color:#007a16 !important; 52 | /* text-shadow: 0px 0px 0.1em hsl(91, 100%, 33%), 53 | 0px 0px 0.2em hsla(88, 96%, 37%, 0.8), 54 | 0px 0px 0.3em hsla(88, 100%, 39%, 0.3); */ 55 | } 56 | 57 | [style*="var(--b3-font-color7);"] { 58 | color:#68aeca !important; 59 | text-shadow:none; 60 | } 61 | 62 | [style*="var(--b3-font-color8);"] { 63 | opacity: 88%; 64 | color:#2c98ce !important; 65 | /* text-shadow: 0px 0px 2px hsla(200, 90%, 34%, 1), 66 | 0px 0px 3px hsla(206, 88%, 53%, 1); */ 67 | } 68 | 69 | /* 蓝色系 字色 重要程度高 */ 70 | [style*="var(--b3-font-color9);"] { 71 | color:#006ec2 !important; 72 | /* text-shadow: 0px 0px 1px hsl(206, 100%, 38%), 73 | 0px 0px 2px hsl(206, 100%, 38%), 74 | 0px 0px 4px hsl(206, 100%, 50%), 75 | 0px 0px 6px hsla(206, 100%, 65%, 0.85); */ 76 | } 77 | 78 | /* 黄色系 字色 重要等级低 */ 79 | [style*="var(--b3-font-color10);"] { 80 | color:#a379dc !important; 81 | } 82 | 83 | /* 黄色系 字色 重要等级中 */ 84 | [style*="var(--b3-font-color11);"] { 85 | /* opacity: 88%; */ 86 | color:#7c51b8 !important; 87 | /* text-shadow: 0px 0px 2px rgb(86, 0, 208), 88 | 0px 0px 3px hsla(265, 100%, 50%, 0.6); */ 89 | } 90 | 91 | 92 | /* 黄色系 字色 重要等级高 */ 93 | [style*="var(--b3-font-color12);"] { 94 | color:#703cd7 !important; 95 | /* text-shadow: 0px 0px 0.1em hsl(260, 100%, 39%), 96 | 0px 0px 0.2em hsla(265, 100%, 69%, 0.95), 97 | 0px 0px 0.3em hsla(265, 100%, 79%, 0.7); */ 98 | } 99 | 100 | 101 | /* 修改字色菜单中的图标颜色 */ 102 | .b3-color__square[style="background-color:var(--b3-font-color1)"]{ 103 | background-color:#e26681 !important; 104 | } 105 | 106 | .b3-color__square[style="background-color:var(--b3-font-color2)"]{ 107 | background-color:#e63965 !important; 108 | } 109 | 110 | .b3-color__square[style="background-color:var(--b3-font-color3)"]{ 111 | background-color:#dd0e42 !important; 112 | } 113 | 114 | .b3-color__square[style="background-color:var(--b3-font-color4)"]{ 115 | background-color:#8ec181 !important; 116 | } 117 | 118 | .b3-color__square[style="background-color:var(--b3-font-color5)"]{ 119 | background-color:#5d9c35 !important; 120 | } 121 | 122 | .b3-color__square[style="background-color:var(--b3-font-color6)"]{ 123 | background-color:#007a16 !important; 124 | } 125 | 126 | .b3-color__square[style="background-color:var(--b3-font-color7)"]{ 127 | background-color:#68aeca !important; 128 | } 129 | 130 | .b3-color__square[style="background-color:var(--b3-font-color8)"]{ 131 | background-color:#2c98ce !important; 132 | } 133 | 134 | .b3-color__square[style="background-color:var(--b3-font-color9)"]{ 135 | background-color:#006ec2 !important; 136 | } 137 | 138 | .b3-color__square[style="background-color:var(--b3-font-color10)"]{ 139 | background-color:#a379dc !important; 140 | } 141 | 142 | .b3-color__square[style="background-color:var(--b3-font-color11)"]{ 143 | background-color:#7c51b8 !important; 144 | } 145 | .b3-color__square[style="background-color:var(--b3-font-color12)"]{ 146 | background-color:#703cd7 !important; 147 | } 148 | 149 | 150 | 151 | 152 | 153 | 154 | /*** ———————————————修改设置了底色/背景色的文字部分的样式————————————————— ***/ 155 | 156 | /* 为不同底色/背景色区域设置一部分相同的样式 */ 157 | 158 | [style*="var(--b3-font-background1);"] { 159 | background-color: hsl(358deg 76% 84%) !important; 160 | color: hsl(0deg 23% 42%) !important; 161 | /* opacity: 80%; */ 162 | } 163 | 164 | [style*="var(--b3-font-background2);"] { 165 | background-color: #ff8d8d !important; 166 | color: #882c37 !important; 167 | /* opacity: 90%; */ 168 | } 169 | 170 | [style*="var(--b3-font-background3);"] { 171 | background-color: hsl(0deg 100% 71%) !important; 172 | color: #500012 !important; 173 | } 174 | 175 | [style*="var(--b3-font-background4);"] { 176 | background-color: #b5cf94 !important; 177 | color: #596d41 !important; 178 | opacity: 80%; 179 | } 180 | 181 | [style*="var(--b3-font-background5);"] { 182 | background-color: hsl(86deg 64% 70%) !important; 183 | color: #40641f !important; 184 | opacity: 90%; 185 | } 186 | 187 | [style*="var(--b3-font-background6);"] { 188 | background-color: #b8f15b !important; 189 | color: #036323 !important; 190 | } 191 | 192 | [style*="var(--b3-font-background7);"] { 193 | color: #41667b !important; 194 | background-color: rgb(137 196 218) !important; 195 | /* opacity: 80%; */ 196 | } 197 | 198 | [style*="var(--b3-font-background8);"] { 199 | color: #1f5a6c!important; 200 | background-color: rgb(123 214 237) !important; 201 | /* opacity: 90%; */ 202 | } 203 | 204 | [style*="var(--b3-font-background9);"] { 205 | color: rgb(25 82 141)!important; 206 | background-color: rgb(110 233 255) !important; 207 | } 208 | 209 | [style*="var(--b3-font-background10);"] { 210 | background-color: hsl(277deg 55% 87%) !important; 211 | color: hsl(281deg 22% 49%) !important; 212 | /* opacity: 80%; */ 213 | } 214 | 215 | [style*="var(--b3-font-background11);"] { 216 | background-color: hsl(277deg 100% 85%) !important; 217 | color: hsl(281deg 44% 32%) !important; 218 | } 219 | 220 | [style*="var(--b3-font-background12);"] { 221 | background-color: rgb(207 110 255) !important; 222 | color: hsl(282deg 90% 15%) !important; 223 | } 224 | 225 | 226 | 227 | /* 修改字色菜单中底色的图标颜色 */ 228 | .b3-color__square[style="background-color:var(--b3-font-background1)"]{ 229 | background-color:#e26681 !important; 230 | } 231 | 232 | .b3-color__square[style="background-color:var(--b3-font-background2)"]{ 233 | background-color:#e63965 !important; 234 | } 235 | 236 | .b3-color__square[style="background-color:var(--b3-font-background3)"]{ 237 | background-color:#dd0e42 !important; 238 | } 239 | 240 | .b3-color__square[style="background-color:var(--b3-font-background4)"]{ 241 | background-color:#8ec181 !important; 242 | } 243 | 244 | .b3-color__square[style="background-color:var(--b3-font-background5)"]{ 245 | background-color:#5d9c35 !important; 246 | } 247 | 248 | .b3-color__square[style="background-color:var(--b3-font-background6)"]{ 249 | background-color:#007a16 !important; 250 | } 251 | 252 | .b3-color__square[style="background-color:var(--b3-font-background7)"]{ 253 | background-color:#68aeca !important; 254 | } 255 | 256 | .b3-color__square[style="background-color:var(--b3-font-background8)"]{ 257 | background-color:#2c98ce !important; 258 | } 259 | 260 | .b3-color__square[style="background-color:var(--b3-font-background9)"]{ 261 | background-color:#006ec2 !important; 262 | } 263 | 264 | .b3-color__square[style="background-color:var(--b3-font-background10)"]{ 265 | background-color:#a379dc !important; 266 | } 267 | 268 | .b3-color__square[style="background-color:var(--b3-font-background11)"]{ 269 | background-color:#7c51b8 !important; 270 | } 271 | .b3-color__square[style="background-color:var(--b3-font-background12)"]{ 272 | background-color:#703cd7 !important; 273 | } -------------------------------------------------------------------------------- /style/ListTree.css: -------------------------------------------------------------------------------- 1 | /* 文档树引用数字的颜色,修改为淡色,避免过于显眼导致注意力容易从笔记本标题文字上分散到此*/ 2 | .counter { 3 | color: #55555a5d; 4 | } 5 | 6 | 7 | /* 无子文档的文档前面添加圆点符号 */ 8 | .b3-list-item.b3-list-item--hide-action .b3-list-item__toggle.fn__hidden::before { 9 | content: "◦"; 10 | font-size: 2em; 11 | position: absolute; 12 | visibility: visible; 13 | margin-bottom: 2px; 14 | color: #8080804d; 15 | } 16 | 17 | /* 设置文档树前面的>符号颜色为灰色以不抢夺笔记本标题文字的视觉吸引力 */ 18 | .fn__flex-1.fn__flex-column.file-tree .b3-list-item__arrow { 19 | color: #8080804d; 20 | } 21 | 22 | /* 点击文档树emoji不弹出修改窗口(防止误触) */ 23 | span.b3-list-item__icon.b3-tooltips.b3-tooltips__n { 24 | pointer-events: none; 25 | } 26 | 27 | /* 笔记本之间的间隔 */ 28 | .sy__file ul.b3-list.b3-list--background { 29 | border-radius: 2px; 30 | margin: 6px 10px 6px 12px; 31 | outline: 1px solid rgba(178, 100, 100, 0.812); 32 | background-color: white; 33 | /* box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px; */ 34 | } 35 | 36 | [data-type="navigation-root"] { 37 | height: 32px; 38 | } 39 | 40 | 41 | /* 设置反链面板图标位置(不设置对不齐) */ 42 | .backlinkList.fn__flex-1 .b3-list-item .popover__block { 43 | margin-left: 4px; 44 | } 45 | 46 | 47 | 48 | /* ------------------------------------文档树文字设置为灰色------------------------------- */ 49 | .b3-list-item__text { 50 | color: var(--b3-theme-on-surface); 51 | } 52 | 53 | /* -----------------------------文档树focus------------------------------- */ 54 | 55 | /* 颜色 */ 56 | .b3-list--background .b3-list-item--focus .b3-list-item__text, 57 | .b3-list--background .b3-list-item--focus .b3-list-item__graphic, 58 | .b3-list--background .b3-list-item--focus .b3-list-item__icon svg { 59 | color: var(--b3-theme-on-background); 60 | } 61 | 62 | 63 | 64 | /* 背景色 */ 65 | .b3-list--background .b3-list-item--focus { 66 | background-color: #ffd7d9 !important; 67 | } 68 | 69 | 70 | 71 | 72 | 73 | /* -----------------------------文档树hover-------------------------------- */ 74 | 75 | /* 颜色 */ 76 | .b3-list--background .b3-list-item:hover .b3-list-item__text, 77 | .b3-list--background .b3-list-item:hover .b3-list-item__graphic, 78 | .b3-list--background .b3-list-item:hover .b3-list-item__icon svg { 79 | color: var(--b3-theme-error); 80 | } 81 | 82 | /* 背景 */ 83 | 84 | /* 文档树辅助线(来自于Rem Craft主题) */ 85 | .b3-list:not(.b3-list--border) .b3-list-item+ul { 86 | box-shadow: 13px 0px var(--b3-list-item-background-color) inset, 14px 0 rgba(231, 231, 231, 1) inset; 87 | } 88 | 89 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item { 90 | margin-left: 6px 91 | } 92 | 93 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul { 94 | box-shadow: 13px 0 var(--b3-list-item-background-color) inset, 14px 0 rgba(231, 231, 231, 1) inset, 35px 0 var(--b3-list-item-background-color) inset, 36px 0 rgba(231, 231, 231, 1) inset 95 | } 96 | 97 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item { 98 | margin-left: 12px 99 | } 100 | 101 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul { 102 | box-shadow: 13px 0 var(--b3-list-item-background-color) inset, 14px 0 rgba(231, 231, 231, 1) inset, 35px 0 var(--b3-list-item-background-color) inset, 36px 0 rgba(231, 231, 231, 1) inset, 57px 0 var(--b3-list-item-background-color) inset, 58px 0 rgba(231, 231, 231, 1) inset 103 | } 104 | 105 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item { 106 | margin-left: 18px 107 | } 108 | 109 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul { 110 | box-shadow: 13px 0 var(--b3-list-item-background-color) inset, 14px 0 rgba(231, 231, 231, 1) inset, 35px 0 var(--b3-list-item-background-color) inset, 36px 0 rgba(231, 231, 231, 1) inset, 57px 0 var(--b3-list-item-background-color) inset, 58px 0 rgba(231, 231, 231, 1) inset, 79px 0 var(--b3-list-item-background-color) inset, 80px 0 rgba(231, 231, 231, 1) inset 111 | } 112 | 113 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item { 114 | margin-left: 24px 115 | } 116 | 117 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul { 118 | box-shadow: 13px 0 var(--b3-list-item-background-color) inset, 14px 0 rgba(231, 231, 231, 1) inset, 35px 0 var(--b3-list-item-background-color) inset, 36px 0 rgba(231, 231, 231, 1) inset, 57px 0 var(--b3-list-item-background-color) inset, 58px 0 rgba(231, 231, 231, 1) inset, 79px 0 var(--b3-list-item-background-color) inset, 80px 0 rgba(231, 231, 231, 1) inset, 101px 0 var(--b3-list-item-background-color) inset, 102px 0 rgba(231, 231, 231, 1) inset 119 | } 120 | 121 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item { 122 | margin-left: 30px 123 | } 124 | 125 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul { 126 | box-shadow: 13px 0 var(--b3-list-item-background-color) inset, 14px 0 rgba(231, 231, 231, 1) inset, 35px 0 var(--b3-list-item-background-color) inset, 36px 0 rgba(231, 231, 231, 1) inset, 57px 0 var(--b3-list-item-background-color) inset, 58px 0 rgba(231, 231, 231, 1) inset, 79px 0 var(--b3-list-item-background-color) inset, 80px 0 rgba(231, 231, 231, 1) inset, 101px 0 var(--b3-list-item-background-color) inset, 102px 0 rgba(231, 231, 231, 1) inset, 123px 0 var(--b3-list-item-background-color) inset, 124px 0 rgba(231, 231, 231, 1) inset 127 | } 128 | 129 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item { 130 | margin-left: 36px 131 | } 132 | 133 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul { 134 | box-shadow: 13px 0 var(--b3-list-item-background-color) inset, 14px 0 rgba(231, 231, 231, 1) inset, 35px 0 var(--b3-list-item-background-color) inset, 36px 0 rgba(231, 231, 231, 1) inset, 57px 0 var(--b3-list-item-background-color) inset, 58px 0 rgba(231, 231, 231, 1) inset, 79px 0 var(--b3-list-item-background-color) inset, 80px 0 rgba(231, 231, 231, 1) inset, 101px 0 var(--b3-list-item-background-color) inset, 102px 0 rgba(231, 231, 231, 1) inset, 123px 0 var(--b3-list-item-background-color) inset, 124px 0 rgba(231, 231, 231, 1) inset, 145px 0 var(--b3-list-item-background-color) inset, 146px 0 rgba(231, 231, 231, 1) inset 135 | } 136 | 137 | .b3-list:not(.b3-list--border) .b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item+ul>.b3-list-item { 138 | margin-left: 42px 139 | } 140 | 141 | 142 | /* 在设置了文档辅助线后,列表大纲的底色和文档辅助线所用的白色box-shadow冲突了,出现白色长条块影响美观,故将列表大纲直接设置成白色底色以融合在一起 */ 143 | .sy__outline > div.fn__flex-1{ 144 | background-color: #fff; 145 | } 146 | 147 | 148 | 149 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,下方代码将其中的元素正常放置而不是居中放置 */ 150 | .block__edit.fn__flex-1.protyle{ 151 | align-items: normal; 152 | } 153 | 154 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域中的内容块设置小点的内边距以防止出现多个滚动条 */ 155 | .block__edit>.protyle-content>.protyle-wysiwyg.protyle-wysiwyg--attr{ 156 | padding: 0px 20px 0px 20px !important; 157 | overflow-y: hidden; 158 | /* min-height: 30px; */ 159 | /* margin: 10px; */ 160 | } 161 | 162 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域设置边框 */ 163 | .block__popover.block__popover--move.block__popover--open{ 164 | border: 5px solid var(--b3-pinkroom-border); 165 | } 166 | 167 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域取消内阴影*/ 168 | .block__edit.fn__flex-1.protyle{ 169 | box-shadow: none; 170 | } 171 | 172 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域取消内阴影*/ 173 | .block__edit>.protyle-breadcrumb{ 174 | background-color: #fbeeee; 175 | } 176 | 177 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域中的内容区域设置底色 */ 178 | /* 设置overflow是为了不出现多余的滚动条 */ 179 | /* 这里设置overflow会导致鼠标悬浮在引用上时的编辑面板无法上下滚动 */ 180 | .block__edit.fn__flex-1.protyle>.protyle-content{ 181 | background-color: #fffbf9; 182 | /* overflow: hidden; */ 183 | } 184 | 185 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域中的内容区域设置最底层的底色 */ 186 | .block__popover.block__popover--move.block__popover--open .block__content{ 187 | background-color: #dfd1cdb5; 188 | } 189 | 190 | 191 | /* 防止鼠标划过列表项时,底色左右两边还留有空隙 */ 192 | .b3-list-item{ 193 | margin: 0px !important; 194 | } 195 | 196 | /* 鼠标划过列表项时的底色 */ 197 | .b3-list--background .b3-list-item:hover:not(.b3-list-item--focus){ 198 | background-color: #ffd9d6; 199 | } 200 | 201 | 202 | /* list-item设置底色时和外边框的圆角不融合 */ 203 | .b3-list--background .b3-list-item{ 204 | border-radius: 2px; 205 | } -------------------------------------------------------------------------------- /杂乱的修改.css: -------------------------------------------------------------------------------- 1 | /* ————————————下面的都是比较杂乱的修改——————————————— */ 2 | 3 | /* 让标题直接透明,露出下方颜色 */ 4 | .protyle-title__input{ 5 | background-color: transparent; 6 | padding: 4px 2px; 7 | } 8 | 9 | /* 改变标题区域的样式 2版 */ 10 | .protyle-title__input { 11 | background: transparent; 12 | border-bottom: 2px solid #e3bbc3; 13 | line-height: 1.1em; 14 | color: #e06289; 15 | } 16 | 17 | /* 修改行距和段落间距 但除了代码块的行距,因为会让每行前的数字无法对齐*/ 18 | /* .protyle-wysiwyg.protyle-wysiwyg [data-node-id]:not([data-type="NodeCodeBlock"]){ 19 | line-height:1.8em !important; 20 | margin-bottom: 6px; 21 | margin-top: 6px; 22 | } */ 23 | 24 | 25 | 26 | /* 鼠标悬浮于题头图标上时放大,以让用户意识到鼠标移动到了热区 */ 27 | .protyle-background__icon:hover{ 28 | transform: scale(1.05); 29 | } 30 | 31 | 32 | /* ----界面配色修改相关---- */ 33 | /* 左右两侧的停靠栏设置为粉色 */ 34 | .dock{ 35 | background-color: #ffe1e1; 36 | } 37 | 38 | /* 顶部工具栏设置为粉色 */ 39 | .toolbar{ 40 | background-color: #f8c5c4 !important; 41 | height: 2rem; 42 | } 43 | 44 | 45 | /* 为"始质"区域添加内阴影使得编辑区整个看起来位于一个空间内部,更有质感 */ 46 | /* .fn__flex-1.protyle{ */ 47 | /* box-shadow: inset 0 0 10px 1px #e1c2c3; */ 48 | /* 不加了,容易使画面看起来脏 */ 49 | /* } */ 50 | 51 | 52 | 53 | /* 滚动条滑块部分 */ 54 | ::-webkit-scrollbar-thumb:hover{ 55 | background-color:#69caf1; 56 | border-radius: 0.1em; 57 | } 58 | 59 | ::-webkit-scrollbar-thumb{ 60 | background-color:#9cd9f1; 61 | border-radius: 0.1em; 62 | box-shadow: none; 63 | /* 不要为滚动条添加外部阴影,会有残影 */ 64 | } 65 | 66 | 67 | 68 | /* 修改嵌入块的样式 */ 69 | .protyle-wysiwyg [data-node-id].render-node[data-type=NodeBlockQueryEmbed] { 70 | background-color: #ebdad763; 71 | box-shadow: 0px 0px 3px 2px inset #d2c5ca; 72 | border-radius: 5px; 73 | } 74 | 75 | 76 | /* 给右边的关系图和反链面板所在的区域设置左侧边框 */ 77 | /* #layouts > div.fn__flex.fn__flex-1 > div:nth-child(5){ 78 | border-left: solid 10px #f9c1c5; 79 | } */ 80 | 81 | 82 | 83 | 84 | 85 | /* 修改状态栏底色 */ 86 | .status{ 87 | background-color: #ffe1e1; 88 | border-top: solid 0.5px rgba(108, 86, 86, 0.373); 89 | box-sizing: border-box; 90 | } 91 | 92 | 93 | 94 | /* 修改提示菜单样式 */ 95 | .hint--menu { 96 | column-count: 4; 97 | column-width: 20px !important; 98 | column-gap: 10px; 99 | min-width: 38vw !important; 100 | max-height: 600px !important; 101 | border: 0.2em solid pink; 102 | padding: 4px; 103 | background-color: white; 104 | border-radius: 0px; 105 | } 106 | 107 | /* 修改提示菜单中选项样式 */ 108 | .protyle-hint.b3-list.b3-list--background.hint--menu .b3-list-item { 109 | font-size: 90%; 110 | border: 1px solid #8b41417d; 111 | box-sizing: border-box; 112 | vertical-align: middle; 113 | padding: 2px 8px !important; 114 | margin-top: 3px !important; 115 | border-radius: 0px; 116 | width: 100% !important; 117 | } 118 | 119 | 120 | /* 菜单中的分隔线 */ 121 | .b3-menu__separator{ 122 | background-color: rgb(194 157 157 / 66%); 123 | margin: 5px 0; 124 | width: 100% 125 | } 126 | 127 | 128 | 129 | 130 | 131 | 132 | /* 防止界面中出现没什么用的滚动条 */ 133 | .fn__flex.fn__flex-1{ 134 | overflow-x:hidden; 135 | } 136 | 137 | /* 修改默认的投影样式 */ 138 | [style*="text-shadow"]{ 139 | color:#834e68 !important; 140 | text-shadow: 0px 1px 0px #d3b9b9c2, 0px 2px #d3b2b299, 0px 3px 5px #c7b0b0, 0px 4px 5px #eed3d0cc !important; 141 | 142 | } 143 | 144 | /* 修改默认的镂空样式 */ 145 | [style*="-webkit-text-stroke"]{ 146 | font-weight: 900 !important; 147 | -webkit-text-stroke: 0.8px var(--b3-theme-on-background) !important; 148 | } 149 | 150 | /* 录音块外观修改 */ 151 | audio{ 152 | display: block; 153 | border-radius: 49px; 154 | border: 5px solid #b2708a; 155 | /* background: #030303; */ 156 | box-shadow: 0px 0px 5px 0px #6e5d548f, 0px 0px 14px 1px #9a7a8282; 157 | } 158 | 159 | /* 标题中标签不显示在大纲中 */ 160 | .b3-list-item__text [data-type="tag"]{ 161 | color:transparent !important; 162 | } 163 | 164 | /* 修改提示气泡样式 */ 165 | .tooltip{ 166 | font-size: 1rem !important; 167 | background-color: #834e68; 168 | } 169 | 170 | 171 | /* 标签tag样式 */ 172 | .protyle-wysiwyg [data-node-id] span[data-type~=tag] { 173 | background-color: #fff; 174 | transition: all .2s cubic-bezier(0.645, 0.045, 0.355, 1); 175 | color: var(--b3-theme-on-surface); 176 | /* border-radius: 10% 10% 10% 10% / 34% 34% 34% 34% ; */ 177 | border-radius: 0.3em; 178 | position: relative; 179 | padding: .1em 0.3em .1em .1em; 180 | font-size: 85%; 181 | box-shadow: #b16b81 3.6em 0px 0px -2.2em inset, 0px 0px 0px 1px inset; 182 | border: none; 183 | /* box-sizing: border-box; */ 184 | } 185 | /* 标签tag样式 */ 186 | .protyle-wysiwyg [data-node-id] span[data-type~=tag]::before { 187 | content: "#"; 188 | color: #fff; 189 | display: inline-block; 190 | margin-right: .2rem; 191 | padding: 0em .4em 0em 0.3em; 192 | } 193 | 194 | 195 | 196 | 197 | /* 思源笔记的嵌入块默认的左侧边框虚线 */ 198 | .protyle-wysiwyg [data-node-id].render-node[data-type=NodeBlockQueryEmbed]{ 199 | border-left: none !important; 200 | } 201 | 202 | /* 给分隔线设置单独的颜色以契合背景颜色 */ 203 | .protyle-wysiwyg [data-node-id].hr>div{ 204 | border-bottom: 1px solid #852a4b; 205 | } 206 | 207 | 208 | /* 使代码块和嵌入块在块合并操作中能正常显示拖放合并块提示色条 */ 209 | /* 加大拖放合并块提示色条的大小以让其更容易识别 */ 210 | .dragover__top{ 211 | box-shadow: 0px -10px 0 var(--b3-theme-primary-lighter) !important; 212 | } 213 | .dragover__right{ 214 | box-shadow: 10px 0 0 var(--b3-theme-primary-lighter) !important; 215 | } 216 | .dragover__bottom{ 217 | box-shadow: 0px 10px 0 var(--b3-theme-primary-lighter) !important; 218 | } 219 | .dragover__left{ 220 | box-shadow: -10px 0 0 var(--b3-theme-primary-lighter) !important; 221 | } 222 | 223 | /* 使得protyle-content的box-shadow不遮挡面包屑 */ 224 | .protyle-breadcrumb{ 225 | z-index: 1; 226 | } 227 | 228 | /* 使得标签界面、书签界面和其中的列表左侧伪元素底色一致 */ 229 | .sy__bookmark .fn__flex-1,.sy__tag .fn__flex-1{ 230 | background-color: #fff; 231 | } 232 | /* 书签、标签顶栏横线 */ 233 | .sy__bookmark > .block__icons > :nth-child(2), .sy__tag > .block__icons > :nth-child(2){ 234 | background-color: var(--b3-theme-on-background); 235 | } 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | /* 修改菜单卡片悬浮后底色 */ 245 | .b3-card:hover{ 246 | background-color: #ffa0a055; 247 | } 248 | 249 | 250 | /* 修改虚拟引用样式 */ 251 | .protyle-wysiwyg [data-node-id] span[data-type=virtual-block-ref]{ 252 | background-color: var(--pinkroom-virtual-rel-background-color); 253 | border-bottom: 2px #00b3e5; 254 | border-bottom-style: dashed; 255 | } 256 | 257 | /* 停靠栏图标,激活时 */ 258 | .dock__item--activefocus{ 259 | background-color: #f88eb6 !important; 260 | color: #802727 !important; 261 | } 262 | /* 修改激活中的区域图标的颜色 */ 263 | .dock__item--active { 264 | background-color: #eb8cb1b5; 265 | color: #7d2b2b; 266 | } 267 | 268 | 269 | 270 | /* 给右边的关系图和反链面板所在的区域和中间的编辑区域之间的边界移动条设置位置 */ 271 | #layouts > div.fn__flex.fn__flex-1 > div:nth-child(4) { 272 | cursor: col-resize; 273 | width: 11px; 274 | margin: 0px -11px 0 0px; 275 | height: auto; 276 | } 277 | 278 | 279 | /* 给嵌入块中的面包屑添加底部分割线 */ 280 | .render-node .protyle-breadcrumb__bar.protyle-breadcrumb__bar--nowrap::before{ 281 | content: ""; 282 | width: 100%; 283 | border-bottom: 1px solid #a3708980; 284 | position: absolute; 285 | top: 27px; 286 | } 287 | 288 | /* 修改面包屑bar中文字大小,不和正文抢注意力 */ 289 | .protyle-wysiwyg .protyle-breadcrumb__bar{ 290 | font-size: 12px; 291 | } 292 | 293 | .render-node .protyle-breadcrumb__item{ 294 | height: 14px; 295 | color: #a47483; 296 | } 297 | 298 | .render-node .protyle-breadcrumb__item--active{ 299 | background-color: #fff0!important; 300 | color: #ba304bad; 301 | } 302 | 303 | /* 此代码用以解决集市页面,卡片的图片“顶”出卡片范围的问题 */ 304 | .b3-card{ 305 | padding-top: 5px; 306 | } 307 | 308 | 309 | 310 | /* 按[[唤出的hint菜单 */ 311 | .protyle-hint{ 312 | border: var( --pinkroom-pink-menu-border); 313 | border-radius: 2px; 314 | } 315 | 316 | /* 按[[唤出的hint菜单中的项目 */ 317 | .protyle-hint .b3-list-item{ 318 | width: 100% !important; 319 | border: 1px solid rgba(130, 23, 23, 0.556); 320 | border-left: none; 321 | border-radius: 0px !important; 322 | background-color: #ffffff; 323 | border-top: none; 324 | } 325 | 326 | 327 | /* 关闭按钮 */ 328 | .b3-dialog__close{ 329 | background-color: #fff; 330 | border-radius: 5px; 331 | padding: 3px; 332 | } 333 | 334 | .b3-dialog__close:hover{ 335 | background-color: #9cd9f1; 336 | } 337 | 338 | 339 | 340 | 341 | /* .protyle-title__input::after{ 342 | content: "聚焦状态"; 343 | color: red; 344 | position: relative; 345 | display: inline-block; 346 | margin-right: .2rem; 347 | padding: 0em .4em 0em 0.3em; 348 | } */ 349 | 350 | 351 | /* 进入聚焦状态时,标题能显示出当前处于“聚焦状态”下 */ 352 | /* .protyle-breadcrumb:has(.block__icon.block__icon--show.ft__smaller.fn__flex-center:not(.fn__none))+.protyle-content .protyle-title.protyle-wysiwyg--attr .protyle-title__input::after{ 353 | content: "聚焦状态"; 354 | color: rgb(224, 150, 150); 355 | position: relative; 356 | font-weight: 400; 357 | display: inline-block; 358 | margin-right: .2rem; 359 | padding: 0em .4em 0em 0.3em; 360 | } */ 361 | 362 | /* 修改聚焦状态下退出按钮的显眼度 */ 363 | .block__icon.block__icon--show.ft__smaller.fn__flex-center{ 364 | font-size: 100%; 365 | background-color: #8cdfff; 366 | color: #535d6a; 367 | } 368 | /* 增强面包屑上边距,目的是让聚焦状态下出现背景色的元素的上下空白间隙达到视觉平衡*/ 369 | .protyle-breadcrumb{ 370 | padding-top: 2px; 371 | } 372 | 373 | /* 使工作空间名字字色和工具栏其他颜色统一 */ 374 | .toolbar__text{ 375 | color: var(--b3-toolbar-color); 376 | } 377 | 378 | /* 引用统计标识会出现在嵌入块边框上,不好看,所以加上边线以区分 */ 379 | .protyle-attr--refcount{ 380 | border: 1px solid var(--b3-theme-on-surface); 381 | } 382 | 383 | -------------------------------------------------------------------------------- /config/绿色系界面.css: -------------------------------------------------------------------------------- 1 | :root{ 2 | /* 线条 */ 3 | --b3-border-color:#639d2e55; 4 | --b3-theme-on-surface:#376f4f; 5 | /* 列表 */ 6 | --b3-list-hover:#d1ebb0e8; 7 | 8 | --b3-theme-on-background:#174236; 9 | /* 为各类菜单和面板设置一个统一的边框颜色 */ 10 | --b3-pinkroom-border:#c9df74; 11 | 12 | /* 此色影响顶部栏图标颜色和不少界面区域中的文字颜色,修改为暗红色以和粉色的界面整体色调匹配 */ 13 | --b3-theme-on-surface: #376f3c; 14 | 15 | --b3-theme-on-surface-light: rgba(129, 164, 133, 0.87); 16 | 17 | /* 多级标题默认字色,修改以和米色背景搭配,黑色太难看了 */ 18 | --b3-theme-on-background: #3e743d; 19 | 20 | /* 超链接用字色 */ 21 | /* --b3-protyle-inline-link-color:#1461e0; */ 22 | 23 | --b3-theme-background-light: hwb(88 25% 23%); 24 | 25 | 26 | --b3-theme-surface:#f2fbe2; 27 | 28 | /* 修改主要的背景色,如果开启卷轴模式则将其设置为编辑区域旁边的背景色 */ 29 | --b3-theme-background: hsl(92deg 33% 97%); 30 | 31 | /* 修改对话窗口阴影 */ 32 | --b3-dialog-shadow: 0px 11px 11px 2px 33 | hwb(117deg 12% 70% / 32%), 0px 24px 38px 4px hwb(79deg 28% 62% / 14%), 0px 9px 46px 8px rgb(118 127 123 / 12%); 34 | 35 | /* 修改成功、信息、警告、错误背景色,是为了适应绿色界面过于明亮而做的改动 */ 36 | --b3-card-success-background: rgb(217 234 201 /90%); 37 | --b3-card-info-background: rgb(214 236 252 /90%); 38 | --b3-card-warning-background: rgb(251 224 193 / 90%); 39 | --b3-card-error-background: rgb(245 219 216 / 90%); 40 | 41 | --pinkroom-tag-boxshadow-color: #7b9a6e; 42 | 43 | /* 虚拟引用标记颜色 */ 44 | --pinkroom-virtual-rel-background-color:#9ee9a936; 45 | 46 | /* 表格标题行的底色 */ 47 | --pinkroom-table-head-background-color:#cae7ba; 48 | /* 表格单数行底色 */ 49 | --pinkroom-table-2n-1-background-color:hsl(101deg 98% 99%); 50 | /* 表格双数行底色 */ 51 | --pinkroom-table-2n-background-color:hsl(96deg 65% 96%); 52 | /* 表格边框颜色 */ 53 | --pinkroom-table-border-color:#94ab884a; 54 | } 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | /* 左侧文档树区域 */ 68 | .fn__flex-1.fn__flex-column.file-tree{ 69 | background-color: #eff3df; 70 | } 71 | 72 | 73 | /* 整个标签栏的样式 */ 74 | .layout-tab-bar { 75 | background-color: #e9ffe3; 76 | } 77 | 78 | /* 为标签页中的页签设置边框 */ 79 | .fn__flex.layout-tab-bar.fn__flex-1.layout-tab-bar .item { 80 | border-bottom: 0.5px solid #219f5abf; 81 | border-left: 0.5px solid var(--b3-border-color); 82 | border-right: 1px solid var(--b3-border-color); 83 | } 84 | 85 | 86 | /* 面包屑导航栏 */ 87 | .protyle-breadcrumb { 88 | background-color: #fcfffc; 89 | border-bottom: 1.5px solid #81ad40; 90 | } 91 | 92 | 93 | 94 | 95 | /* 给页签设置字色 */ 96 | .layout-tab-bar .item__text{ 97 | color: #7d9654; 98 | } 99 | 100 | /* 修改页签在鼠标悬浮于其上时的底色 */ 101 | .layout-tab-bar .item:hover:not(.item--focus):not(.item--readonly) { 102 | background-color: #eeff908f; 103 | border-radius: 0px 0px 0px 0px; 104 | } 105 | 106 | /* 面包屑其上的页签的底色 */ 107 | .layout-tab-bar .item{ 108 | background-color:#f2ffe3; 109 | } 110 | 111 | /* 修改当前正在处于编辑\使用状态的页签的底色 */ 112 | .layout__wnd--active .layout-tab-bar .item--focus{ 113 | /* background-color: #ffd0d0; */ 114 | background-color:rgb(214 255 185); 115 | } 116 | 117 | /* 修改当前正在处于编辑\使用状态的页签的字色 */ 118 | .layout__wnd--active .layout-tab-bar .item--focus>.item__text{ 119 | color: #387600d9; 120 | } 121 | 122 | 123 | 124 | /* 左侧停靠栏边界线 */ 125 | .dock#dockLeft { 126 | border-right: 1px solid #2f9d2e55; 127 | } 128 | 129 | /* 左侧停靠栏底色 */ 130 | .dock { 131 | background-color: #d4eaba; 132 | } 133 | 134 | .toolbar { 135 | background-color: #a3c165 !important; 136 | border-bottom: 1px solid var(--b3-border-color) !important; 137 | } 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | /* -----------代码块相关样式------------- */ 147 | /* 设置代码块背景色为浅色 */ 148 | .b3-typography div.hljs, .protyle-wysiwyg div.hljs { 149 | background-color: #ffffff; 150 | } 151 | 152 | /* 为代码块设置阴影和圆角 */ 153 | .b3-typography .code-block, .protyle-wysiwyg .code-block{ 154 | box-shadow: 0px 0px 6px 1px #97b9c672; 155 | } 156 | 157 | /* 代码块左边部分样式,设置统一圆角以让代码块整体阴影能正常显示 */ 158 | .protyle-linenumber__rows{ 159 | border-right: 1px solid #c0e3bf; 160 | } 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | /* 行内代码块 */ 169 | .fn__code, .b3-typography code:not(.hljs), .b3-typography span[data-type~=code], .protyle-wysiwyg code:not(.hljs), .protyle-wysiwyg span[data-type~=code] { 170 | color: rgb(0 81 94 / 78%); 171 | background-color: #f7fec4; 172 | } 173 | 174 | /* kbd 按键/按钮的样式 */ 175 | .b3-typography kbd, .b3-typography span[data-type~=kbd], .protyle-wysiwyg kbd, .protyle-wysiwyg span[data-type~=kbd]{ 176 | font-size: 0.9em; 177 | color: rgb(77 77 77); 178 | background-color: hsl(185deg 64% 85%); 179 | box-shadow: 1px 1px 1px 0px #825d78a6,0px 0px 1px inset grey; 180 | } 181 | 182 | /* 第三种按键样式 */ 183 | .b3-typography kbd, .b3-typography span[data-type~=kbd], .protyle-wysiwyg kbd, .protyle-wysiwyg span[data-type~=kbd]{ 184 | color: rgba(71, 78, 74, 0.891); 185 | background-color: rgb(255 255 255); 186 | box-shadow: rgb(131 131 131 / 90%) 0px 1px 2px -1px, #d9d9d9 0px -1px 0px 1px inset; 187 | } 188 | 189 | 190 | 191 | /* 底部状态栏 */ 192 | .status{ 193 | background-color: #d4eaba; 194 | border-top: solid 0.5px rgb(92 108 86 / 60%); 195 | } 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | /* 文档树引用数字的颜色,修改为淡色,避免过于显眼导致注意力容易从笔记本标题文字上分散到此*/ 207 | .counter { 208 | color: #55555a5d; 209 | } 210 | 211 | 212 | /* 无子文档的文档前面添加圆点符号 */ 213 | .b3-list-item.b3-list-item--hide-action .b3-list-item__toggle.fn__hidden::before { 214 | color: #8080804d; 215 | } 216 | 217 | /* 设置文档树前面的>符号颜色为灰色以不抢夺笔记本标题文字的视觉吸引力 */ 218 | .fn__flex-1.fn__flex-column.file-tree .b3-list-item__arrow { 219 | color: #8080804d; 220 | } 221 | 222 | /* 笔记本之间的间隔 */ 223 | .sy__file ul.b3-list.b3-list--background { 224 | outline: 1px solid rgb(67 124 66 / 67%); 225 | background-color: white; 226 | } 227 | 228 | 229 | 230 | /* ------------------------------------文档树文字设置为灰色------------------------------- */ 231 | .b3-list-item__text { 232 | color: var(--b3-theme-on-surface); 233 | } 234 | 235 | /* -----------------------------文档树focus------------------------------- */ 236 | 237 | /* 颜色 */ 238 | .b3-list--background .b3-list-item--focus .b3-list-item__text, 239 | .b3-list--background .b3-list-item--focus .b3-list-item__graphic, 240 | .b3-list--background .b3-list-item--focus .b3-list-item__icon svg { 241 | color: var(--b3-theme-on-background); 242 | } 243 | 244 | 245 | /* 背景色 */ 246 | .b3-list--background .b3-list-item--focus { 247 | background-color: var(--b3-list-hover) !important; 248 | } 249 | 250 | 251 | 252 | 253 | 254 | /* -----------------------------文档树hover-------------------------------- */ 255 | 256 | /* 颜色 */ 257 | .b3-list--background .b3-list-item:hover .b3-list-item__text, 258 | .b3-list--background .b3-list-item:hover .b3-list-item__graphic, 259 | .b3-list--background .b3-list-item:hover .b3-list-item__icon svg { 260 | color: #4ea32d; 261 | } 262 | 263 | /* 暂时不理解这部分代码的功能 */ 264 | .fn__flex-1.fn__flex-column.file-tree.sy__backlink{ 265 | background-color: #fff; 266 | } 267 | 268 | /* 在设置了文档辅助线后,列表大纲的底色和文档辅助线所用的白色box-shadow冲突了,出现白色长条块影响美观,故将列表大纲直接设置成白色底色以融合在一起 */ 269 | .sy__outline > div.fn__flex-1{ 270 | background-color: #fff; 271 | } 272 | 273 | 274 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域设置边框 */ 275 | .block__popover.block__popover--move.block__popover--open{ 276 | border: 5px solid var(--b3-pinkroom-border); 277 | } 278 | 279 | 280 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,让这个窗口里的面包屑和主区域的面包屑统一底色*/ 281 | .block__edit>.protyle-breadcrumb{ 282 | background-color: #fcfffc; 283 | } 284 | 285 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域中的内容区域设置底色 */ 286 | .block__edit.fn__flex-1.protyle>.protyle-content{ 287 | background-color: hwb(98 95% 0%); 288 | } 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | /* 为超级块设置边框、底色、顶部颜色识别区、底部间距*/ 299 | /* .protyle-wysiwyg [data-node-id].sb { 300 | background-color: #fffcf6; 301 | border-top-color: #70e3f3cf; 302 | outline-color: #2e7a18d4; 303 | } */ 304 | 305 | /* 使得超级块中的超级块不会有边框、边距等样式 */ 306 | /* .protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] .sb, .protyle-wysiwyg [data-node-id].sb[data-sb-layout="row"] .sb { 307 | background-color: #fffef900; 308 | } */ 309 | 310 | 311 | /* ————————————字体菜单样式———————————— */ 312 | 313 | /* ———————为字体菜单中13种背景色选项图标设置数字编号,以方便选择———————— */ 314 | /* 为所有背景色图标设置一些统一属性 */ 315 | .b3-color__square[data-type="color"]:before{ 316 | position: relative; 317 | font-size: 80%; 318 | z-index: 2; 319 | top: 13px; 320 | margin-left: 0px; 321 | font-weight: bold; 322 | color:#456b4aad 323 | } 324 | 325 | 326 | 327 | /* 为所有背景色图标设置一些统一属性 */ 328 | .b3-color__square[data-type="backgroundColor"]:before{ 329 | color:#456b5ead 330 | } 331 | 332 | /* 为字色面板\菜单设置边框 */ 333 | .protyle-util{ 334 | border: solid 4px var(--b3-pinkroom-border); 335 | } 336 | 337 | /* 在字体颜色\底色菜单栏中设置分界线的通用属性 */ 338 | .protyle-font>div:nth-child(2):before,.protyle-font> div:nth-child(4):before,.protyle-font> div:nth-child(6):before,.protyle-font>div:nth-child(8):before{ 339 | background-color: #e0cecf; 340 | } 341 | 342 | 343 | /* 中央卷轴之外的区域,视觉上看起来就像是卷轴底下的平面。设为灰粉色以和中央文字区域区分,目的是让使用者更容易把注意力集中在中央的文字区域 */ 344 | .protyle{ 345 | background-color:hsl(100deg 100% 98% / 90%); 346 | } 347 | 348 | /* 卷轴页面底色 */ 349 | .protyle-content:not(#searchPreview.fn__flex-1.protyle>.protyle-content,.block__popover,.block__edit.fn__flex-1.protyle>.protyle-content,.backlinkList .protyle-content,.backlinkMList .protyle-content){ 350 | background-color: hsl(76deg 36% 99%); 351 | box-shadow: #18331024 0px 0px 0.7em 0.3em, #a4da5b2b 0px 0px 3em 1em, #e4f5e5a3 0px 0px 2.5em; 352 | } 353 | 354 | 355 | 356 | 357 | /* 修改中间区域阴影层,给底下的图片叠一层色降低对比度*/ 358 | .fn__flex-1.protyle{ 359 | box-shadow: inset 0 0 10px 1px #203f1a99; 360 | background-color: #d2d2d230; 361 | } 362 | 363 | 364 | 365 | /* 改变标题区域的样式 2版 */ 366 | .protyle-title__input { 367 | background: transparent; 368 | border-bottom: 2px solid rgb(196, 219, 169); 369 | color: #5fa306; 370 | line-height: 1.1em; 371 | } 372 | 373 | .dock__item--active{ 374 | color: #1a9b00 !important; 375 | background-color: #a1cf68b5 !important; 376 | } 377 | 378 | 379 | /* #layouts > div.fn__flex.fn__flex-1 > div:nth-child(4){ 380 | background-color:#c2da91; 381 | } */ 382 | 383 | 384 | /* 滚动条滑块部分 */ 385 | ::-webkit-scrollbar-thumb{ 386 | background-color:#90be5bda; 387 | } 388 | 389 | 390 | /* 修改默认的投影样式 */ 391 | [style*="text-shadow"]{ 392 | color:#4e8362 !important; 393 | text-shadow: 0px 1px 0px #c4d3b9c2, 0px 2px #bad3b299, 0px 3px 5px #bec7b0, 0px 4px 5px #e1eed0cc !important; 394 | } 395 | 396 | 397 | /* 修改提示气泡样式 */ 398 | .tooltip{ 399 | font-size: 1rem !important; 400 | background-color: #59834e; 401 | } 402 | 403 | /* 修改菜单容器样式 */ 404 | .b3-tab-container{ 405 | box-shadow: 0px 0px 11px #4b5f429c inset; 406 | } 407 | 408 | 409 | 410 | 411 | /* 嵌入块样式 */ 412 | .protyle-wysiwyg [data-node-id].render-node[data-type=NodeBlockQueryEmbed]{ 413 | background-color: #e2ebd763; 414 | box-shadow: 0px 0px 3px 2px inset #c5d2c9; 415 | } 416 | 417 | 418 | 419 | /* 界面左上角王冠颜色 */ 420 | .ft__error{ 421 | color: rgb(17 139 84) !important 422 | } 423 | 424 | 425 | /* 反链列表项底色 */ 426 | .backlinkList .b3-list-item{ 427 | border-top-color: #6b9900bf; 428 | background-color: rgb(228 241 213); 429 | } 430 | 431 | /* 修改标签样式颜色 */ 432 | .protyle-wysiwyg [data-node-id] span[data-type~=tag]{ 433 | box-shadow: #72a16d 3.6em 0px 0px -2.2em inset, 0px 0px 0px 1px inset; 434 | color: #4f7c4a; 435 | } 436 | 437 | /* 修改中间区域阴影层,给底下的图片叠一层色降低对比度*/ 438 | .fn__flex-1.protyle{ 439 | box-shadow: inset 0 0 10px 1px #203f1a99; 440 | background-color: #d2d2d230; 441 | } 442 | 443 | /* 修改菜单卡片悬浮后底色 */ 444 | .b3-card:hover{ 445 | background-color: #ecffa08a; 446 | } 447 | 448 | /* 反链面板,真反链和提及的顶部栏 */ 449 | .sy__backlink .block__icons--active,.sy__backlink .block__icons{ 450 | background-color: #d4eaba; 451 | } 452 | /* 反链列表项顶部标签 */ 453 | .sy__backlink .b3-list-item{ 454 | /* border-top:1px solid #96af7fbf; */ 455 | /* box-shadow: 0px 2px 6px -2px #afafaf, 0px 3px 15px -3px #f2f2f2; */ 456 | background-color: #fdfff5; 457 | } 458 | 459 | 460 | /* 鼠标划过列表项时的底色 */ 461 | .b3-list--background .b3-list-item:hover:not(.b3-list-item--focus){ 462 | background-color: #e6ffd6; 463 | } 464 | 465 | /* 给图片设置边框 */ 466 | [custom-tpbk="1"] img{ 467 | outline-color: #52852acb; 468 | } 469 | 470 | 471 | /* 修改提示菜单样式 */ 472 | .hint--menu{ 473 | border-color: #d4eaba; 474 | } 475 | 476 | /* 修改页签在鼠标悬浮于其上时的底色 */ 477 | .layout-tab-bar .item:hover:not(.layout__wnd--active .item--focus):not(.item--readonly){ 478 | background-color: hsl(101, 100%, 91%); 479 | } 480 | 481 | /* 修改页签在鼠标悬浮于其上时,其中文字的颜色 */ 482 | .layout-tab-bar .item:hover:not(.item--focus):not(.item--readonly) .item__text{ 483 | color: hsl(101, 43%, 54%); 484 | } 485 | 486 | /* 页签 */ 487 | .layout-tab-bar .item{ 488 | border-bottom: 0.5px solid hsla(120, 66%, 38%, 0.749); 489 | } 490 | 491 | 492 | 493 | 494 | 495 | 496 | /* 修改背景图 */ 497 | body{ 498 | background-image: url("../pic/Sweeping\ Spires\ by\ Andreas\ Rocha.jpg"); 499 | } 500 | 501 | 502 | /* ——给空界面设置背景图片—— */ 503 | .layout-tab-container{ 504 | background-color: transparent !important; 505 | } 506 | .layout__empty{ 507 | background-color: transparent !important; 508 | } 509 | 510 | 511 | .layout__empty::before{ 512 | content: ''; 513 | height: 100%; 514 | width: 100%; 515 | position: absolute; 516 | background-image: url("../pic/Sweeping\ Spires\ by\ Andreas\ Rocha.jpg"); 517 | background-position: center top; 518 | background-size: cover; 519 | filter: contrast(0.5) brightness(1.5) grayscale(0.3); 520 | z-index: -1; 521 | } 522 | /* ——给空界面设置背景图片—— */ 523 | 524 | 525 | /* ——反链面板中的提示栏的样式—— */ 526 | .sy__backlink .protyle-hint.b3-list.b3-list--background{ 527 | border: var( --pinkroom-green-menu-border); 528 | } 529 | 530 | /* 反链列表项底色,提高z-index防止下方代码添加的阴影遮挡 */ 531 | .sy__backlink .b3-list-item:not(.hint--menu .b3-list-item){ 532 | background-color: #fdfff5; 533 | } 534 | 535 | .backlinkList .protyle-hint.b3-list.b3-list--background:not(.hint--menu) .b3-list-item{ 536 | border-color:rgba(41, 130, 23, 0.556); 537 | } 538 | 539 | /* 按[[唤出的hint菜单 */ 540 | .protyle-hint{ 541 | border: var( --pinkroom-green-menu-border); 542 | } 543 | .protyle-hint .b3-list-item{ 544 | border-color:rgba(41, 130, 23, 0.556); 545 | } 546 | 547 | 548 | 549 | /* 菜单中的分隔线 */ 550 | .b3-menu__separator{ 551 | background-color: rgb(169 194 157 / 66%); 552 | } 553 | 554 | 555 | /* 横向多开窗口时中间用来调节宽度的竖条 */ 556 | /* .layout__resize--lr{ 557 | background-color: #f2ffe3; 558 | border-right: 1px #d1dea6 solid; 559 | } */ 560 | 561 | /* 鼠标悬浮于工具栏上图标时的底色 */ 562 | .toolbar__item:not(.toolbar__item--disabled):not(.toolbar__item--close):hover, .toolbar__item--active{ 563 | background-color: #c6ef94; 564 | } 565 | 566 | 567 | /* 修改全部标题的字色 */ 568 | .b3-typography .h1, .b3-typography h1, .b3-typography .h2, .b3-typography h2, .b3-typography .h3, .b3-typography h3, .b3-typography .h4, .b3-typography h4, .b3-typography .h5, .b3-typography h5, .b3-typography .h6, .b3-typography h6, .protyle-wysiwyg .h1, .protyle-wysiwyg h1, .protyle-wysiwyg .h2, .protyle-wysiwyg h2, .protyle-wysiwyg .h3, .protyle-wysiwyg h3, .protyle-wysiwyg .h4, .protyle-wysiwyg h4, .protyle-wysiwyg .h5, .protyle-wysiwyg h5, .protyle-wysiwyg .h6, .protyle-wysiwyg h6{ 569 | color: #547a30 !important; 570 | } 571 | 572 | /* 修改标题前图标颜色 */ 573 | .h1 > :first-child::before, .h2 > :first-child::before, .h3 > :first-child::before, .h4 > :first-child::before, .h5 > :first-child::before, .h6 > :first-child::before { 574 | filter: brightness(35%) sepia(100%) hue-rotate(49deg) saturate(178%); 575 | } 576 | 577 | /* 修改反链面板中各文档的边界线 */ 578 | .sy__backlink .protyle{ 579 | outline: 1px solid #98c37d; 580 | } 581 | .sy__backlink .b3-list-item:not(.protyle-hint .b3-list-item):not(.hint--menu .b3-list-item){ 582 | outline: 1px solid #98c37d; 583 | } 584 | 585 | /* 反链面板中背景板颜色 */ 586 | .fn__flex-1.fn__flex-column.file-tree.sy__backlink { 587 | background-color: #edefe6; 588 | } 589 | /* 反链面板中内部框阴影 */ 590 | .sy__backlink .backlinkList.fn__flex-1 { 591 | box-shadow: 0px 0px 9px -1px inset hsl(77deg 12% 59%), inset 3px 0px 2px -1px hsl(77deg 12% 59%), inset -3px 0px 2px -1px hsl(77deg 12% 59%); 592 | } 593 | 594 | 595 | /* 修改面包屑中文字颜色 */ 596 | .render-node .protyle-breadcrumb__item{ 597 | color: #7499a4; 598 | } 599 | /* 修改面包屑中激活层级文字颜色 */ 600 | .render-node .protyle-breadcrumb__item--active{ 601 | color: #5ba800; 602 | } -------------------------------------------------------------------------------- /config/蓝色系界面.css: -------------------------------------------------------------------------------- 1 | :root { 2 | /* 线条 */ 3 | --b3-border-color: rgba(148, 208, 216, 0.857); 4 | --b3-theme-on-surface: hwb(185 22% 56%); 5 | /* 列表 */ 6 | --b3-list-hover: #a8eaeeb8; 7 | 8 | /* 为各类菜单和面板设置一个统一的边框颜色 */ 9 | --b3-pinkroom-border: #74cbdf; 10 | 11 | /* 此色影响顶部栏图标颜色和不少界面区域中的文字颜色,修改为暗红色以和粉色的界面整体色调匹配 */ 12 | --b3-theme-on-surface: #37566f; 13 | 14 | --b3-theme-on-surface-light: rgb(129 155 164 / 87%); 15 | 16 | /* 多级标题默认字色,修改以和米色背景搭配,黑色太难看了 */ 17 | --b3-theme-on-background: #365c83; 18 | 19 | /* 超链接用字色 */ 20 | /* --b3-protyle-inline-link-color:#1461e0; */ 21 | 22 | --b3-theme-background-light: hwb(185 25% 23%); 23 | 24 | 25 | --b3-theme-surface: #f1fdff; 26 | 27 | /* 修改主要的背景色,如果开启卷轴模式则将其设置为编辑区域旁边的背景色 */ 28 | --b3-theme-background: rgb(248 255 255); 29 | 30 | /* 修改对话窗口阴影 */ 31 | --b3-dialog-shadow: 0px 11px 11px 2px hwb(196deg 18% 57% / 33%), 0px 24px 38px 4px hwb(190deg 22% 67% / 14%), 0px 9px 46px 8px rgb(141 151 151 / 12%); 32 | 33 | /* 略微调整其色相,使其和蓝色系主题整体配色更加搭调 */ 34 | --b3-protyle-inline-blockref-color: #9215ac; 35 | 36 | --pinkroom-tag-boxshadow-color: #6e899a; 37 | 38 | /* 虚拟引用标记颜色 */ 39 | --pinkroom-virtual-rel-background-color:#90d4ff34; 40 | 41 | 42 | /* 表格标题行的底色 */ 43 | --pinkroom-table-head-background-color:#bcdfec; 44 | /* 表格单数行底色 */ 45 | --pinkroom-table-2n-1-background-color:hsl(204deg 100% 99%); 46 | /* 表格双数行底色 */ 47 | --pinkroom-table-2n-background-color:hsl(191deg 72% 97%); 48 | /* 表格边框颜色 */ 49 | --pinkroom-table-border-color:#8898ab4a; 50 | } 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | /* 左侧文档树、大纲底色 */ 64 | .fn__flex-1.fn__flex-column.file-tree { 65 | background-color: #e5f4f7; 66 | } 67 | 68 | 69 | /* 整个标签栏的样式 */ 70 | .layout-tab-bar { 71 | background-color: #d7eff1; 72 | } 73 | 74 | /* 为标签页中的页签设置边框 */ 75 | .fn__flex.layout-tab-bar.fn__flex-1.layout-tab-bar .item { 76 | border-bottom: 0.5px solid var(--b3-border-color); 77 | border-left: 0.5px solid var(--b3-border-color); 78 | border-right: 1px solid var(--b3-border-color); 79 | } 80 | 81 | 82 | /* 面包屑导航栏 */ 83 | .protyle-breadcrumb { 84 | background-color: #fcfffc; 85 | border-bottom: 1.5px solid #88b5c7; 86 | } 87 | 88 | 89 | 90 | 91 | /* 给页签设置字色 */ 92 | .layout-tab-bar .item__text { 93 | color: #437385; 94 | } 95 | 96 | /* 面包屑其上的页签的底色 */ 97 | .layout-tab-bar .item { 98 | background-color: #d7eff1; 99 | } 100 | 101 | /* 修改页签在鼠标悬浮于其上时的底色 */ 102 | .layout-tab-bar .item:hover:not(.item--focus):not(.item--readonly) { 103 | background-color: #90fdff8f; 104 | border-radius: 0px 0px 0px 0px; 105 | } 106 | 107 | 108 | 109 | /* 修改当前正在处于编辑\使用状态的页签的底色 */ 110 | .layout__wnd--active .layout-tab-bar .item--focus { 111 | background-color: #b5f5f6; 112 | } 113 | 114 | /* 修改当前正在处于编辑\使用状态的页签的字色 */ 115 | .layout__wnd--active .layout-tab-bar .item--focus>.item__text { 116 | color: #003b76d9; 117 | } 118 | 119 | 120 | 121 | /* 左侧停靠栏边界线 */ 122 | .dock#dockLeft { 123 | border-right: 1px solid #2e719d55; 124 | } 125 | 126 | /* 左侧停靠栏底色 */ 127 | .dock { 128 | background-color: #c4e4f0; 129 | } 130 | 131 | .toolbar { 132 | background-color: #81c2d6 !important; 133 | border-bottom: 1px solid var(--b3-border-color) !important; 134 | } 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | /* -----------代码块相关样式------------- */ 144 | /* 设置代码块背景色为浅色 */ 145 | .b3-typography div.hljs, 146 | .protyle-wysiwyg div.hljs { 147 | background-color: #ffffff; 148 | } 149 | 150 | /* 为代码块设置阴影和圆角 */ 151 | .b3-typography .code-block, 152 | .protyle-wysiwyg .code-block { 153 | box-shadow: 0px 0px 6px 1px #97bcc672; 154 | } 155 | 156 | /* 代码块左边部分样式,设置统一圆角以让代码块整体阴影能正常显示 */ 157 | .protyle-linenumber__rows { 158 | border-right: 1px solid #bfdae3; 159 | } 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | /* 行内代码块 */ 168 | .fn__code, 169 | .b3-typography code:not(.hljs), 170 | .b3-typography span[data-type~=code], 171 | .protyle-wysiwyg code:not(.hljs), 172 | .protyle-wysiwyg span[data-type~=code] { 173 | color: rgb(18 113 129 / 80%); 174 | background-color: #eafeff; 175 | } 176 | 177 | /* kbd 按键/按钮的样式 */ 178 | .b3-typography kbd, 179 | .b3-typography span[data-type~=kbd], 180 | .protyle-wysiwyg kbd, 181 | .protyle-wysiwyg span[data-type~=kbd] { 182 | font-size: 0.9em; 183 | color: rgb(77 77 77); 184 | background-color: hsl(185deg 64% 85%); 185 | box-shadow: 1px 1px 1px 0px #825d78a6, 0px 0px 1px inset grey; 186 | } 187 | 188 | /* 第三种按键样式 */ 189 | .b3-typography kbd, 190 | .b3-typography span[data-type~=kbd], 191 | .protyle-wysiwyg kbd, 192 | .protyle-wysiwyg span[data-type~=kbd] { 193 | color: rgba(71, 78, 74, 0.891); 194 | background-color: rgb(255 255 255); 195 | box-shadow: rgb(131 131 131 / 90%) 0px 1px 2px -1px, #d9d9d9 0px -1px 0px 1px inset; 196 | } 197 | 198 | 199 | 200 | /* 底部状态栏 */ 201 | .status { 202 | background-color: #c4e4f0; 203 | border-top: solid 0.5px rgb(92 108 86 / 60%); 204 | } 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | /* 文档树引用数字的颜色,修改为淡色,避免过于显眼导致注意力容易从笔记本标题文字上分散到此*/ 216 | .counter { 217 | color: #55555a5d; 218 | } 219 | 220 | 221 | /* 无子文档的文档前面添加圆点符号 */ 222 | .b3-list-item.b3-list-item--hide-action .b3-list-item__toggle.fn__hidden::before { 223 | color: #8080804d; 224 | } 225 | 226 | /* 设置文档树前面的>符号颜色为灰色以不抢夺笔记本标题文字的视觉吸引力 */ 227 | .fn__flex-1.fn__flex-column.file-tree .b3-list-item__arrow { 228 | color: #8080804d; 229 | } 230 | 231 | /* 笔记本之间的间隔 */ 232 | .sy__file ul.b3-list.b3-list--background { 233 | outline: 1px solid rgba(66, 106, 124, 0.67); 234 | background-color: white; 235 | } 236 | 237 | 238 | 239 | /* ------------------------------------文档树文字设置为灰色------------------------------- */ 240 | .b3-list-item__text { 241 | color: var(--b3-theme-on-surface); 242 | } 243 | 244 | /* -----------------------------文档树focus------------------------------- */ 245 | 246 | /* 颜色 */ 247 | .b3-list--background .b3-list-item--focus .b3-list-item__text, 248 | .b3-list--background .b3-list-item--focus .b3-list-item__graphic, 249 | .b3-list--background .b3-list-item--focus .b3-list-item__icon svg { 250 | color: var(--b3-theme-on-background); 251 | } 252 | 253 | 254 | /* 背景色 */ 255 | .b3-list--background .b3-list-item--focus { 256 | background-color: var(--b3-list-hover) !important; 257 | } 258 | 259 | 260 | 261 | 262 | 263 | /* -----------------------------文档树hover-------------------------------- */ 264 | 265 | /* 颜色 */ 266 | .b3-list--background .b3-list-item:hover .b3-list-item__text, 267 | .b3-list--background .b3-list-item:hover .b3-list-item__graphic, 268 | .b3-list--background .b3-list-item:hover .b3-list-item__icon svg { 269 | color: #1462bb; 270 | } 271 | 272 | /* 暂时不理解这部分代码的功能 */ 273 | .fn__flex-1.fn__flex-column.file-tree.sy__backlink { 274 | background-color: #fff; 275 | } 276 | 277 | /* 在设置了文档辅助线后,列表大纲的底色和文档辅助线所用的白色box-shadow冲突了,出现白色长条块影响美观,故将列表大纲直接设置成白色底色以融合在一起 */ 278 | .sy__outline>div.fn__flex-1 { 279 | background-color: #fff; 280 | } 281 | 282 | 283 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域设置边框 */ 284 | .block__popover.block__popover--move.block__popover--open { 285 | border: 5px solid var(--b3-pinkroom-border); 286 | } 287 | 288 | 289 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,让这个窗口里的面包屑和主区域的面包屑统一底色*/ 290 | .block__edit>.protyle-breadcrumb { 291 | background-color: #fcfffc; 292 | } 293 | 294 | /* 将鼠标放置在文档树中笔记本右侧的引用数字上能打开一个窗口,为这个区域中的内容区域设置底色 */ 295 | .block__edit.fn__flex-1.protyle>.protyle-content { 296 | background-color: #f5fbff; 297 | } 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | /* 为超级块设置边框、底色、顶部颜色识别区、底部间距*/ 308 | /* .protyle-wysiwyg [data-node-id].sb { 309 | background-color: #f9feff; 310 | border-top-color: #70e3f3cf; 311 | outline-color: #182b7ad4; 312 | } */ 313 | 314 | /* 使得超级块中的超级块不会有边框、边距等样式 */ 315 | /* .protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] .sb, .protyle-wysiwyg [data-node-id].sb[data-sb-layout="row"] .sb { 316 | background-color: #fffef900; 317 | } */ 318 | 319 | 320 | /* ————————————字体菜单样式———————————— */ 321 | 322 | /* ———————为字体菜单中13种背景色选项图标设置数字编号,以方便选择———————— */ 323 | /* 为所有背景色图标设置一些统一属性 */ 324 | .b3-color__square[data-type="color"]:before { 325 | position: relative; 326 | font-size: 80%; 327 | z-index: 2; 328 | top: 13px; 329 | margin-left: 0px; 330 | font-weight: bold; 331 | color: #5689b8c9; 332 | } 333 | 334 | 335 | 336 | /* 为所有背景色图标设置一些统一属性 */ 337 | .b3-color__square[data-type="backgroundColor"]:before { 338 | color: #5689b8c9; 339 | } 340 | 341 | /* 为字色面板\菜单设置边框 */ 342 | .protyle-util { 343 | border: solid 4px var(--b3-pinkroom-border); 344 | } 345 | 346 | /* 在字体颜色\底色菜单栏中设置分界线的通用属性 */ 347 | .protyle-font>div:nth-child(2):before, 348 | .protyle-font>div:nth-child(4):before, 349 | .protyle-font>div:nth-child(6):before, 350 | .protyle-font>div:nth-child(8):before { 351 | background-color: #e0cecf; 352 | } 353 | 354 | 355 | /* 中央卷轴之外的区域,视觉上看起来就像是卷轴底下的平面。设为灰粉色以和中央文字区域区分,目的是让使用者更容易把注意力集中在中央的文字区域 */ 356 | .protyle { 357 | background-color: hsl(205deg 100% 98% / 90%); 358 | } 359 | 360 | /* 卷轴页面底色 */ 361 | .protyle-content:not(#searchPreview.fn__flex-1.protyle>.protyle-content, .block__popover, .block__edit.fn__flex-1.protyle>.protyle-content, .backlinkList .protyle-content, .backlinkMList .protyle-content) { 362 | background-color: hwb(201deg 96% 0%); 363 | box-shadow: #10293324 0px 0px 0.7em 0.3em, #5ba2da2b 0px 0px 3em 1em, #e4f0f5a3 0px 0px 2.5em; 364 | } 365 | 366 | 367 | 368 | 369 | /* 修改中间区域阴影层,给底下的图片叠一层色降低对比度*/ 370 | .fn__flex-1.protyle { 371 | box-shadow: inset 0 0 10px 1px #1a2c3f99; 372 | background-color: #d2d2d230; 373 | } 374 | 375 | 376 | 377 | /* 改变标题区域的样式 2版 */ 378 | .protyle-title__input { 379 | border-bottom: 2px solid rgb(169 200 219); 380 | color: #2297c0; 381 | } 382 | 383 | .dock__item--active { 384 | background-color: #8cd0ebb5; 385 | color: #005a9b; 386 | } 387 | 388 | .dock__item--activefocus { 389 | background-color: #9cd6ed !important; 390 | color: #00223b !important; 391 | } 392 | 393 | 394 | 395 | /* #layouts > div.fn__flex.fn__flex-1 > div:nth-child(4){ 396 | background-color:#c4e4f0; 397 | } */ 398 | 399 | 400 | /* 滚动条滑块部分 */ 401 | ::-webkit-scrollbar-thumb { 402 | background-color: #68b0cada; 403 | } 404 | 405 | 406 | /* 修改默认的投影样式 */ 407 | [style*="text-shadow"] { 408 | color: #4e6983 !important; 409 | text-shadow: 0px 1px 0px #9db5c7c2, 0px 2px #b2c2d399, 0px 3px 5px #b0b5c7, 0px 4px 5px #d0e0eecc !important; 410 | } 411 | 412 | 413 | /* 修改提示气泡样式 */ 414 | .tooltip { 415 | font-size: 1rem !important; 416 | background-color: #4e7483; 417 | } 418 | 419 | /* 修改菜单容器样式 */ 420 | .b3-tab-container { 421 | box-shadow: 0px 0px 11px #4b5f429c inset; 422 | } 423 | 424 | 425 | 426 | 427 | /* 嵌入块样式 */ 428 | .protyle-wysiwyg [data-node-id].render-node[data-type=NodeBlockQueryEmbed] { 429 | background-color: #d7ebe563; 430 | box-shadow: 0px 0px 3px 2px inset #c5d2c9; 431 | } 432 | 433 | /* 界面左上角王冠颜色 */ 434 | .ft__error { 435 | color: #3a4cf3 !important; 436 | } 437 | 438 | /* 反链列表项底色 */ 439 | .backlinkList .b3-list-item { 440 | border-top-color: #57acb575; 441 | background-color: rgb(222 241 245); 442 | } 443 | 444 | 445 | /* 修改标签样式颜色 */ 446 | .protyle-wysiwyg [data-node-id] span[data-type~=tag] { 447 | box-shadow: #5788a5 3.6em 0px 0px -2.2em inset, 0px 0px 0px 1px inset; 448 | color:#406e89; 449 | } 450 | 451 | 452 | /* 修改中间区域阴影层,给底下的图片叠一层色降低对比度*/ 453 | .fn__flex-1.protyle { 454 | box-shadow: inset 0 0 10px 1px #1a243f99; 455 | background-color: #d2d2d230; 456 | } 457 | 458 | /* 修改菜单卡片悬浮后底色 */ 459 | .b3-card:hover { 460 | background-color: #b6fbffa1; 461 | } 462 | 463 | /* 修改反链面板顶部栏底色 */ 464 | .sy__backlink .block__icons { 465 | background-color: #c4e4f0; 466 | } 467 | 468 | /* 反链面板中底色 */ 469 | .sy__backlink .protyle { 470 | background-color: hsl(192deg 100% 99%); 471 | } 472 | 473 | /* 反链列表项顶部标签 */ 474 | .sy__backlink .b3-list-item { 475 | /* border-top:1px solid #7f9bafbf; */ 476 | /* box-shadow: 0px 2px 6px -2px #afafaf, 0px 3px 15px -3px #f2f2f2; */ 477 | background-color: #f5ffff; 478 | } 479 | 480 | 481 | /* 鼠标划过列表项时的底色 */ 482 | .b3-list--background .b3-list-item:hover:not(.b3-list-item--focus) { 483 | background-color: #d6fcff; 484 | } 485 | 486 | /* 给图片设置边框 */ 487 | [custom-tpbk="1"] img { 488 | outline-color: #2a7185cb; 489 | } 490 | 491 | /* 修改提示菜单样式 */ 492 | .hint--menu { 493 | border-color: #74cbdf; 494 | } 495 | 496 | 497 | /* 修改页签在鼠标悬浮于其上时的底色 */ 498 | .layout-tab-bar .item:hover:not(.layout__wnd--active .item--focus):not(.item--readonly) { 499 | background-color: hsl(186, 100%, 91%); 500 | } 501 | 502 | /* 修改页签在鼠标悬浮于其上时,其中文字的颜色 */ 503 | .layout-tab-bar .item:hover:not(.item--focus):not(.item--readonly) .item__text { 504 | color: hsl(186, 43%, 54%); 505 | } 506 | 507 | /* 页签 */ 508 | .layout-tab-bar .item { 509 | border-bottom: 0.5px solid #217b9fbf; 510 | } 511 | 512 | 513 | 514 | 515 | 516 | /* 修改背景图 */ 517 | body { 518 | background-image: url("../pic/ice\ station\ zebra\ by\ Col\ Price.jpg"); 519 | } 520 | 521 | 522 | /* ——给空界面设置背景图片—— */ 523 | .layout-tab-container { 524 | background-color: transparent !important; 525 | } 526 | 527 | .layout__empty { 528 | background-color: transparent !important; 529 | } 530 | 531 | 532 | .layout__empty::before { 533 | content: ''; 534 | height: 100%; 535 | width: 100%; 536 | position: absolute; 537 | background-image: url("../pic/ice\ station\ zebra\ by\ Col\ Price.jpg"); 538 | background-position: center top; 539 | background-size: cover; 540 | filter: contrast(0.5) brightness(1.5) grayscale(0.3); 541 | z-index: -1; 542 | } 543 | 544 | /* ——给空界面设置背景图片—— */ 545 | 546 | 547 | /* ——反链面板中的提示栏的样式—— */ 548 | .sy__backlink .protyle-hint.b3-list.b3-list--background { 549 | border: var(--pinkroom-blue-menu-border); 550 | } 551 | 552 | /* 反链列表项底色,提高z-index防止下方代码添加的阴影遮挡 */ 553 | .sy__backlink .b3-list-item:not(.hint--menu .b3-list-item) { 554 | background-color: #f5ffff; 555 | } 556 | 557 | .protyle-hint .b3-list-item, 558 | .backlinkList .protyle-hint.b3-list.b3-list--background:not(.hint--menu) .b3-list-item { 559 | border-color: rgba(23, 112, 130, 0.556); 560 | } 561 | 562 | /* 按[[唤出的hint菜单 */ 563 | .protyle-hint { 564 | border: var(--pinkroom-blue-menu-border); 565 | } 566 | 567 | 568 | /* 菜单中的分隔线 */ 569 | .b3-menu__separator{ 570 | background-color: rgb(157 194 193 / 66%); 571 | } 572 | 573 | /* 横向多开窗口时中间用来调节宽度的竖条 */ 574 | /* .layout__resize--lr{ 575 | background-color: #d7eff1; 576 | border-right: 1px #a6d1de solid; 577 | } */ 578 | 579 | /* 鼠标悬浮于工具栏上图标时的底色 */ 580 | .toolbar__item:not(.toolbar__item--disabled):not(.toolbar__item--close):hover, .toolbar__item--active{ 581 | background-color: #94e3ef; 582 | } 583 | 584 | /* 修改全部标题的字色 */ 585 | .b3-typography .h1, .b3-typography h1, .b3-typography .h2, .b3-typography h2, .b3-typography .h3, .b3-typography h3, .b3-typography .h4, .b3-typography h4, .b3-typography .h5, .b3-typography h5, .b3-typography .h6, .b3-typography h6, .protyle-wysiwyg .h1, .protyle-wysiwyg h1, .protyle-wysiwyg .h2, .protyle-wysiwyg h2, .protyle-wysiwyg .h3, .protyle-wysiwyg h3, .protyle-wysiwyg .h4, .protyle-wysiwyg h4, .protyle-wysiwyg .h5, .protyle-wysiwyg h5, .protyle-wysiwyg .h6, .protyle-wysiwyg h6{ 586 | color: #36748a !important; 587 | } 588 | 589 | /* 修改标题前图标颜色 */ 590 | .h1 > :first-child::before, .h2 > :first-child::before, .h3 > :first-child::before, .h4 > :first-child::before, .h5 > :first-child::before, .h6 > :first-child::before { 591 | filter: brightness(34%) sepia(100%) hue-rotate(150deg) saturate(191%); 592 | } 593 | 594 | /* 虚拟引用底部线条 */ 595 | .protyle-wysiwyg [data-node-id] span[data-type=virtual-block-ref]{ 596 | border-bottom-color:#eb8686; 597 | } 598 | 599 | 600 | /* 修改反链面板中各文档的边界线 */ 601 | .sy__backlink .protyle{ 602 | outline: 1px solid #7dc1c3; 603 | } 604 | .sy__backlink .b3-list-item:not(.protyle-hint .b3-list-item):not(.hint--menu .b3-list-item){ 605 | outline: 1px solid #7dc1c3; 606 | } 607 | 608 | /* 反链面板中背景板颜色 */ 609 | .fn__flex-1.fn__flex-column.file-tree.sy__backlink{ 610 | background-color: hsl(207deg 26% 90%); 611 | } 612 | /* 反链面板中内部框阴影 */ 613 | .sy__backlink .backlinkList.fn__flex-1 { 614 | box-shadow: 0px 0px 9px -1px inset #c0c8ce, inset 3px 0px 2px -1px #c0c8ce, inset -3px 0px 2px #c0c8ce; 615 | } 616 | 617 | /* 修改面包屑中文字颜色 */ 618 | .render-node .protyle-breadcrumb__item{ 619 | color: #7499a4; 620 | } 621 | /* 修改面包屑中激活层级文字颜色 */ 622 | .render-node .protyle-breadcrumb__item--active{ 623 | color: #1488ba; 624 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------