This commit is contained in:
zzz
2023-04-21 00:37:22 +08:00
parent 9a91153eda
commit 158f383051
2 changed files with 30137 additions and 8253 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2,11 +2,21 @@
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
transform: rotate(360deg); transform: rotate(360deg);
} }
} }
.loading > svg {
.workspace-leaf-content[data-type='git-view'] .view-content {
padding: 0;
}
.workspace-leaf-content[data-type='git-history-view'] .view-content {
padding: 0;
}
.loading>svg {
animation: 2s linear infinite loading; animation: 2s linear infinite loading;
transform-origin: 50% 50%; transform-origin: 50% 50%;
display: inline-block; display: inline-block;
@@ -14,9 +24,21 @@
.obsidian-git-center { .obsidian-git-center {
margin: auto; margin: auto;
text-align: center;
width: 50%; width: 50%;
} }
.obsidian-git-textarea {
display: block;
margin-left: auto;
margin-right: auto;
}
.obsidian-git-center-button {
display: block;
margin: 20px auto;
}
.tooltip.mod-left { .tooltip.mod-left {
overflow-wrap: break-word; overflow-wrap: break-word;
} }
@@ -44,9 +66,11 @@
.workspace-leaf-content[data-type="diff-view"] .d2h-d-none { .workspace-leaf-content[data-type="diff-view"] .d2h-d-none {
display: none; display: none;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-wrapper { .workspace-leaf-content[data-type="diff-view"] .d2h-wrapper {
text-align: left; text-align: left;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header { .workspace-leaf-content[data-type="diff-view"] .d2h-file-header {
background-color: var(--background-primary); background-color: var(--background-primary);
border-bottom: 1px solid var(--interactive-accent); border-bottom: 1px solid var(--interactive-accent);
@@ -54,16 +78,19 @@
height: 35px; height: 35px;
padding: 5px 10px; padding: 5px 10px;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header, .workspace-leaf-content[data-type="diff-view"] .d2h-file-header,
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats { .workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats { .workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
font-size: 14px; font-size: 14px;
margin-left: auto; margin-left: auto;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-added { .workspace-leaf-content[data-type="diff-view"] .d2h-lines-added {
border: 1px solid #b4e2b4; border: 1px solid #b4e2b4;
border-radius: 5px 0 0 5px; border-radius: 5px 0 0 5px;
@@ -72,6 +99,7 @@
text-align: right; text-align: right;
vertical-align: middle; vertical-align: middle;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-deleted { .workspace-leaf-content[data-type="diff-view"] .d2h-lines-deleted {
border: 1px solid #e9aeae; border: 1px solid #e9aeae;
border-radius: 0 5px 5px 0; border-radius: 0 5px 5px 0;
@@ -81,6 +109,7 @@
text-align: left; text-align: left;
vertical-align: middle; vertical-align: middle;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name-wrapper { .workspace-leaf-content[data-type="diff-view"] .d2h-file-name-wrapper {
-webkit-box-align: center; -webkit-box-align: center;
-ms-flex-align: center; -ms-flex-align: center;
@@ -91,16 +120,19 @@
font-size: 15px; font-size: 15px;
width: 100%; width: 100%;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name { .workspace-leaf-content[data-type="diff-view"] .d2h-file-name {
overflow-x: hidden; overflow-x: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-wrapper { .workspace-leaf-content[data-type="diff-view"] .d2h-file-wrapper {
border: 1px solid var(--background-modifier-border); border: 1px solid var(--background-modifier-border);
border-radius: 3px; border-radius: 3px;
margin-bottom: 1em; margin-bottom: 1em;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse { .workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse {
-webkit-box-pack: end; -webkit-box-pack: end;
-ms-flex-pack: end; -ms-flex-pack: end;
@@ -115,24 +147,30 @@
justify-content: flex-end; justify-content: flex-end;
padding: 4px 8px; padding: 4px 8px;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse.d2h-selected { .workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse.d2h-selected {
background-color: #c8e1ff; background-color: #c8e1ff;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse-input { .workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse-input {
margin: 0 4px 0 0; margin: 0 4px 0 0;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-table { .workspace-leaf-content[data-type="diff-view"] .d2h-diff-table {
border-collapse: collapse; border-collapse: collapse;
font-family: Menlo, Consolas, monospace; font-family: Menlo, Consolas, monospace;
font-size: 13px; font-size: 13px;
width: 100%; width: 100%;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-files-diff { .workspace-leaf-content[data-type="diff-view"] .d2h-files-diff {
width: 100%; width: 100%;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-diff { .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff {
overflow-y: hidden; overflow-y: hidden;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-side-diff { .workspace-leaf-content[data-type="diff-view"] .d2h-file-side-diff {
display: inline-block; display: inline-block;
margin-bottom: -8px; margin-bottom: -8px;
@@ -141,9 +179,11 @@
overflow-y: hidden; overflow-y: hidden;
width: 50%; width: 50%;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line { .workspace-leaf-content[data-type="diff-view"] .d2h-code-line {
padding: 0 8em; padding: 0 8em;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line, .workspace-leaf-content[data-type="diff-view"] .d2h-code-line,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line { .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
display: inline-block; display: inline-block;
@@ -154,9 +194,11 @@
white-space: nowrap; white-space: nowrap;
width: 100%; width: 100%;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line { .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
padding: 0 4.5em; padding: 0 4.5em;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-ctn { .workspace-leaf-content[data-type="diff-view"] .d2h-code-line-ctn {
word-wrap: normal; word-wrap: normal;
background: none; background: none;
@@ -217,9 +259,11 @@
padding: 0; padding: 0;
white-space: pre; white-space: pre;
} }
.workspace-leaf-content[data-type="diff-view"] .line-num1 { .workspace-leaf-content[data-type="diff-view"] .line-num1 {
float: left; float: left;
} }
.workspace-leaf-content[data-type="diff-view"] .line-num1, .workspace-leaf-content[data-type="diff-view"] .line-num1,
.workspace-leaf-content[data-type="diff-view"] .line-num2 { .workspace-leaf-content[data-type="diff-view"] .line-num2 {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
@@ -229,9 +273,11 @@
text-overflow: ellipsis; text-overflow: ellipsis;
width: 3.5em; width: 3.5em;
} }
.workspace-leaf-content[data-type="diff-view"] .line-num2 { .workspace-leaf-content[data-type="diff-view"] .line-num2 {
float: right; float: right;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber { .workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber {
background-color: var(--background-primary); background-color: var(--background-primary);
border: solid var(--background-modifier-border); border: solid var(--background-modifier-border);
@@ -245,9 +291,11 @@
text-align: right; text-align: right;
width: 7.5em; width: 7.5em;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber:after { .workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber:after {
content: "\200b"; content: "\200b";
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber { .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
background-color: var(--background-primary); background-color: var(--background-primary);
border: solid var(--background-modifier-border); border: solid var(--background-modifier-border);
@@ -264,14 +312,21 @@
text-overflow: ellipsis; text-overflow: ellipsis;
width: 4em; width: 4em;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-tbody tr {
position: relative;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber:after { .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber:after {
content: "\200b"; content: "\200b";
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-emptyplaceholder, .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-emptyplaceholder,
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder { .workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
background-color: var(--background-primary); background-color: var(--background-primary);
border-color: var(--background-modifier-border); border-color: var(--background-modifier-border);
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix, .workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber, .workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber, .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber,
@@ -281,26 +336,32 @@
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber, .workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber { .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
direction: rtl; direction: rtl;
} }
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-del { .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-del {
background-color: #fee8e9; background-color: #fee8e9;
border-color: #e9aeae; border-color: #e9aeae;
} }
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-ins { .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
background-color: #dfd; background-color: #dfd;
border-color: #b4e2b4; border-color: #b4e2b4;
} }
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-del { .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-del {
background-color: #521b1d83; background-color: #521b1d83;
border-color: #691d1d73; border-color: #691d1d73;
} }
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-ins { .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
background-color: rgba(30, 71, 30, 0.5); background-color: rgba(30, 71, 30, 0.5);
border-color: #13501381; border-color: #13501381;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-info { .workspace-leaf-content[data-type="diff-view"] .d2h-info {
background-color: var(--background-primary); background-color: var(--background-primary);
border-color: var(--background-modifier-border); border-color: var(--background-modifier-border);
@@ -354,42 +415,52 @@
display: flex; display: flex;
text-align: left; text-align: left;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list { .workspace-leaf-content[data-type="diff-view"] .d2h-file-list {
display: block; display: block;
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list > li {
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list>li {
border-bottom: 1px solid var(--background-modifier-border); border-bottom: 1px solid var(--background-modifier-border);
margin: 0; margin: 0;
padding: 5px 10px; padding: 5px 10px;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list > li:last-child {
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list>li:last-child {
border-bottom: none; border-bottom: none;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-file-switch { .workspace-leaf-content[data-type="diff-view"] .d2h-file-switch {
cursor: pointer; cursor: pointer;
display: none; display: none;
font-size: 10px; font-size: 10px;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-icon { .workspace-leaf-content[data-type="diff-view"] .d2h-icon {
fill: currentColor; fill: currentColor;
margin-right: 10px; margin-right: 10px;
vertical-align: middle; vertical-align: middle;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted { .workspace-leaf-content[data-type="diff-view"] .d2h-deleted {
color: #c33; color: #c33;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-added { .workspace-leaf-content[data-type="diff-view"] .d2h-added {
color: #399839; color: #399839;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-changed { .workspace-leaf-content[data-type="diff-view"] .d2h-changed {
color: #d0b44c; color: #d0b44c;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-moved { .workspace-leaf-content[data-type="diff-view"] .d2h-moved {
color: #3572b0; color: #3572b0;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-tag { .workspace-leaf-content[data-type="diff-view"] .d2h-tag {
background-color: var(--background-primary); background-color: var(--background-primary);
display: -webkit-box; display: -webkit-box;
@@ -399,15 +470,19 @@
margin-left: 5px; margin-left: 5px;
padding: 0 2px; padding: 0 2px;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted-tag { .workspace-leaf-content[data-type="diff-view"] .d2h-deleted-tag {
border: 2px solid #c33; border: 2px solid #c33;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-added-tag { .workspace-leaf-content[data-type="diff-view"] .d2h-added-tag {
border: 1px solid #399839; border: 1px solid #399839;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-changed-tag { .workspace-leaf-content[data-type="diff-view"] .d2h-changed-tag {
border: 1px solid #d0b44c; border: 1px solid #d0b44c;
} }
.workspace-leaf-content[data-type="diff-view"] .d2h-moved-tag { .workspace-leaf-content[data-type="diff-view"] .d2h-moved-tag {
border: 1px solid #3572b0; border: 1px solid #3572b0;
} }