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 941B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # selector-id-pattern
  2. Specify a pattern for ID selectors.
  3. <!-- prettier-ignore -->
  4. ```css
  5. .foo, #bar.baz a, #hoo[disabled] { color: pink; }
  6. /** ↑ ↑
  7. * These ID selectors */
  8. ```
  9. ## Options
  10. `regex|string`
  11. A string will be translated into a RegExp like so `new RegExp(yourString)` — so be sure to escape properly.
  12. The selector value _after `#`_ will be checked. No need to include `#` in your pattern.
  13. Given the string:
  14. ```
  15. "foo-[a-z]+"
  16. ```
  17. The following patterns are considered violations:
  18. <!-- prettier-ignore -->
  19. ```css
  20. #foop {}
  21. ```
  22. <!-- prettier-ignore -->
  23. ```css
  24. #foo-BAR {}
  25. ```
  26. <!-- prettier-ignore -->
  27. ```css
  28. div > .zing + #foo-BAR {}
  29. ```
  30. The following patterns are _not_ considered violations:
  31. <!-- prettier-ignore -->
  32. ```css
  33. #foo-bar {}
  34. ```
  35. <!-- prettier-ignore -->
  36. ```css
  37. div > .zing + #foo-bar {}
  38. ```
  39. <!-- prettier-ignore -->
  40. ```css
  41. .foop {}
  42. ```
  43. <!-- prettier-ignore -->
  44. ```css
  45. [foo='bar'] {}
  46. ```