Skip to content

Commit 2bef443

Browse files
committed
CSS
1 parent 6a33036 commit 2bef443

7 files changed

Lines changed: 187 additions & 3 deletions

File tree

709 KB
Loading
50.2 KB
Loading
31 KB
Loading
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>CSS - ein Stil f&uuml;r alle</title>
6+
<style>
7+
/* From extension vscode.github */
8+
/*---------------------------------------------------------------------------------------------
9+
* Copyright (c) Microsoft Corporation. All rights reserved.
10+
* Licensed under the MIT License. See License.txt in the project root for license information.
11+
*--------------------------------------------------------------------------------------------*/
12+
13+
.vscode-dark img[src$=\#gh-light-mode-only],
14+
.vscode-light img[src$=\#gh-dark-mode-only],
15+
.vscode-high-contrast:not(.vscode-high-contrast-light) img[src$=\#gh-light-mode-only],
16+
.vscode-high-contrast-light img[src$=\#gh-dark-mode-only] {
17+
display: none;
18+
}
19+
20+
</style>
21+
22+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/markdown.css">
23+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/highlight.css">
24+
<style>
25+
body {
26+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
27+
font-size: 14px;
28+
line-height: 1.6;
29+
}
30+
</style>
31+
<style>
32+
.task-list-item {
33+
list-style-type: none;
34+
}
35+
36+
.task-list-item-checkbox {
37+
margin-left: -20px;
38+
vertical-align: middle;
39+
pointer-events: none;
40+
}
41+
</style>
42+
<style>
43+
:root {
44+
--color-note: #0969da;
45+
--color-tip: #1a7f37;
46+
--color-warning: #9a6700;
47+
--color-severe: #bc4c00;
48+
--color-caution: #d1242f;
49+
--color-important: #8250df;
50+
}
51+
52+
</style>
53+
<style>
54+
@media (prefers-color-scheme: dark) {
55+
:root {
56+
--color-note: #2f81f7;
57+
--color-tip: #3fb950;
58+
--color-warning: #d29922;
59+
--color-severe: #db6d28;
60+
--color-caution: #f85149;
61+
--color-important: #a371f7;
62+
}
63+
}
64+
65+
</style>
66+
<style>
67+
.markdown-alert {
68+
padding: 0.5rem 1rem;
69+
margin-bottom: 16px;
70+
color: inherit;
71+
border-left: .25em solid #888;
72+
}
73+
74+
.markdown-alert>:first-child {
75+
margin-top: 0
76+
}
77+
78+
.markdown-alert>:last-child {
79+
margin-bottom: 0
80+
}
81+
82+
.markdown-alert .markdown-alert-title {
83+
display: flex;
84+
font-weight: 500;
85+
align-items: center;
86+
line-height: 1
87+
}
88+
89+
.markdown-alert .markdown-alert-title .octicon {
90+
margin-right: 0.5rem;
91+
display: inline-block;
92+
overflow: visible !important;
93+
vertical-align: text-bottom;
94+
fill: currentColor;
95+
}
96+
97+
.markdown-alert.markdown-alert-note {
98+
border-left-color: var(--color-note);
99+
}
100+
101+
.markdown-alert.markdown-alert-note .markdown-alert-title {
102+
color: var(--color-note);
103+
}
104+
105+
.markdown-alert.markdown-alert-important {
106+
border-left-color: var(--color-important);
107+
}
108+
109+
.markdown-alert.markdown-alert-important .markdown-alert-title {
110+
color: var(--color-important);
111+
}
112+
113+
.markdown-alert.markdown-alert-warning {
114+
border-left-color: var(--color-warning);
115+
}
116+
117+
.markdown-alert.markdown-alert-warning .markdown-alert-title {
118+
color: var(--color-warning);
119+
}
120+
121+
.markdown-alert.markdown-alert-tip {
122+
border-left-color: var(--color-tip);
123+
}
124+
125+
.markdown-alert.markdown-alert-tip .markdown-alert-title {
126+
color: var(--color-tip);
127+
}
128+
129+
.markdown-alert.markdown-alert-caution {
130+
border-left-color: var(--color-caution);
131+
}
132+
133+
.markdown-alert.markdown-alert-caution .markdown-alert-title {
134+
color: var(--color-caution);
135+
}
136+
137+
</style>
138+
139+
</head>
140+
<body class="vscode-body vscode-light">
141+
<meta charset="utf-8" />
142+
<title>CSS</title>
143+
<link rel="stylesheet" href="https://Hi2272.github.io/StyleMD.css">
144+
<h1 id="css---ein-stil-für-alle">CSS - ein Stil für alle</h1>
145+
<p>Wir erzeugen eine HTML-Datei, bei der</p>
146+
<ul>
147+
<li>alle Überschriften h1 rot auf gelbem Grund ist</li>
148+
<li>alle Bilder einen blauen Rahmen haben und 90% breit sind.</li>
149+
</ul>
150+
<p><img src="Bild1.png" alt="alt text"></p>
151+
<p>In der HTML-Datei siehst du nichts von diesen Formatierungen:</p>
152+
<p><img src="Bild2.png" alt="alt text"></p>
153+
<p>Sie werden in einer CSS (Cascading Style Sheet)-Datei eingefügt und gelten für alle Überschriften h1 und alle Bilder img:<br>
154+
<img src="Bild3.png" alt="alt text"></p>
155+
<p>Öffne die Seite <a href="https://ladigitale.dev/digipen/editeur.html" target="_blank">Digipen by LaDigitale</a> und erstelle eine Seite für deine Heimatstadt nach diesem Muster.</p>
156+
<p>Hinweis: Die <strong>{}</strong>-Zeichen bekommst du mit der Tastenkombination <strong>AltGr 7</strong> und <strong>AltGr 0</strong>.</p>
157+
158+
159+
160+
</body>
161+
</html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<meta charset="utf-8" />
2+
<title>CSS</title>
3+
<link rel="stylesheet" href="https://Hi2272.github.io/StyleMD.css">
4+
5+
6+
# CSS - ein Stil für alle
7+
Wir erzeugen eine HTML-Datei, bei der
8+
- alle Überschriften h1 rot auf gelbem Grund ist
9+
- alle Bilder einen blauen Rahmen haben und 90% breit sind.
10+
11+
![alt text](Bild1.png)
12+
13+
In der HTML-Datei siehst du nichts von diesen Formatierungen:
14+
15+
![alt text](Bild2.png)
16+
17+
Sie werden in einer CSS (Cascading Style Sheet)-Datei eingefügt und gelten für alle Überschriften h1 und alle Bilder img:
18+
![alt text](Bild3.png)
19+
20+
Öffne die Seite <a href="https://ladigitale.dev/digipen/editeur.html" target="_blank">Digipen by LaDigitale</a> und erstelle eine Seite für deine Heimatstadt nach diesem Muster.
21+
22+
Hinweis: Die **{}**-Zeichen bekommst du mit der Tastenkombination **AltGr 7** und **AltGr 0**.

00Informatik/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ <h2 id="html">HTML</h2>
195195
<a href="00Informatik7/HTMLOrderedList/index.html">Nummerierte Listen in HTML</a><br>
196196
<a href="00Informatik7/HTMLImg/index.html">Bilder in HTML</a><br>
197197
<a href="00Informatik7/HTMLInfoSeite/index.html">Deine eigene Homepage</a><br>
198-
<a href="00Informatik7/HTMLTest/index.html">HTML Abschlusstest</a></p>
198+
<a href="00Informatik7/HTMLTest/index.html">HTML Abschlusstest</a><br>
199+
<a href="00Informatik7/CSS/index.html">CSS - ein Stil für alle</a></p>
199200
<p><a href="https://netzwerke.hauptquartier.eu/abenteuer-archiv">Die Abenteuer von Kommissar Smith</a></p>
200201
<p><a href="00Informatik7/Biber/index.html">Informatik-Biber</a></p>
201202
<h1 id="mikrocontroller">Mikrocontroller</h1>

00Informatik/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
[Nummerierte Listen in HTML](00Informatik7/HTMLOrderedList/index.html)
6969
[Bilder in HTML](00Informatik7/HTMLImg/index.html)
7070
[Deine eigene Homepage](00Informatik7/HTMLInfoSeite/index.html)
71-
[HTML Abschlusstest](00Informatik7/HTMLTest/index.html)
72-
71+
[HTML Abschlusstest](00Informatik7/HTMLTest/index.html)
72+
[CSS - ein Stil für alle](00Informatik7/CSS/index.html)
7373

7474
[Die Abenteuer von Kommissar Smith](https://netzwerke.hauptquartier.eu/abenteuer-archiv)
7575

0 commit comments

Comments
 (0)