styles.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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: #008bff;
  90. }
  91. .cm-s-obsidian .cm-templater-command.cm-templater-execution-tag {
  92. color: #c0d700;
  93. }
  94. .theme-dark .cm-s-obsidian .cm-templater-command.cm-keyword {
  95. color: #00a7aa;
  96. font-weight: normal;
  97. }
  98. .theme-dark .cm-s-obsidian .cm-templater-command.cm-atom {
  99. color: #f39b35;
  100. }
  101. .theme-dark .cm-s-obsidian .cm-templater-command.cm-number {
  102. color: #a06fca;
  103. }
  104. .theme-dark .cm-s-obsidian .cm-templater-command.cm-type {
  105. color: #a06fca;
  106. }
  107. .theme-dark .cm-s-obsidian .cm-templater-command.cm-def {
  108. color: #98e342;
  109. }
  110. .theme-dark .cm-s-obsidian .cm-templater-command.cm-property {
  111. color: #d4d4d4;
  112. }
  113. .theme-dark .cm-s-obsidian .cm-templater-command.cm-variable {
  114. color: #d4d4d4;
  115. }
  116. .theme-dark .cm-s-obsidian .cm-templater-command.cm-variable-2 {
  117. color: #da7dae;
  118. }
  119. .theme-dark .cm-s-obsidian .cm-templater-command.cm-variable-3 {
  120. color: #a06fca;
  121. }
  122. .theme-dark .cm-s-obsidian .cm-templater-command.cm-type.cm-def {
  123. color: #fc4384;
  124. }
  125. .theme-dark .cm-s-obsidian .cm-templater-command.cm-property.cm-def {
  126. color: #fc4384;
  127. }
  128. .theme-dark .cm-s-obsidian .cm-templater-command.cm-callee {
  129. color: #fc4384;
  130. }
  131. .theme-dark .cm-s-obsidian .cm-templater-command.cm-operator {
  132. color: #fc4384;
  133. }
  134. .theme-dark .cm-s-obsidian .cm-templater-command.cm-qualifier {
  135. color: #fc4384;
  136. }
  137. .theme-dark .cm-s-obsidian .cm-templater-command.cm-tag {
  138. color: #fc4384;
  139. }
  140. .theme-dark .cm-s-obsidian .cm-templater-command.cm-tag.cm-bracket {
  141. color: #d4d4d4;
  142. }
  143. .theme-dark .cm-s-obsidian .cm-templater-command.cm-attribute {
  144. color: #a06fca;
  145. }
  146. .theme-dark .cm-s-obsidian .cm-templater-command.cm-comment {
  147. color: #696d70;
  148. }
  149. .theme-dark .cm-s-obsidian .cm-templater-command.cm-comment.cm-tag {
  150. color: #fc4384;
  151. }
  152. .theme-dark .cm-s-obsidian .cm-templater-command.cm-comment.cm-attribute {
  153. color: #d4d4d4;
  154. }
  155. .theme-dark .cm-s-obsidian .cm-templater-command.cm-string {
  156. color: #e6db74;
  157. }
  158. .theme-dark .cm-s-obsidian .cm-templater-command.cm-string-2 {
  159. color: #f39b35;
  160. }
  161. .theme-dark .cm-s-obsidian .cm-templater-command.cm-meta {
  162. color: #d4d4d4;
  163. background: inherit;
  164. }
  165. .theme-dark .cm-s-obsidian .cm-templater-command.cm-builtin {
  166. color: #fc4384;
  167. }
  168. .theme-dark .cm-s-obsidian .cm-templater-command.cm-header {
  169. color: #da7dae;
  170. }
  171. .theme-dark .cm-s-obsidian .cm-templater-command.cm-hr {
  172. color: #98e342;
  173. }
  174. .theme-dark .cm-s-obsidian .cm-templater-command.cm-link {
  175. color: #696d70;
  176. }
  177. .theme-dark .cm-s-obsidian .cm-templater-command.cm-error {
  178. border-bottom: 1px solid #c42412;
  179. }
  180. .theme-dark .cm-s-obsidian pre.HyperMD-codeblock .cm-keyword {
  181. font-weight: normal;
  182. }
  183. .theme-dark
  184. .cm-s-obsidian
  185. .cm-templater-command.CodeMirror-activeline-background {
  186. background: #272727;
  187. }
  188. .theme-dark .cm-s-obsidian .cm-templater-command.CodeMirror-matchingbracket {
  189. outline: 1px solid grey;
  190. color: #d4d4d4 !important;
  191. }
  192. .CodeMirror-hints {
  193. position: absolute;
  194. z-index: 10;
  195. overflow: hidden;
  196. list-style: none;
  197. margin: 0;
  198. padding: 2px;
  199. -webkit-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  200. -moz-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  201. box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  202. border-radius: 3px;
  203. border: 1px solid silver;
  204. background: white;
  205. font-size: 90%;
  206. font-family: monospace;
  207. max-height: 20em;
  208. overflow-y: auto;
  209. }
  210. .CodeMirror-hint {
  211. margin: 0;
  212. padding: 0 4px;
  213. border-radius: 2px;
  214. white-space: pre;
  215. color: black;
  216. cursor: pointer;
  217. }
  218. li.CodeMirror-hint-active {
  219. background: #08f;
  220. color: white;
  221. }