From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/tr/web/css/_colon_root/index.html | 60 +++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 files/tr/web/css/_colon_root/index.html (limited to 'files/tr/web/css/_colon_root') diff --git a/files/tr/web/css/_colon_root/index.html b/files/tr/web/css/_colon_root/index.html new file mode 100644 index 0000000000..26ef59586d --- /dev/null +++ b/files/tr/web/css/_colon_root/index.html @@ -0,0 +1,60 @@ +--- +title: ':root' +slug: 'Web/CSS/:root' +tags: + - CSS +translation_of: 'Web/CSS/:root' +--- +
{{CSSRef}}
+ +

:root CSS sözde-sınıfı dökümanda bulunan kök elemanı yerine geçer (yani onu temel alır). Örneğin HTML'de :root dökümanı oluşturan {{HTMLElement("html")}} öğesini temsil eder ve html seçicisi ile aynıdır, ancak önceliği daha yüksektir.

+ +
/* Dökümandaki kök elemanı seçer:
+   Bu HTML'de <html> oluyor. */
+:root {
+  background: royalblue;
+}
+ +

Sözdizimi

+ +
{{csssyntax}}
+ +

Örnek

+ +

:root global CSS değişkenleri tanımlarken kullanışlı olabilir:

+ +
:root {
+  --ana-renk: green;
+  --paragraf-boslugu: 5px 0;
+}
+
+ +

Tanımlamalar

+ + + + + + + + + + + + + + + + + + + + + +
TanımlamaDurumAçıklama
{{SpecName('CSS4 Selectors', '#root-pseudo', ':root')}}{{Spec2('CSS4 Selectors')}}Değişiklik yok.
{{SpecName('CSS3 Selectors', '#root-pseudo', ':root')}}{{Spec2('CSS3 Selectors')}}Başlangıç ​​tanımı.
+ +

Tarayıcı Uyumluluğu

+ + + +

{{Compat("css.selectors.root")}}

-- cgit v1.2.3-54-g00ecf