|
| 1 | +.yamlEditorContainer { |
| 2 | +margin:1rem0; |
| 3 | +border-radius:8px; |
| 4 | +overflow: hidden; |
| 5 | +box-shadow:02px8pxrgba(0,0,0,0.15); |
| 6 | +} |
| 7 | + |
| 8 | +.yamlEditor { |
| 9 | +border-radius:8px; |
| 10 | +font-family:"Monaco","Menlo","Ubuntu Mono", monospace!important; |
| 11 | +font-size:14px!important; |
| 12 | +line-height:1.5!important; |
| 13 | +} |
| 14 | + |
| 15 | +/* Dark theme styling to match the image - using higher specificity */ |
| 16 | +.yamlEditor .ace_editor, |
| 17 | +.yamlEditor .ace_editor.ace_terminal, |
| 18 | +.yamlEditor .ace_scroller, |
| 19 | +.yamlEditor .ace_content { |
| 20 | +background-color:#000000!important; |
| 21 | +color:#ffffff!important; |
| 22 | +} |
| 23 | + |
| 24 | +.yamlEditor .ace_gutter, |
| 25 | +.yamlEditor .ace_editor.ace_terminal .ace_gutter { |
| 26 | +background-color:#000000!important; |
| 27 | +color:#6c6c6c!important; |
| 28 | +border-right:1px solid#404040!important; |
| 29 | +} |
| 30 | + |
| 31 | +.yamlEditor .ace_gutter-active-line, |
| 32 | +.yamlEditor .ace_editor.ace_terminal .ace_gutter-active-line { |
| 33 | +background-color:#404040!important; |
| 34 | +} |
| 35 | + |
| 36 | +.yamlEditor .ace_line, |
| 37 | +.yamlEditor .ace_editor.ace_terminal .ace_line { |
| 38 | +background-color:#000000!important; |
| 39 | +} |
| 40 | + |
| 41 | +.yamlEditor .ace_cursor, |
| 42 | +.yamlEditor .ace_editor.ace_terminal .ace_cursor { |
| 43 | +color:#ffffff!important; |
| 44 | +} |
| 45 | + |
| 46 | +.yamlEditor .ace_selection, |
| 47 | +.yamlEditor .ace_editor.ace_terminal .ace_selection { |
| 48 | +background-color:#44475a!important; |
| 49 | +} |
| 50 | + |
| 51 | +.yamlEditor .ace_selected-word, |
| 52 | +.yamlEditor .ace_editor.ace_terminal .ace_selected-word { |
| 53 | +background-color:#44475a!important; |
| 54 | +} |
| 55 | + |
| 56 | +.yamlEditor .ace_active-line, |
| 57 | +.yamlEditor .ace_editor.ace_terminal .ace_active-line { |
| 58 | +background-color:#44475a!important; |
| 59 | +} |
| 60 | + |
| 61 | +/* Additional overrides for all possible background elements */ |
| 62 | +.yamlEditor .ace_layer, |
| 63 | +.yamlEditor .ace_text-layer, |
| 64 | +.yamlEditor .ace_marker-layer, |
| 65 | +.yamlEditor .ace_cursor-layer { |
| 66 | +background-color:#000000!important; |
| 67 | +} |
| 68 | + |
| 69 | +/* Global override for any remaining elements */ |
| 70 | +.yamlEditor* { |
| 71 | +background-color: transparent!important; |
| 72 | +} |
| 73 | + |
| 74 | +.yamlEditor .ace_editor, |
| 75 | +.yamlEditor .ace_editor*, |
| 76 | +.yamlEditor .ace_scroller, |
| 77 | +.yamlEditor .ace_content { |
| 78 | +background-color:#000000!important; |
| 79 | +} |
| 80 | + |
| 81 | +/* YAML syntax highlighting to match the image - using higher specificity */ |
| 82 | +.yamlEditor .ace_comment, |
| 83 | +.yamlEditor .ace_editor.ace_terminal .ace_comment { |
| 84 | +color:#999999!important; |
| 85 | +font-style: italic!important; |
| 86 | +} |
| 87 | + |
| 88 | +/* Target lines that start with # (comments) */ |
| 89 | +.yamlEditor .ace_text-layer .ace_line:first-child, |
| 90 | +.yamlEditor .ace_text-layer .ace_line:first-child* { |
| 91 | +color:#999999!important; |
| 92 | +font-style: italic!important; |
| 93 | +} |
| 94 | + |
| 95 | +/* More specific targeting for any element containing comment-like content */ |
| 96 | +.yamlEditor [class*="comment"], |
| 97 | +.yamlEditor [class*="Comment"] { |
| 98 | +color:#999999!important; |
| 99 | +font-style: italic!important; |
| 100 | +} |
| 101 | + |
| 102 | +.yamlEditor .ace_string, |
| 103 | +.yamlEditor .ace_editor.ace_terminal .ace_string { |
| 104 | +color:#ff84d6!important; |
| 105 | +} |
| 106 | + |
| 107 | +.yamlEditor .ace_constant.ace_numeric, |
| 108 | +.yamlEditor .ace_editor.ace_terminal .ace_constant.ace_numeric { |
| 109 | +color:#b5cea8!important; |
| 110 | +} |
| 111 | + |
| 112 | +.yamlEditor .ace_constant.ace_language, |
| 113 | +.yamlEditor .ace_editor.ace_terminal .ace_constant.ace_language { |
| 114 | +color:#569cd6!important; |
| 115 | +font-weight: bold!important; |
| 116 | +} |
| 117 | + |
| 118 | +.yamlEditor .ace_variable, |
| 119 | +.yamlEditor .ace_editor.ace_terminal .ace_variable { |
| 120 | +color:#ffffff!important; |
| 121 | +} |
| 122 | + |
| 123 | +.yamlEditor .ace_keyword, |
| 124 | +.yamlEditor .ace_editor.ace_terminal .ace_keyword { |
| 125 | +color:#ffffff!important; |
| 126 | +} |
| 127 | + |
| 128 | +.yamlEditor .ace_storage, |
| 129 | +.yamlEditor .ace_editor.ace_terminal .ace_storage { |
| 130 | +color:#ffffff!important; |
| 131 | +} |
| 132 | + |
| 133 | +.yamlEditor .ace_entity.ace_name.ace_tag, |
| 134 | +.yamlEditor .ace_editor.ace_terminal .ace_entity.ace_name.ace_tag { |
| 135 | +color:#ffffff!important; |
| 136 | +} |
| 137 | + |
| 138 | +.yamlEditor .ace_markup.ace_heading, |
| 139 | +.yamlEditor .ace_editor.ace_terminal .ace_markup.ace_heading { |
| 140 | +color:#ffffff!important; |
| 141 | +} |
| 142 | + |
| 143 | +/* Light theme support */ |
| 144 | +[data-theme="light"] .yamlEditor .ace_editor { |
| 145 | +background-color:#ffffff!important; |
| 146 | +color:#24292e!important; |
| 147 | +} |
| 148 | + |
| 149 | +[data-theme="light"] .yamlEditor .ace_gutter { |
| 150 | +background-color:#f6f8fa!important; |
| 151 | +color:#6a737d!important; |
| 152 | +border-right:1px solid#e1e4e8!important; |
| 153 | +} |
| 154 | + |
| 155 | +[data-theme="light"] .yamlEditor .ace_gutter-active-line { |
| 156 | +background-color:#f6f8fa!important; |
| 157 | +} |
| 158 | + |
| 159 | +[data-theme="light"] .yamlEditor .ace_line { |
| 160 | +background-color:#ffffff!important; |
| 161 | +} |
| 162 | + |
| 163 | +[data-theme="light"] .yamlEditor .ace_cursor { |
| 164 | +color:#24292e!important; |
| 165 | +} |
| 166 | + |
| 167 | +[data-theme="light"] .yamlEditor .ace_selection { |
| 168 | +background-color:#c8e1ff!important; |
| 169 | +} |
| 170 | + |
| 171 | +[data-theme="light"] .yamlEditor .ace_selected-word { |
| 172 | +background-color:#c8e1ff!important; |
| 173 | +} |
| 174 | + |
| 175 | +[data-theme="light"] .yamlEditor .ace_active-line { |
| 176 | +background-color:#f6f8fa!important; |
| 177 | +} |
| 178 | + |
| 179 | +[data-theme="light"] .yamlEditor .ace_comment { |
| 180 | +color:#999999!important; |
| 181 | +} |
| 182 | + |
| 183 | +[data-theme="light"] .yamlEditor .ace_string { |
| 184 | +color:#032f62!important; |
| 185 | +} |
| 186 | + |
| 187 | +[data-theme="light"] .yamlEditor .ace_constant.ace_numeric { |
| 188 | +color:#005cc5!important; |
| 189 | +} |
| 190 | + |
| 191 | +[data-theme="light"] .yamlEditor .ace_constant.ace_language { |
| 192 | +color:#d73a49!important; |
| 193 | +font-weight: bold!important; |
| 194 | +} |
| 195 | + |
| 196 | +[data-theme="light"] .yamlEditor .ace_variable { |
| 197 | +color:#005cc5!important; |
| 198 | +} |
| 199 | + |
| 200 | +[data-theme="light"] .yamlEditor .ace_keyword { |
| 201 | +color:#d73a49!important; |
| 202 | +} |
| 203 | + |
| 204 | +[data-theme="light"] .yamlEditor .ace_storage { |
| 205 | +color:#d73a49!important; |
| 206 | +} |
| 207 | + |
| 208 | +[data-theme="light"] .yamlEditor .ace_entity.ace_name.ace_tag { |
| 209 | +color:#005cc5!important; |
| 210 | +} |
| 211 | + |
| 212 | +[data-theme="light"] .yamlEditor .ace_markup.ace_heading { |
| 213 | +color:#005cc5!important; |
| 214 | +} |
| 215 | + |
| 216 | +/* Responsive design */ |
| 217 | +@media (max-width:768px) { |
| 218 | +.yamlEditor { |
| 219 | +font-size:12px!important; |
| 220 | +} |
| 221 | + |
| 222 | +.yamlEditorContainer { |
| 223 | +margin:0.8rem0; |
| 224 | +} |
| 225 | +} |
| 226 | + |
| 227 | +@media (max-width:480px) { |
| 228 | +.yamlEditor { |
| 229 | +font-size:11px!important; |
| 230 | +} |
| 231 | + |
| 232 | +.yamlEditorContainer { |
| 233 | +margin:0.6rem0; |
| 234 | +} |
| 235 | +} |