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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # alpha-value-notation
  2. Specify percentage or number notation for alpha-values.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { color: rgb(0 0 0 / 0.5) }
  6. /** ↑
  7. * This notation */
  8. ```
  9. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  10. ## Options
  11. `string`: `"number"|"percentage"`
  12. ### `"number"`
  13. Alpha-values _must always_ use the number notation.
  14. The following patterns are considered violations:
  15. <!-- prettier-ignore -->
  16. ```css
  17. a { opacity: 50% }
  18. ```
  19. <!-- prettier-ignore -->
  20. ```css
  21. a { color: rgb(0 0 0 / 50%) }
  22. ```
  23. The following patterns are _not_ considered violations:
  24. <!-- prettier-ignore -->
  25. ```css
  26. a { opacity: 0.5 }
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a { color: rgb(0 0 0 / 0.5) }
  31. ```
  32. ### `"percentage"`
  33. Alpha-values _must always_ use percentage notation.
  34. The following patterns are considered violations:
  35. <!-- prettier-ignore -->
  36. ```css
  37. a { opacity: 0.5 }
  38. ```
  39. <!-- prettier-ignore -->
  40. ```css
  41. a { color: rgb(0 0 0 / 0.5) }
  42. ```
  43. The following patterns are _not_ considered violations:
  44. <!-- prettier-ignore -->
  45. ```css
  46. a { opacity: 50% }
  47. ```
  48. <!-- prettier-ignore -->
  49. ```css
  50. a { color: rgb(0 0 0 / 50%) }
  51. ```
  52. ## Optional secondary options
  53. ### `exceptProperties: ["/regex/", /regex/, "string"]`
  54. Reverse the primary option for matching properties.
  55. For example with `"percentage"`.
  56. Given:
  57. ```
  58. ["opacity"]
  59. ```
  60. The following patterns are considered violations:
  61. <!-- prettier-ignore -->
  62. ```css
  63. a { opacity: 50% }
  64. ```
  65. <!-- prettier-ignore -->
  66. ```css
  67. a { color: rgb(0 0 0 / 0.5) }
  68. ```
  69. The following patterns are _not_ considered violations:
  70. <!-- prettier-ignore -->
  71. ```css
  72. a { opacity: 0.5 }
  73. ```
  74. <!-- prettier-ignore -->
  75. ```css
  76. a { color: rgb(0 0 0 / 50%) }
  77. ```