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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # function-url-quotes
  2. Require or disallow quotes for urls.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { background: url("x.jpg") }
  6. /** ↑ ↑
  7. * These quotes */
  8. ```
  9. ## Options
  10. `string`: `"always"|"never"`
  11. ### `"always"`
  12. Urls _must always_ be quoted.
  13. The following patterns are considered violations:
  14. <!-- prettier-ignore -->
  15. ```css
  16. @import url(foo.css);
  17. ```
  18. <!-- prettier-ignore -->
  19. ```css
  20. @document domain(http://www.w3.org/);
  21. ```
  22. <!-- prettier-ignore -->
  23. ```css
  24. @font-face { font-family: 'foo'; src: url(foo.ttf); }
  25. ```
  26. <!-- prettier-ignore -->
  27. ```css
  28. @-moz-document url-prefix() {}
  29. ```
  30. The following patterns are _not_ considered violations:
  31. <!-- prettier-ignore -->
  32. ```css
  33. a { background: url('x.jpg'); }
  34. ```
  35. <!-- prettier-ignore -->
  36. ```css
  37. @import url("foo.css");
  38. ```
  39. <!-- prettier-ignore -->
  40. ```css
  41. @document domain('http://www.w3.org/');
  42. ```
  43. <!-- prettier-ignore -->
  44. ```css
  45. @font-face { font-family: "foo"; src: url("foo.ttf"); }
  46. ```
  47. <!-- prettier-ignore -->
  48. ```css
  49. @-moz-document url-prefix('') {}
  50. ```
  51. ### `"never"`
  52. Urls _must never_ be quoted.
  53. The following patterns are considered violations:
  54. <!-- prettier-ignore -->
  55. ```css
  56. a { background: url('x.jpg'); }
  57. ```
  58. <!-- prettier-ignore -->
  59. ```css
  60. @import url("foo.css");
  61. ```
  62. <!-- prettier-ignore -->
  63. ```css
  64. @font-face { font-family: "foo"; src: url('foo.ttf'); }
  65. ```
  66. The following patterns are _not_ considered violations:
  67. <!-- prettier-ignore -->
  68. ```css
  69. a { background: url(x.jpg); }
  70. ```
  71. <!-- prettier-ignore -->
  72. ```css
  73. @import url(foo.css);
  74. ```
  75. <!-- prettier-ignore -->
  76. ```css
  77. @font-face { font-family: 'foo'; src: url(foo.ttf); }
  78. ```
  79. ## Optional secondary options
  80. ### `except: ["empty"]`
  81. Reverse the primary option for functions that have no arguments.
  82. For example, with `"always"`.
  83. The following patterns are _not_ considered violations:
  84. <!-- prettier-ignore -->
  85. ```css
  86. @-moz-document url-prefix() {}
  87. ```