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 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # selector-pseudo-element-colon-notation
  2. Specify single or double colon notation for applicable pseudo-elements.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a::before {}
  6. /** ↑
  7. * This notation */
  8. ```
  9. The `::` notation was chosen for _pseudo-elements_ to establish a discrimination between _pseudo-classes_ (which subclass existing elements) and _pseudo-elements_ (which are elements not represented in the document tree).
  10. However, for compatibility with existing style sheets, user agents also accept the previous one-colon notation for _pseudo-elements_ introduced in CSS levels 1 and 2 (namely, `:first-line`, `:first-letter`, `:before` and `:after`).
  11. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  12. ## Options
  13. `string`: `"single"|"double"`
  14. ### `"single"`
  15. Applicable pseudo-elements _must always_ use the single colon notation.
  16. The following patterns are considered violations:
  17. <!-- prettier-ignore -->
  18. ```css
  19. a::before { color: pink; }
  20. ```
  21. <!-- prettier-ignore -->
  22. ```css
  23. a::after { color: pink; }
  24. ```
  25. <!-- prettier-ignore -->
  26. ```css
  27. a::first-letter { color: pink; }
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. a::first-line { color: pink; }
  32. ```
  33. The following patterns are _not_ considered violations:
  34. <!-- prettier-ignore -->
  35. ```css
  36. a:before { color: pink; }
  37. ```
  38. <!-- prettier-ignore -->
  39. ```css
  40. a:after { color: pink; }
  41. ```
  42. <!-- prettier-ignore -->
  43. ```css
  44. a:first-letter { color: pink; }
  45. ```
  46. <!-- prettier-ignore -->
  47. ```css
  48. a:first-line { color: pink; }
  49. ```
  50. <!-- prettier-ignore -->
  51. ```css
  52. input::placeholder { color: pink; }
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. li::marker { font-variant-numeric: tabular-nums; }
  57. ```
  58. ### `"double"`
  59. Applicable pseudo-elements _must always_ use the double colon notation.
  60. The following patterns are considered violations:
  61. <!-- prettier-ignore -->
  62. ```css
  63. a:before { color: pink; }
  64. ```
  65. <!-- prettier-ignore -->
  66. ```css
  67. a:after { color: pink; }
  68. ```
  69. <!-- prettier-ignore -->
  70. ```css
  71. a:first-letter { color: pink; }
  72. ```
  73. <!-- prettier-ignore -->
  74. ```css
  75. a:first-line { color: pink; }
  76. ```
  77. The following patterns are _not_ considered violations:
  78. <!-- prettier-ignore -->
  79. ```css
  80. a::before { color: pink; }
  81. ```
  82. <!-- prettier-ignore -->
  83. ```css
  84. a::after { color: pink; }
  85. ```
  86. <!-- prettier-ignore -->
  87. ```css
  88. a::first-letter { color: pink; }
  89. ```
  90. <!-- prettier-ignore -->
  91. ```css
  92. a::first-line { color: pink; }
  93. ```
  94. <!-- prettier-ignore -->
  95. ```css
  96. input::placeholder { color: pink; }
  97. ```
  98. <!-- prettier-ignore -->
  99. ```css
  100. li::marker { font-variant-numeric: tabular-nums; }
  101. ```