|
| 1 | +@import "syntax-variables"; |
| 2 | + |
| 3 | +atom-text-editor { |
| 4 | + background-color: @syntax-background-color; |
| 5 | + color: @syntax-text-color; |
| 6 | + |
| 7 | + .wrap-guide { |
| 8 | + background-color: @syntax-wrap-guide-color; |
| 9 | + } |
| 10 | + |
| 11 | + .indent-guide { |
| 12 | + color: @syntax-indent-guide-color; |
| 13 | + } |
| 14 | + |
| 15 | + .invisible-character { |
| 16 | + color: @syntax-invisible-character-color; |
| 17 | + } |
| 18 | + |
| 19 | + .gutter { |
| 20 | + background-color: @syntax-gutter-background-color; |
| 21 | + color: @syntax-gutter-text-color; |
| 22 | + |
| 23 | + .line-number { |
| 24 | + &.cursor-line { |
| 25 | + background-color: @syntax-gutter-background-color-selected; |
| 26 | + color: @syntax-gutter-text-color-selected; |
| 27 | + } |
| 28 | + |
| 29 | + &.cursor-line-no-selection { |
| 30 | + color: @syntax-gutter-text-color-selected; |
| 31 | + } |
| 32 | + } |
| 33 | + } |
| 34 | + |
| 35 | + .gutter .line-number.folded, |
| 36 | + .gutter .line-number:after, |
| 37 | + .fold-marker:after { |
| 38 | + color: @light-gray; |
| 39 | + } |
| 40 | + |
| 41 | + .invisible { |
| 42 | + color: @syntax-text-color; |
| 43 | + } |
| 44 | + |
| 45 | + .cursor { |
| 46 | + color: @syntax-cursor-color; |
| 47 | + } |
| 48 | + |
| 49 | + .selection .region { |
| 50 | + background-color: @syntax-selection-color; |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | +atom-text-editor .search-results .marker .region { |
| 55 | + background-color: transparent; |
| 56 | + border: 1px solid @syntax-result-marker-color; |
| 57 | +} |
| 58 | + |
| 59 | +atom-text-editor .search-results .marker.current-result .region { |
| 60 | + border: 1px solid @syntax-result-marker-color-selected; |
| 61 | +} |
| 62 | + |
| 63 | + |
| 64 | +// Syntax styles |
| 65 | + |
| 66 | +.syntax--comment { |
| 67 | + color: @light-gray; |
| 68 | +} |
| 69 | + |
| 70 | +.syntax--keyword { |
| 71 | + color: @purple; |
| 72 | + |
| 73 | + &.syntax--control { |
| 74 | + color: @purple; |
| 75 | + } |
| 76 | + |
| 77 | + &.syntax--operator { |
| 78 | + color: @syntax-text-color; |
| 79 | + } |
| 80 | + |
| 81 | + &.syntax--other.syntax--special-method { |
| 82 | + color: @blue; |
| 83 | + } |
| 84 | + |
| 85 | + &.syntax--other.syntax--unit { |
| 86 | + color: @orange; |
| 87 | + } |
| 88 | +} |
| 89 | + |
| 90 | +.syntax--storage { |
| 91 | + color: @purple; |
| 92 | +} |
| 93 | + |
| 94 | +.syntax--constant { |
| 95 | + color: @orange; |
| 96 | + |
| 97 | + &.syntax--character.syntax--escape { |
| 98 | + color: @cyan; |
| 99 | + } |
| 100 | + |
| 101 | + &.syntax--numeric { |
| 102 | + color: @orange; |
| 103 | + } |
| 104 | + |
| 105 | + &.syntax--other.syntax--color { |
| 106 | + color: @cyan; |
| 107 | + } |
| 108 | + |
| 109 | + &.syntax--other.syntax--symbol { |
| 110 | + color: @green; |
| 111 | + } |
| 112 | +} |
| 113 | + |
| 114 | +.syntax--variable { |
| 115 | + color: @red; |
| 116 | + |
| 117 | + &.syntax--interpolation { |
| 118 | + color: darken(@red, 10%); |
| 119 | + } |
| 120 | + |
| 121 | + &.syntax--parameter.syntax--function { |
| 122 | + color: @syntax-text-color; |
| 123 | + } |
| 124 | +} |
| 125 | + |
| 126 | +.syntax--invalid.syntax--illegal { |
| 127 | + background-color: @red; |
| 128 | + color: @syntax-background-color; |
| 129 | +} |
| 130 | + |
| 131 | +.syntax--string { |
| 132 | + color: @green; |
| 133 | + |
| 134 | + |
| 135 | + &.syntax--regexp { |
| 136 | + color: @cyan; |
| 137 | + |
| 138 | + .syntax--source.syntax--ruby.syntax--embedded { |
| 139 | + color: @orange; |
| 140 | + } |
| 141 | + } |
| 142 | + |
| 143 | + &.syntax--other.syntax--link { |
| 144 | + color: @red; |
| 145 | + } |
| 146 | +} |
| 147 | + |
| 148 | +.syntax--punctuation { |
| 149 | + &.syntax--definition { |
| 150 | + &.syntax--comment { |
| 151 | + color: @light-gray; |
| 152 | + } |
| 153 | + |
| 154 | + &.syntax--string, |
| 155 | + &.syntax--variable, |
| 156 | + &.syntax--parameters, |
| 157 | + &.syntax--array { |
| 158 | + color: @syntax-text-color; |
| 159 | + } |
| 160 | + |
| 161 | + &.syntax--heading, |
| 162 | + &.syntax--identity { |
| 163 | + color: @blue; |
| 164 | + } |
| 165 | + |
| 166 | + &.syntax--bold { |
| 167 | + color: @light-orange; |
| 168 | + font-weight: bold; |
| 169 | + } |
| 170 | + |
| 171 | + &.syntax--italic { |
| 172 | + color: @purple; |
| 173 | + font-style: italic; |
| 174 | + } |
| 175 | + } |
| 176 | + |
| 177 | + &.syntax--section.syntax--embedded { |
| 178 | + color: darken(@red, 10%); |
| 179 | + } |
| 180 | + |
| 181 | +} |
| 182 | + |
| 183 | +.syntax--support { |
| 184 | + &.syntax--class { |
| 185 | + color: @light-orange; |
| 186 | + } |
| 187 | + |
| 188 | + &.syntax--function { |
| 189 | + color: @cyan; |
| 190 | + |
| 191 | + &.syntax--any-method { |
| 192 | + color: @blue; |
| 193 | + } |
| 194 | + } |
| 195 | +} |
| 196 | + |
| 197 | +.syntax--entity { |
| 198 | + &.syntax--name.syntax--function { |
| 199 | + color: @blue; |
| 200 | + } |
| 201 | + &.syntax--name.syntax--type { |
| 202 | + color: @light-orange; |
| 203 | + text-decoration: none; |
| 204 | + } |
| 205 | + |
| 206 | + &.syntax--other.syntax--inherited-class { |
| 207 | + color: @green; |
| 208 | + } |
| 209 | + &.syntax--name.syntax--class, &.syntax--name.syntax--type.syntax--class { |
| 210 | + color: @light-orange; |
| 211 | + } |
| 212 | + |
| 213 | + &.syntax--name.syntax--section { |
| 214 | + color: @blue; |
| 215 | + } |
| 216 | + |
| 217 | + &.syntax--name.syntax--tag { |
| 218 | + color: @red; |
| 219 | + text-decoration: none; |
| 220 | + } |
| 221 | + |
| 222 | + &.syntax--other.syntax--attribute-name { |
| 223 | + color: @orange; |
| 224 | + |
| 225 | + &.syntax--id { |
| 226 | + color: @blue; |
| 227 | + } |
| 228 | + } |
| 229 | +} |
| 230 | + |
| 231 | +.syntax--meta { |
| 232 | + &.syntax--class { |
| 233 | + color: @light-orange; |
| 234 | + } |
| 235 | + |
| 236 | + &.syntax--link { |
| 237 | + color: @orange; |
| 238 | + } |
| 239 | + |
| 240 | + &.syntax--require { |
| 241 | + color: @blue; |
| 242 | + } |
| 243 | + |
| 244 | + &.syntax--selector { |
| 245 | + color: @purple; |
| 246 | + } |
| 247 | + |
| 248 | + &.syntax--separator { |
| 249 | + background-color: @gray; |
| 250 | + color: @syntax-text-color; |
| 251 | + } |
| 252 | +} |
| 253 | + |
| 254 | +.syntax--none { |
| 255 | + color: @syntax-text-color; |
| 256 | +} |
| 257 | + |
| 258 | +.syntax--markup { |
| 259 | + &.syntax--bold { |
| 260 | + color: @orange; |
| 261 | + font-weight: bold; |
| 262 | + } |
| 263 | + |
| 264 | + &.syntax--changed { |
| 265 | + color: @purple; |
| 266 | + } |
| 267 | + |
| 268 | + &.syntax--deleted { |
| 269 | + color: @red; |
| 270 | + } |
| 271 | + |
| 272 | + &.syntax--italic { |
| 273 | + color: @purple; |
| 274 | + font-style: italic; |
| 275 | + } |
| 276 | + |
| 277 | + &.syntax--heading .syntax--punctuation.syntax--definition.syntax--heading { |
| 278 | + color: @blue; |
| 279 | + } |
| 280 | + |
| 281 | + &.syntax--inserted { |
| 282 | + color: @green; |
| 283 | + } |
| 284 | + |
| 285 | + &.syntax--list { |
| 286 | + color: @red; |
| 287 | + } |
| 288 | + |
| 289 | + &.syntax--quote { |
| 290 | + color: @orange; |
| 291 | + } |
| 292 | + |
| 293 | + &.syntax--raw.syntax--inline { |
| 294 | + color: @green; |
| 295 | + } |
| 296 | +} |
| 297 | + |
| 298 | +.syntax--source.syntax--gfm .syntax--markup { |
| 299 | + -webkit-font-smoothing: auto; |
| 300 | + &.syntax--heading { |
| 301 | + color: @green; |
| 302 | + } |
| 303 | +} |
| 304 | + |
| 305 | + |
| 306 | +// Mini editor |
| 307 | + |
| 308 | +atom-text-editor[mini] .scroll-view { |
| 309 | + padding-left: 2px; |
| 310 | +} |
0 commit comments