-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(de): translate diff [b5193cf77f]
Machine translation from English using gpt-4o-2024-08-06. Source: mdn/content@b5193cf System prompt: ```md You are tasked with translating MDN Web Docs content from English to German. Ensure that the translation is accurate, preserves technical terminology, and follows the rules provided below. # Rules for Translation 1. Format: - The input is a Markdown file. - The output should be a Markdown file. - Return the raw output, without wrapping it in a Markdown code block. - Keep GFM alert syntax untranslated, such as `> [!NOTE]`, `> [!WARNING]`, and `> [!CALLOUT]`. - If the input contains HTML tags wrapped in backticks (e.g. `<video>`), make sure they are wrapped in the output. 2. Language: - Prefer formal language ("Sie") over informal language ("du"). 3. Code blocks: - Do not translate code blocks. - Do not translate terms wrapped in backticks. 4. Macro calls: - MDN uses macros for dynamic content insertion. These macros must remain **unchanged** and not translated. - Macro calls start with `{{`, followed by the macro name, optional parameters, and end with `}}`. - Avoid invalid macro calls by ensuring curly braces, parentheses, and quotes are closed properly. 5. Technical terms and code snippets in text: - Keep technical terms like element names, attributes, and method names in **English**. Only translate the surrounding descriptive text. 6. Links and References: - Translate link descriptions, but keep the URLs and their structure intact. - Do not change the locale in URLs. 7. Glossary: - "Browser compatibility" => "Browser-Kompatibilität" - "Guide" => "Leitfaden" - "How to" => "Anleitung" # Translation Scope Translate the following Markdown content from **English** to **German** while adhering to the rules above. ```
- Loading branch information
Showing
3 changed files
with
142 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
title: "::details-content" | ||
slug: Web/CSS/::details-content | ||
l10n: | ||
sourceCommit: 19f054333148427b21bfe98e33d5c3ab1d28a516 | ||
--- | ||
|
||
{{CSSRef}} | ||
|
||
Das **`::details-content`** [CSS](/de/docs/Web/CSS) [Pseudo-Element](/de/docs/Web/CSS/Pseudo-elements) repräsentiert den erweiterbaren/zusammenklappbaren Inhalt eines {{HTMLElement("details")}} Elements. | ||
|
||
[//]: # '{{EmbedInteractiveExample("pages/tabbed/pseudo-element-details-content.html", "tabbed-shorter")}}' | ||
|
||
## Syntax | ||
|
||
```css | ||
selector::details-content | ||
``` | ||
|
||
## Beispiele | ||
|
||
### Einfaches Beispiel | ||
|
||
In diesem Beispiel wird das `::details-content` Pseudo-Element verwendet, um eine {{cssxref("background-color")}} auf den Inhalt des {{HTMLElement("details")}} Elements zu setzen. | ||
|
||
#### HTML | ||
|
||
```html | ||
<details> | ||
<summary>Click me</summary> | ||
<p>Here is some content</p> | ||
</details> | ||
``` | ||
|
||
#### CSS | ||
|
||
```css | ||
details::details-content { | ||
background-color: #a29bfe; | ||
} | ||
``` | ||
|
||
#### Resultat | ||
|
||
{{EmbedLiveSample("Basic_example", "100%", 150)}} | ||
|
||
### Transition Beispiel | ||
|
||
In diesem Beispiel wird das `::details-content` Pseudo-Element verwendet, um eine {{cssxref("transition")}} auf den Inhalt des {{HTMLElement("details")}} Elements zu setzen, sodass dieser reibungslos eingeblendet wird, wenn er erweitert wird und wieder ausblendet, wenn er zusammengeklappt wird. Um dies zu erreichen, werden zwei separate Übergänge innerhalb der `transition` Kurzform-Eigenschaft spezifiziert: | ||
|
||
- Die {{cssxref("opacity")}} Eigenschaft erhält einen grundlegenden Übergang über `600ms`, um den Ein-/Ausblendeffekt zu erzeugen. | ||
- Die {{cssxref("content-visibility")}} Eigenschaft (die zwischen `hidden` und `visible` umgeschaltet wird, wenn der `<details>` Inhalt erweitert/zusammengeklappt wird) erhält ebenfalls einen grundlegenden `600ms` Übergang, aber mit dem {{cssxref("transition-behavior")}} Wert `allow-discrete` angegeben. Dies ermöglicht dem Browser, einen Übergang auf `content-visibility` zu starten, dessen Animationsverhalten [diskret](/de/docs/Web/CSS/CSS_animated_properties#discrete) ist. Der Effekt ist, dass der Inhalt während der gesamten Dauer des Übergangs sichtbar ist, sodass andere Übergänge sichtbar werden. Wäre dieser Übergang nicht enthalten, würde der Inhalt sofort verschwinden, wenn der `<details>` Inhalt zusammengeklappt würde — Sie würden das sanfte Ausblenden nicht sehen. | ||
|
||
#### HTML | ||
|
||
```html | ||
<details> | ||
<summary>Click me</summary> | ||
<p>Here is some content</p> | ||
</details> | ||
``` | ||
|
||
#### CSS | ||
|
||
```css | ||
details::details-content { | ||
opacity: 0; | ||
transition: | ||
opacity 600ms, | ||
content-visibility 600ms allow-discrete; | ||
} | ||
|
||
details[open]::details-content { | ||
opacity: 1; | ||
} | ||
``` | ||
|
||
#### Resultat | ||
|
||
{{EmbedLiveSample("Transition_example", "100%", 150)}} | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} | ||
|
||
## Siehe auch | ||
|
||
- [`<details>`](/de/docs/Web/HTML/Element/details) | ||
- [`<summary>`](/de/docs/Web/HTML/Element/summary) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.