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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # unit-no-unknown
  2. Disallow unknown units.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { width: 100pixels; }
  6. /** ↑
  7. * These units */
  8. ```
  9. This rule considers units defined in the CSS Specifications, up to and including Editor's Drafts, to be known.
  10. ## Options
  11. ### `true`
  12. The following patterns are considered violations:
  13. <!-- prettier-ignore -->
  14. ```css
  15. a {
  16. width: 10pixels;
  17. }
  18. ```
  19. <!-- prettier-ignore -->
  20. ```css
  21. a {
  22. width: calc(10px + 10pixels);
  23. }
  24. ```
  25. The following patterns are _not_ considered violations:
  26. <!-- prettier-ignore -->
  27. ```css
  28. a {
  29. width: 10px;
  30. }
  31. ```
  32. <!-- prettier-ignore -->
  33. ```css
  34. a {
  35. width: 10Px;
  36. }
  37. ```
  38. <!-- prettier-ignore -->
  39. ```css
  40. a {
  41. width: 10pX;
  42. }
  43. ```
  44. <!-- prettier-ignore -->
  45. ```css
  46. a {
  47. width: calc(10px + 10px);
  48. }
  49. ```
  50. ## Optional secondary options
  51. ### `ignoreUnits: ["/regex/", /regex/, "string"]`
  52. Given:
  53. ```
  54. ["/^my-/", "custom"]
  55. ```
  56. The following patterns are _not_ considered violations:
  57. <!-- prettier-ignore -->
  58. ```css
  59. width: 10custom;
  60. a {
  61. }
  62. ```
  63. <!-- prettier-ignore -->
  64. ```css
  65. a {
  66. width: 10my-unit;
  67. }
  68. ```
  69. <!-- prettier-ignore -->
  70. ```css
  71. a {
  72. width: 10my-other-unit;
  73. }
  74. ```
  75. ### `ignoreFunctions: ["/regex/", /regex/, "string"]`
  76. Given:
  77. ```
  78. ["image-set", "/^my-/", "/^YOUR-/i"]
  79. ```
  80. The following patterns are _not_ considered violations:
  81. <!-- prettier-ignore -->
  82. ```css
  83. a {
  84. background-image: image-set(
  85. '/images/some-image-1x.jpg' 1x,
  86. '/images/some-image-2x.jpg' 2x,
  87. '/images/some-image-3x.jpg' 3x
  88. );
  89. }
  90. ```
  91. <!-- prettier-ignore -->
  92. ```css
  93. a {
  94. background-image: my-image-set(
  95. '/images/some-image-1x.jpg' 1x,
  96. '/images/some-image-2x.jpg' 2x,
  97. '/images/some-image-3x.jpg' 3x
  98. );
  99. }
  100. ```
  101. <!-- prettier-ignore -->
  102. ```css
  103. a {
  104. background-image: YoUr-image-set(
  105. '/images/some-image-1x.jpg' 1x,
  106. '/images/some-image-2x.jpg' 2x,
  107. '/images/some-image-3x.jpg' 3x
  108. );
  109. }
  110. ```