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.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # selector-nested-pattern
  2. Specify a pattern for the selectors of rules nested within rules.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. color: orange;
  7. &:hover { color: pink; }
  8. } ↑
  9. /** ↑
  10. * This nested selector */
  11. ```
  12. Non-standard selectors (e.g. selectors with Sass or Less interpolation) and selectors of rules nested within at-rules are ignored.
  13. ## Options
  14. `regex|string`
  15. A string will be translated into a RegExp like so `new RegExp(yourString)` — so be sure to escape properly.
  16. The selector value will be checked in its entirety. If you'd like to allow for combinators and commas, you must incorporate them into your pattern.
  17. Given the string:
  18. ```
  19. "^&:(?:hover|focus)$"
  20. ```
  21. The following patterns are considered violations:
  22. <!-- prettier-ignore -->
  23. ```css
  24. a {
  25. .bar {}
  26. }
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a {
  31. .bar:hover {}
  32. }
  33. ```
  34. <!-- prettier-ignore -->
  35. ```css
  36. a {
  37. &:hover,
  38. &:focus {}
  39. }
  40. ```
  41. The following patterns are _not_ considered violations:
  42. <!-- prettier-ignore -->
  43. ```css
  44. a {
  45. &:hover {}
  46. }
  47. ```
  48. <!-- prettier-ignore -->
  49. ```css
  50. a {
  51. &:focus {}
  52. }
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. a {
  57. &:hover {}
  58. &:focus {}
  59. }
  60. ```