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

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