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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # font-weight-notation
  2. Require numeric or named (where possible) `font-weight` values. Also, when named values are expected, require only valid names.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { font-weight: bold }
  6. /** ↑
  7. * This notation */
  8. a { font: italic small-caps 600 16px/3 cursive; }
  9. /** ↑
  10. * And this notation, too */
  11. ```
  12. Valid font-weight names are `normal`, `bold`, `bolder`, and `lighter`.
  13. This rule ignores `$sass`, `@less`, and `var(--custom-property)` variable syntaxes.
  14. ## Options
  15. `string`: `"numeric"|"named-where-possible"`
  16. ### `"numeric"`
  17. `font-weight` values _must always_ be numbers.
  18. The following patterns are considered violations:
  19. <!-- prettier-ignore -->
  20. ```css
  21. a { font-weight: bold; }
  22. ```
  23. <!-- prettier-ignore -->
  24. ```css
  25. a { font: italic normal 20px sans-serif; }
  26. ```
  27. The following patterns are _not_ considered violations:
  28. <!-- prettier-ignore -->
  29. ```css
  30. a { font-weight: 700; }
  31. ```
  32. <!-- prettier-ignore -->
  33. ```css
  34. a { font: italic 400 20px; }
  35. ```
  36. ### `"named-where-possible"`
  37. `font-weight` values _must always_ be keywords when an appropriate keyword is available.
  38. This means that only `400` and `700` will be rejected, because those are the only numbers with keyword equivalents (`normal` and `bold`).
  39. The following patterns are considered violations:
  40. <!-- prettier-ignore -->
  41. ```css
  42. a { font-weight: 700; }
  43. ```
  44. <!-- prettier-ignore -->
  45. ```css
  46. a { font: italic 400 20px sans-serif; }
  47. ```
  48. The following patterns are _not_ considered violations:
  49. <!-- prettier-ignore -->
  50. ```css
  51. a { font-weight: bold; }
  52. ```
  53. <!-- prettier-ignore -->
  54. ```css
  55. a { font: italic normal 20px sans-serif; }
  56. ```
  57. ## Optional secondary options
  58. ### `ignore: ["relative"]`
  59. Ignore the [_relative_](https://drafts.csswg.org/css-fonts/#font-weight-prop) keyword names of `bolder` and `lighter`.
  60. The following patterns are _not_ considered violations:
  61. <!-- prettier-ignore -->
  62. ```css
  63. a { font-weight: 400; }
  64. a b { font-weight: lighter; }
  65. ```