Skip to content

Deprecated selector in monday-syntax/index.less #2

Description

@TechMaz

In monday-syntax/index.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • atom-text-editor, :host => atom-text-editor,atom-text-editor

  • atom-text-editor .gutter, :host .gutter => atom-text-editor .gutter,atom-text-editor .gutter

  • atom-text-editor .gutter .line-number.cursor-line, :host .gutter .line-number.cursor-line => atom-text-editor .gutter .line-number.cursor-line,atom-text-editor .gutter .line-number.cursor-line

  • atom-text-editor .gutter .line-number.cursor-line-no-selection, :host .gutter .line-number.cursor-line-no-selection => atom-text-editor .gutter .line-number.cursor-line-no-selection,atom-text-editor .gutter .line-number.cursor-line-no-selection

  • atom-text-editor .wrap-guide, :host .wrap-guide => atom-text-editor .wrap-guide,atom-text-editor .wrap-guide

  • atom-text-editor .indent-guide, :host .indent-guide => atom-text-editor .indent-guide,atom-text-editor .indent-guide

  • atom-text-editor .invisible-character, :host .invisible-character => atom-text-editor .invisible-character,atom-text-editor .invisible-character

  • atom-text-editor .search-results .marker .region, :host .search-results .marker .region => atom-text-editor .search-results .syntax--marker .region,atom-text-editor .search-results .syntax--marker .region

  • atom-text-editor .search-results .marker.current-result .region, :host .search-results .marker.current-result .region => atom-text-editor .search-results .syntax--marker.current-result .region,atom-text-editor .search-results .syntax--marker.current-result .region

  • atom-text-editor.is-focused .cursor, :host(.is-focused) .cursor => atom-text-editor.is-focused .cursor,atom-text-editor .cursor

  • atom-text-editor.is-focused .selection .region, :host(.is-focused) .selection .region => atom-text-editor.is-focused .selection .region,atom-text-editor .selection .region

  • atom-text-editor.is-focused .line-number.cursor-line-no-selection, atom-text-editor.is-focused .line.cursor-line, :host(.is-focused) .line-number.cursor-line-no-selection, :host(.is-focused) .line.cursor-line => atom-text-editor.is-focused .line-number.cursor-line-no-selection, atom-text-editor.is-focused .line.cursor-line,atom-text-editor .line-number.cursor-line-no-selection,atom-text-editor .line.cursor-line

  • .comment => .syntax--comment

  • .string => .syntax--string

  • .constant.numeric => .syntax--constant.syntax--numeric

  • .constant.language => .syntax--constant.syntax--language

  • .constant.character, .constant.other => .syntax--constant.syntax--character, .syntax--constant.syntax--other

  • .variable => .syntax--variable

  • .keyword => .syntax--keyword

  • .storage => .syntax--storage

  • .storage.type => .syntax--storage.syntax--type

  • .entity.name.class => .syntax--entity.syntax--name.syntax--class

  • .entity.other.inherited-class => .syntax--entity.syntax--other.syntax--inherited-class

  • .entity.name.function => .syntax--entity.syntax--name.syntax--function

  • .variable.parameter => .syntax--variable.syntax--parameter

  • .entity.name.tag => .syntax--entity.syntax--name.syntax--tag

  • .entity.other.attribute-name => .syntax--entity.syntax--other.syntax--attribute-name

  • .support.function => .syntax--support.syntax--function

  • .support.constant => .syntax--support.syntax--constant

  • .support.type, .support.class => .syntax--support.syntax--type, .syntax--support.syntax--class

  • .support.other.variable => .syntax--support.syntax--other.syntax--variable

  • .source.ruby => .syntax--source.syntax--ruby

  • .constant.other.symbol.ruby.19syntax => .syntax--constant.syntax--other.syntax--symbol.syntax--ruby.19syntax

  • .variable.other.constant.ruby => .syntax--variable.syntax--other.syntax--constant.syntax--ruby

  • .entity.name.type.class.ruby => .syntax--entity.syntax--name.syntax--type.syntax--class.syntax--ruby

  • .entity.name.type.module.ruby => .syntax--entity.syntax--name.syntax--type.syntax--module.syntax--ruby

  • .source.ruby.embedded.source => .syntax--source.syntax--ruby.syntax--embedded.syntax--source

  • .source.ruby.embedded.source .punctuation.section.embedded.ruby => .syntax--source.syntax--ruby.syntax--embedded.syntax--source .syntax--punctuation.syntax--section.syntax--embedded.syntax--ruby

  • .storage.modifier.import.java => .syntax--storage.syntax--modifier.syntax--import.syntax--java

  • .storage.modifier.java => .syntax--storage.syntax--modifier.syntax--java

  • .entity.name.type.class.java => .syntax--entity.syntax--name.syntax--type.syntax--class.syntax--java

  • .storage.type.primitive.array.java => .syntax--storage.syntax--type.syntax--primitive.syntax--array.syntax--java

  • .storage.type.object.array.java => .syntax--storage.syntax--type.syntax--object.syntax--array.syntax--java

  • .constant.numeric.java => .syntax--constant.syntax--numeric.syntax--java

  • .storage.type.java => .syntax--storage.syntax--type.syntax--java

  • .keyword.operator.dereference.java => .syntax--keyword.syntax--operator.syntax--dereference.syntax--java

  • .markup.inserted.diff, .meta.diff.header.to-file => .syntax--markup.syntax--inserted.syntax--diff, .syntax--meta.syntax--diff.syntax--header.syntax--to-file

  • .markup.deleted.diff, .meta.diff.header.from-file => .syntax--markup.syntax--deleted.syntax--diff, .syntax--meta.syntax--diff.syntax--header.syntax--from-file

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

Activity

  1. rcrooks commented on Sep 12, 2018

    @rcrooks

    @ignism hope you will update this, as I really like the theme. If you accept PRs, I don't mind fixing the deprecated selectors

  2. ignism commented on Sep 14, 2018

    @ignism
    Owner

    @rcrooks thanks for reaching out to me, glad to hear you like it. I myself however made the switch to VSCode and don't see the time in the near future to update my old atom packages. Maybe you can publish the theme yourself, there are more days in the week if you need inspiration for a title 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions