From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pl/web/css/@document/index.html | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 files/pl/web/css/@document/index.html (limited to 'files/pl/web/css/@document/index.html') diff --git a/files/pl/web/css/@document/index.html b/files/pl/web/css/@document/index.html new file mode 100644 index 0000000000..75889861b3 --- /dev/null +++ b/files/pl/web/css/@document/index.html @@ -0,0 +1,46 @@ +--- +title: '@document' +slug: Web/CSS/@document +tags: + - CSS + - CSS At-rule +translation_of: Web/CSS/@document +--- +

{{ CSSRef() }}

+ +

Podsumowanie

+ +

Reguła @-moz-document jest regułą @ ograniczającą reguły zawartych w sobie stylów bazując na adresie URL dokumentu. Jest stworzona głównie dla stylów użytkownika.

+ +

Składnia

+ +

Przykłady

+ +

Możesz tego użyć w swoim pliku userContent.css:

+ +
@document url(http://www.w3.org/),
+               url-prefix(http://www.w3.org/Style/),
+               domain(mozilla.org)
+{
+  /* Reguły CSS  dotyczą tutaj:
+     + Strony "http://www.w3.org/".
+     + Strony, której URL rozpoczyna się "http://www.w3.org/Style/"
+     + Każdej strony, dla której URL domeny zawiera "mozilla.org" lub kończy się
+       ".mozilla.org"
+   */
+
+  /* zrobienie powyższych stron potwornymi */
+  body { color: purple; background: yellow; }
+}
+ +

Specyfikacje

+ + + +

Zgodność z przeglądarką

+ +

Dostępne od Mozilli 1.8 / Firefox 1.5.

+ +
 
-- cgit v1.2.3-54-g00ecf