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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # font-family-no-missing-generic-family-keyword
  2. Disallow missing generic families in lists of font family names.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { font-family: Arial, sans-serif; }
  6. /** ↑
  7. * An example of generic family name */
  8. ```
  9. The generic font family can be:
  10. - placed anywhere in the font family list
  11. - omitted if a keyword related to property inheritance or a system font is used
  12. This rule checks the `font` and `font-family` properties.
  13. ## Options
  14. ### `true`
  15. The following patterns are considered violations:
  16. <!-- prettier-ignore -->
  17. ```css
  18. a { font-family: Helvetica, Arial, Verdana, Tahoma; }
  19. ```
  20. <!-- prettier-ignore -->
  21. ```css
  22. a { font: 1em/1.3 Times; }
  23. ```
  24. The following patterns are _not_ considered violations:
  25. <!-- prettier-ignore -->
  26. ```css
  27. a { font-family: Helvetica, Arial, Verdana, Tahoma, sans-serif; }
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. a { font: 1em/1.3 Times, serif, Apple Color Emoji; }
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. a { font: inherit; }
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. a { font: caption; }
  40. ```
  41. <!-- prettier-ignore -->
  42. ```css
  43. a { font-family: var(--font-family-common); }
  44. ```
  45. <!-- prettier-ignore -->
  46. ```css
  47. a { font-family: Helvetica, var(--font-family-common); }
  48. ```
  49. ## Optional secondary options
  50. ### `ignoreFontFamilies: ["/regex/", /regex/, "string"]`
  51. Given:
  52. ```
  53. ["custom-font"]
  54. ```
  55. The following pattern is _not_ considered a violation:
  56. <!-- prettier-ignore -->
  57. ```css
  58. a { font-family: custom-font; }
  59. ```
  60. The following pattern is considered a violation:
  61. <!-- prettier-ignore -->
  62. ```css
  63. a { font-family: invalid-custom-font; }
  64. ```