styles.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. .templater_search {
  2. width: calc(100% - 20px);
  3. }
  4. .templater_div {
  5. border-top: 1px solid var(--background-modifier-border);
  6. }
  7. .templater_div > .setting-item {
  8. border-top: none !important;
  9. align-self: center;
  10. }
  11. .templater_div > .setting-item > .setting-item-control {
  12. justify-content: space-around;
  13. padding: 0;
  14. width: 100%;
  15. }
  16. .templater_div
  17. > .setting-item
  18. > .setting-item-control
  19. > .setting-editor-extra-setting-button {
  20. align-self: center;
  21. }
  22. .templater_donating {
  23. margin: 10px;
  24. }
  25. .templater_title {
  26. margin: 0;
  27. padding: 0;
  28. margin-top: 5px;
  29. text-align: center;
  30. }
  31. .templater_template {
  32. align-self: center;
  33. margin-left: 5px;
  34. margin-right: 5px;
  35. width: 70%;
  36. }
  37. .templater_cmd {
  38. margin-left: 5px;
  39. margin-right: 5px;
  40. font-size: 14px;
  41. width: 100%;
  42. }
  43. .templater_div2 > .setting-item {
  44. align-content: center;
  45. justify-content: center;
  46. }
  47. .templater-prompt-div {
  48. display: flex;
  49. }
  50. .templater-prompt-form {
  51. display: flex;
  52. flex-grow: 1;
  53. }
  54. .templater-prompt-input {
  55. flex-grow: 1;
  56. }
  57. .templater-button-div {
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. margin-top: 1rem;
  62. }
  63. textarea.templater-prompt-input {
  64. height: 10rem;
  65. }
  66. textarea.templater-prompt-input:focus {
  67. border-color: var(--interactive-accent);
  68. }
  69. .cm-s-obsidian .templater-command-bg {
  70. left: 0px;
  71. right: 0px;
  72. background-color: var(--background-primary-alt);
  73. }
  74. .cm-s-obsidian .cm-templater-command {
  75. font-size: 0.85em;
  76. font-family: var(--font-monospace);
  77. line-height: 1.3;
  78. }
  79. .cm-s-obsidian .templater-inline .cm-templater-command {
  80. background-color: var(--background-primary-alt);
  81. }
  82. .cm-s-obsidian .cm-templater-command.cm-templater-opening-tag {
  83. font-weight: bold;
  84. }
  85. .cm-s-obsidian .cm-templater-command.cm-templater-closing-tag {
  86. font-weight: bold;
  87. }
  88. .cm-s-obsidian .cm-templater-command.cm-templater-interpolation-tag {
  89. color: var(--code-property, #008bff);
  90. }
  91. .cm-s-obsidian .cm-templater-command.cm-templater-execution-tag {
  92. color: var(--code-function, #c0d700);
  93. }
  94. .cm-s-obsidian .cm-templater-command.cm-keyword {
  95. color: var(--code-keyword, #00a7aa);
  96. font-weight: normal;
  97. }
  98. .cm-s-obsidian .cm-templater-command.cm-atom {
  99. color: var(--code-normal, #f39b35);
  100. }
  101. .cm-s-obsidian .cm-templater-command.cm-value,
  102. .cm-s-obsidian .cm-templater-command.cm-number,
  103. .cm-s-obsidian .cm-templater-command.cm-type {
  104. color: var(--code-value, #a06fca);
  105. }
  106. .cm-s-obsidian .cm-templater-command.cm-def,
  107. .cm-s-obsidian .cm-templater-command.cm-type.cm-def {
  108. color: var(--code-normal, var(--text-normal));
  109. }
  110. .cm-s-obsidian .cm-templater-command.cm-property,
  111. .cm-s-obsidian .cm-templater-command.cm-property.cm-def,
  112. .cm-s-obsidian .cm-templater-command.cm-attribute {
  113. color: var(--code-function, #98e342);
  114. }
  115. .cm-s-obsidian .cm-templater-command.cm-variable,
  116. .cm-s-obsidian .cm-templater-command.cm-variable-2,
  117. .cm-s-obsidian .cm-templater-command.cm-variable-3,
  118. .cm-s-obsidian .cm-templater-command.cm-meta {
  119. color: var(--code-property, #d4d4d4);
  120. }
  121. .cm-s-obsidian .cm-templater-command.cm-callee,
  122. .cm-s-obsidian .cm-templater-command.cm-operator,
  123. .cm-s-obsidian .cm-templater-command.cm-qualifier,
  124. .cm-s-obsidian .cm-templater-command.cm-builtin {
  125. color: var(--code-operator, #fc4384);
  126. }
  127. .cm-s-obsidian .cm-templater-command.cm-tag {
  128. color: var(--code-tag, #fc4384);
  129. }
  130. .cm-s-obsidian .cm-templater-command.cm-comment,
  131. .cm-s-obsidian .cm-templater-command.cm-comment.cm-tag,
  132. .cm-s-obsidian .cm-templater-command.cm-comment.cm-attribute {
  133. color: var(--code-comment, #696d70);
  134. }
  135. .cm-s-obsidian .cm-templater-command.cm-string,
  136. .cm-s-obsidian .cm-templater-command.cm-string-2 {
  137. color: var(--code-string, #e6db74);
  138. }
  139. .cm-s-obsidian .cm-templater-command.cm-header,
  140. .cm-s-obsidian .cm-templater-command.cm-hr {
  141. color: var(--code-keyword, #da7dae);
  142. }
  143. .cm-s-obsidian .cm-templater-command.cm-link {
  144. color: var(--code-normal, #696d70);
  145. }
  146. .cm-s-obsidian .cm-templater-command.cm-error {
  147. border-bottom: 1px solid #c42412;
  148. }
  149. .CodeMirror-hints {
  150. position: absolute;
  151. z-index: 10;
  152. overflow: hidden;
  153. list-style: none;
  154. margin: 0;
  155. padding: 2px;
  156. -webkit-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  157. -moz-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  158. box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  159. border-radius: 3px;
  160. border: 1px solid silver;
  161. background: white;
  162. font-size: 90%;
  163. font-family: monospace;
  164. max-height: 20em;
  165. overflow-y: auto;
  166. }
  167. .CodeMirror-hint {
  168. margin: 0;
  169. padding: 0 4px;
  170. border-radius: 2px;
  171. white-space: pre;
  172. color: black;
  173. cursor: pointer;
  174. }
  175. li.CodeMirror-hint-active {
  176. background: #08f;
  177. color: white;
  178. }