123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- @keyframes loading {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- .workspace-leaf-content[data-type='git-view'] .view-content {
- padding: 0;
- }
- .loading>svg {
- animation: 2s linear infinite loading;
- transform-origin: 50% 50%;
- display: inline-block;
- }
- .obsidian-git-center {
- margin: auto;
- text-align: center;
- 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 {
- overflow-wrap: break-word;
- }
- .tooltip.mod-right {
- overflow-wrap: break-word;
- }
- .obsidian-git-shortcuts {
- margin: 10px;
- }
- .diff-err {
- height: 100%;
- display: flex;
- justify-content: center;
- flex-direction: column;
- align-items: center;
- }
- .diff-err-sign {
- font-size: 2em;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-d-none {
- display: none;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-wrapper {
- text-align: left;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-header {
- background-color: var(--background-primary);
- border-bottom: 1px solid var(--interactive-accent);
- font-family: var(--font-monospace);
- height: 35px;
- padding: 5px 10px;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-header,
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
- font-size: 14px;
- margin-left: auto;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-lines-added {
- border: 1px solid #b4e2b4;
- border-radius: 5px 0 0 5px;
- color: #399839;
- padding: 2px;
- text-align: right;
- vertical-align: middle;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-lines-deleted {
- border: 1px solid #e9aeae;
- border-radius: 0 5px 5px 0;
- color: #c33;
- margin-left: 1px;
- padding: 2px;
- text-align: left;
- vertical-align: middle;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-name-wrapper {
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- font-size: 15px;
- width: 100%;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-name {
- overflow-x: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-wrapper {
- border: 1px solid var(--background-modifier-border);
- border-radius: 3px;
- margin-bottom: 1em;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse {
- -webkit-box-pack: end;
- -ms-flex-pack: end;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- border: 1px solid var(--background-modifier-border);
- border-radius: 3px;
- cursor: pointer;
- display: none;
- font-size: 12px;
- justify-content: flex-end;
- padding: 4px 8px;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse.d2h-selected {
- background-color: #c8e1ff;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse-input {
- margin: 0 4px 0 0;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-diff-table {
- border-collapse: collapse;
- font-family: Menlo, Consolas, monospace;
- font-size: 13px;
- width: 100%;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-files-diff {
- width: 100%;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff {
- overflow-y: hidden;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-side-diff {
- display: inline-block;
- margin-bottom: -8px;
- margin-right: -4px;
- overflow-x: scroll;
- overflow-y: hidden;
- width: 50%;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-line {
- padding: 0 8em;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-line,
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
- display: inline-block;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- white-space: nowrap;
- width: 100%;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
- padding: 0 4.5em;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-line-ctn {
- word-wrap: normal;
- background: none;
- display: inline-block;
- padding: 0;
- -webkit-user-select: text;
- -moz-user-select: text;
- -ms-user-select: text;
- user-select: text;
- vertical-align: middle;
- white-space: pre;
- width: 100%;
- }
- .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
- .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del {
- background-color: #ffb6ba;
- }
- .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
- .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del {
- background-color: #8d232881;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del,
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
- border-radius: 0.2em;
- display: inline-block;
- margin-top: -1px;
- text-decoration: none;
- vertical-align: middle;
- }
- .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
- .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
- background-color: #97f295;
- text-align: left;
- }
- .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
- .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
- background-color: #1d921996;
- text-align: left;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix {
- word-wrap: normal;
- background: none;
- display: inline;
- padding: 0;
- white-space: pre;
- }
- .workspace-leaf-content[data-type="diff-view"] .line-num1 {
- float: left;
- }
- .workspace-leaf-content[data-type="diff-view"] .line-num1,
- .workspace-leaf-content[data-type="diff-view"] .line-num2 {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- overflow: hidden;
- padding: 0 0.5em;
- text-overflow: ellipsis;
- width: 3.5em;
- }
- .workspace-leaf-content[data-type="diff-view"] .line-num2 {
- float: right;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber {
- background-color: var(--background-primary);
- border: solid var(--background-modifier-border);
- border-width: 0 1px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- color: var(--text-muted);
- cursor: pointer;
- display: inline-block;
- position: absolute;
- text-align: right;
- width: 7.5em;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber:after {
- content: "\200b";
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
- background-color: var(--background-primary);
- border: solid var(--background-modifier-border);
- border-width: 0 1px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- color: var(--text-muted);
- cursor: pointer;
- display: inline-block;
- overflow: hidden;
- padding: 0 0.5em;
- position: absolute;
- text-align: right;
- text-overflow: ellipsis;
- 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 {
- content: "\200b";
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-emptyplaceholder,
- .workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
- background-color: var(--background-primary);
- 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-linenumber,
- .workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber,
- .workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-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-side-linenumber {
- direction: rtl;
- }
- .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-del {
- background-color: #fee8e9;
- border-color: #e9aeae;
- }
- .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
- background-color: #dfd;
- border-color: #b4e2b4;
- }
- .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-del {
- background-color: #521b1d83;
- border-color: #691d1d73;
- }
- .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
- background-color: rgba(30, 71, 30, 0.5);
- border-color: #13501381;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-info {
- background-color: var(--background-primary);
- border-color: var(--background-modifier-border);
- color: var(--text-normal);
- }
- .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-del.d2h-change {
- background-color: #fdf2d0;
- }
- .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-del.d2h-change {
- background-color: #55492480;
- }
- .theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-ins.d2h-change {
- background-color: #ded;
- }
- .theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-file-diff .d2h-ins.d2h-change {
- background-color: rgba(37, 78, 37, 0.418);
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper {
- margin-bottom: 10px;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper a {
- color: #3572b0;
- text-decoration: none;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper a:visited {
- color: #3572b0;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list-header {
- text-align: left;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list-title {
- font-weight: 700;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list-line {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- text-align: left;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list {
- display: block;
- list-style: none;
- margin: 0;
- padding: 0;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list>li {
- border-bottom: 1px solid var(--background-modifier-border);
- margin: 0;
- padding: 5px 10px;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-list>li:last-child {
- border-bottom: none;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-file-switch {
- cursor: pointer;
- display: none;
- font-size: 10px;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-icon {
- fill: currentColor;
- margin-right: 10px;
- vertical-align: middle;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-deleted {
- color: #c33;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-added {
- color: #399839;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-changed {
- color: #d0b44c;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-moved {
- color: #3572b0;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-tag {
- background-color: var(--background-primary);
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- font-size: 10px;
- margin-left: 5px;
- padding: 0 2px;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-deleted-tag {
- border: 2px solid #c33;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-added-tag {
- border: 1px solid #399839;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-changed-tag {
- border: 1px solid #d0b44c;
- }
- .workspace-leaf-content[data-type="diff-view"] .d2h-moved-tag {
- border: 1px solid #3572b0;
- }
|