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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # font-family-no-duplicate-names
  2. Disallow duplicate font family names.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { font-family: serif, serif; }
  6. /** ↑ ↑
  7. * These font family names */
  8. ```
  9. This rule checks the `font` and `font-family` properties.
  10. This rule ignores `$sass`, `@less`, and `var(--custom-property)` variable syntaxes.
  11. **Caveat:** This rule will stumble on _unquoted_ multi-word font names and _unquoted_ font names containing escape sequences. Wrap these font names in quotation marks, and everything should be fine.
  12. ## Options
  13. ### `true`
  14. The following patterns are considered violations:
  15. <!-- prettier-ignore -->
  16. ```css
  17. a { font-family: 'Times', Times, serif; }
  18. ```
  19. <!-- prettier-ignore -->
  20. ```css
  21. a { font: 1em "Arial", 'Arial', sans-serif; }
  22. ```
  23. <!-- prettier-ignore -->
  24. ```css
  25. a { font: normal 14px/32px -apple-system, BlinkMacSystemFont, sans-serif, sans-serif; }
  26. ```
  27. The following patterns are _not_ considered violations:
  28. <!-- prettier-ignore -->
  29. ```css
  30. a { font-family: Times, serif; }
  31. ```
  32. <!-- prettier-ignore -->
  33. ```css
  34. a { font: 1em "Arial", "sans-serif", sans-serif; }
  35. ```
  36. <!-- prettier-ignore -->
  37. ```css
  38. a { font: normal 14px/32px -apple-system, BlinkMacSystemFont, sans-serif; }
  39. ```
  40. ## Optional secondary options
  41. ### `ignoreFontFamilyNames: ["/regex/", /regex/, "string"]`
  42. Given:
  43. ```
  44. ["/^My Font /", "monospace"]
  45. ```
  46. The following patterns are _not_ considered violations:
  47. <!-- prettier-ignore -->
  48. ```css
  49. font-family: monospace, monospace
  50. ```
  51. <!-- prettier-ignore -->
  52. ```css
  53. font-family: "My Font Family", "My Font Family", monospace
  54. ```