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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # media-feature-name-value-allowed-list
  2. Specify a list of allowed media feature name and value pairs.
  3. <!-- prettier-ignore -->
  4. ```css
  5. @media screen and (min-width: 768px) {}
  6. /** ↑ ↑
  7. * These features and values */
  8. ```
  9. ## Options
  10. ```js
  11. {
  12. "unprefixed-media-feature-name": ["array", "of", "values"],
  13. "/unprefixed-media-feature-name/": ["/regex/", "non-regex", /real-regex/]
  14. }
  15. ```
  16. If a media feature name is found in the object, only its allowed-listed values are
  17. allowed. If the media feature name is not included in the object, anything goes.
  18. If a name or value is surrounded with `/` (e.g. `"/width$/"`), it is interpreted
  19. as a regular expression. For example, `/width$/` will match `max-width` and
  20. `min-width`.
  21. Given:
  22. ```
  23. {
  24. "min-width": ["768px", "1024px"],
  25. "/resolution/": ["/dpcm$/"]
  26. }
  27. ```
  28. The following patterns are considered violations:
  29. <!-- prettier-ignore -->
  30. ```css
  31. @media screen and (min-width: 1000px) {}
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. @media screen and (min-resolution: 2dpi) {}
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. @media screen and (min-width > 1000px) {}
  40. ```
  41. The following patterns are _not_ considered violations:
  42. <!-- prettier-ignore -->
  43. ```css
  44. @media screen and (min-width: 768px) {}
  45. ```
  46. <!-- prettier-ignore -->
  47. ```css
  48. @media screen and (min-width: 1024px) {}
  49. ```
  50. <!-- prettier-ignore -->
  51. ```css
  52. @media screen and (orientation: portrait) {}
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. @media screen and (min-resolution: 2dpcm) {}
  57. ```
  58. <!-- prettier-ignore -->
  59. ```css
  60. @media screen and (resolution: 10dpcm) {}
  61. ```
  62. <!-- prettier-ignore -->
  63. ```css
  64. @media screen and (768px < min-width) {}
  65. ```