Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # selector-no-qualifying-type
  2. Disallow qualifying a selector by type.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a.foo {}
  6. /** ↑
  7. * This type selector is qualifying the class */
  8. ```
  9. A type selector is "qualifying" when it is compounded with (chained to) another selector (e.g. `a.foo`, `a#foo`). This rule does not regulate type selectors that are combined with other selectors via a combinator (e.g. `a > .foo`, `a #foo`).
  10. ## Options
  11. ### `true`
  12. The following patterns are considered violations:
  13. <!-- prettier-ignore -->
  14. ```css
  15. a.foo {
  16. margin: 0
  17. }
  18. ```
  19. <!-- prettier-ignore -->
  20. ```css
  21. a#foo {
  22. margin: 0
  23. }
  24. ```
  25. <!-- prettier-ignore -->
  26. ```css
  27. input[type='button'] {
  28. margin: 0
  29. }
  30. ```
  31. The following patterns are _not_ considered violations:
  32. <!-- prettier-ignore -->
  33. ```css
  34. .foo {
  35. margin: 0
  36. }
  37. ```
  38. <!-- prettier-ignore -->
  39. ```css
  40. #foo {
  41. margin: 0
  42. }
  43. ```
  44. <!-- prettier-ignore -->
  45. ```css
  46. input {
  47. margin: 0
  48. }
  49. ```
  50. ## Optional secondary options
  51. ### `ignore: ["attribute", "class", "id"]`
  52. #### `"attribute"`
  53. Allow attribute selectors qualified by type.
  54. The following patterns are _not_ considered violations:
  55. <!-- prettier-ignore -->
  56. ```css
  57. input[type='button'] {
  58. margin: 0
  59. }
  60. ```
  61. #### `"class"`
  62. Allow class selectors qualified by type.
  63. The following patterns are _not_ considered violations:
  64. <!-- prettier-ignore -->
  65. ```css
  66. a.foo {
  67. margin: 0
  68. }
  69. ```
  70. #### `"id"`
  71. Allow ID selectors qualified by type.
  72. The following patterns are _not_ considered violations:
  73. <!-- prettier-ignore -->
  74. ```css
  75. a#foo {
  76. margin: 0
  77. }
  78. ```