Skip to content

Commit 1aa069f

Browse files
committed
main
1 parent d545886 commit 1aa069f

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

docs/document/Avalonia/docs/1. Fundamentals/1. How Avalonia Loads.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@ class Program
4646
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4747
x:Class="AvaloniaApplication.App"
4848
xmlns:local="using:AvaloniaApplication"
49-
RequestedThemeVariant="Default"> <!-- config you theme variant here --> <!-- [!code highlight] -->
49+
RequestedThemeVariant="Default"> <!-- config you theme variant here --> <!-- [!code highlight] -->
5050
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
5151

52-
<Application.DataTemplates> <!-- [!code highlight] -->
53-
<local:ViewLocator/> <!-- [!code highlight] -->
54-
</Application.DataTemplates> <!-- [!code highlight] -->
52+
<Application.DataTemplates> <!-- [!code highlight] -->
53+
<local:ViewLocator/> <!-- [!code highlight] -->
54+
</Application.DataTemplates> <!-- [!code highlight] -->
5555

56-
<Application.Styles> <!-- import styles here --> <!-- [!code highlight] -->
57-
<FluentTheme /> <!-- [!code highlight] -->
58-
</Application.Styles> <!-- [!code highlight] -->
59-
60-
<Application.Resources> <!-- [!code highlight] -->
61-
<SolidColorBrush x:Key="BrightBlueBrush">#7f98c7</SolidColorBrush> <!-- [!code highlight] -->
62-
<SolidColorBrush x:Key="BrightBlueWhenHoverBrush">#98acd0</SolidColorBrush> <!-- [!code highlight] -->
63-
</Application.Resources> <!-- [!code highlight] -->
56+
<Application.Styles> <!-- import styles here --> <!-- [!code highlight] -->
57+
<FluentTheme /> <!-- [!code highlight] -->
58+
</Application.Styles> <!-- [!code highlight] -->
59+
60+
<Application.Resources> <!-- [!code highlight] -->
61+
<SolidColorBrush x:Key="BrightBlueBrush">#7f98c7</SolidColorBrush> <!-- [!code highlight] -->
62+
<SolidColorBrush x:Key="BrightBlueWhenHoverBrush">#98acd0</SolidColorBrush> <!-- [!code highlight] -->
63+
</Application.Resources> <!-- [!code highlight] -->
6464

6565
</Application>
6666
```

docs/document/Avalonia/docs/1. Fundamentals/2. XAML Essentials.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The default namespace is imported without name, which mean its members are impor
2222
Generally the default is avalonia namespace which contains built-in components like `Button`, `TextBlock`.
2323

2424
```xml
25-
<Application xmlns="https://github.com/avaloniaui" <!-- [!code highlight] -->
25+
<Application xmlns="https://github.com/avaloniaui" <!-- [!code highlight] -->
2626
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2727
x:Class="AvaloniaApplication.App"
2828
xmlns:local="using:AvaloniaApplication"
@@ -39,12 +39,12 @@ Generally the default is avalonia namespace which contains built-in components l
3939
<Application xmlns="https://github.com/avaloniaui"
4040
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4141
x:Class="AvaloniaApplication.App"
42-
xmlns:local="using:AvaloniaApplication" <!-- [!code highlight] -->
42+
xmlns:local="using:AvaloniaApplication" <!-- [!code highlight] -->
4343
RequestedThemeVariant="Default">
4444
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
4545

4646
<Application.DataTemplates>
47-
<local:ViewLocator/> <!-- use `local` here to access types from it --> <!-- [!code highlight] -->
47+
<local:ViewLocator/> <!-- use `local` here to access types from it --> <!-- [!code highlight] -->
4848
</Application.DataTemplates>
4949
</Application>
5050
```

docs/document/Avalonia/docs/2. Styling/AXAML/Adding New Style.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Style template ships with a portion for previewer where you can add testing cont
1313
```xml
1414
<Styles xmlns="https://github.com/avaloniaui"
1515
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
16-
<Design.PreviewWith> <!-- [!code highlight] -->
17-
<Border Padding="20"> <!-- [!code highlight] -->
18-
<!-- Add Controls for Previewer Here --> <!-- [!code highlight] -->
19-
</Border> <!-- [!code highlight] -->
20-
</Design.PreviewWith> <!-- [!code highlight] -->
16+
<Design.PreviewWith> <!-- [!code highlight] -->
17+
<Border Padding="20"> <!-- [!code highlight] -->
18+
<!-- Add Controls for Previewer Here --> <!-- [!code highlight] -->
19+
</Border> <!-- [!code highlight] -->
20+
</Design.PreviewWith> <!-- [!code highlight] -->
2121

2222
<!-- Add Styles Here -->
2323
</Styles>
@@ -31,11 +31,11 @@ Contained styling is some key-value pair on properties.
3131
```xml
3232
<Styles xmlns="https://github.com/avaloniaui"
3333
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
34-
<Design.PreviewWith> <!-- [!code highlight] -->
35-
<Border Padding="20"> <!-- [!code highlight] -->
36-
<!-- Add Controls for Previewer Here --> <!-- [!code highlight] -->
37-
</Border> <!-- [!code highlight] -->
38-
</Design.PreviewWith> <!-- [!code highlight] -->
34+
<Design.PreviewWith> <!-- [!code highlight] -->
35+
<Border Padding="20"> <!-- [!code highlight] -->
36+
<!-- Add Controls for Previewer Here --> <!-- [!code highlight] -->
37+
</Border> <!-- [!code highlight] -->
38+
</Design.PreviewWith> <!-- [!code highlight] -->
3939

4040
<!-- Add Styles Here -->
4141
<Style Selector="TextBlock.h1"> <!-- [!code ++] -->

docs/document/Avalonia/docs/2. Styling/AXAML/Importing Styles.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
1010
x:Class="AvaloniaApplication.MyUserControl">
1111

12-
<UserControl.Styles> <!-- [!code highlight] -->
13-
<StyleInclude Source="MyStyles.axaml"></StyleInclude> <!-- [!code highlight] -->
14-
</UserControl.Styles> <!-- [!code highlight] -->
12+
<UserControl.Styles> <!-- [!code highlight] -->
13+
<StyleInclude Source="MyStyles.axaml"></StyleInclude> <!-- [!code highlight] -->
14+
</UserControl.Styles> <!-- [!code highlight] -->
1515

1616
<TextBlock Text="Hello from template" TextAlignment="Center" Width="200" Height="20"/>
1717

docs/document/HTML & CSS/docs/1. Web Development Fundamentals/CSS/1. Style Selectors.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</style>
1212
</head>
1313
<body>
14-
<p id="foo">foo</p> <!-- [!code highlight] -->
14+
<p id="foo">foo</p> <!-- [!code highlight] -->
1515
</body>
1616
```
1717

@@ -160,7 +160,7 @@ p+a {
160160

161161
```html
162162
<p>foo</p>
163-
<a></a> <!-- matched! --> <!-- [!code highlight] -->
163+
<a></a> <!-- matched! --> <!-- [!code highlight] -->
164164
<a></a> <!-- not matched --> <!-- [!code error] -->
165165
```
166166

@@ -182,8 +182,8 @@ p~a {
182182

183183
```html
184184
<p>foo</p>
185-
<a></a> <!-- matched! --> <!-- [!code highlight] -->
186-
<a></a> <!-- matched! --> <!-- [!code highlight] -->
185+
<a></a> <!-- matched! --> <!-- [!code highlight] -->
186+
<a></a> <!-- matched! --> <!-- [!code highlight] -->
187187
```
188188

189189
## Pseudo class
@@ -212,12 +212,12 @@ The semantic is the same as class selector, to be applied on a element itself.
212212
</head>
213213
<body>
214214
<p>
215-
<a></a> <!-- first direct child can be matched --> <!-- [!code highlight] -->
215+
<a></a> <!-- first direct child can be matched --> <!-- [!code highlight] -->
216216
<a></a> <!-- nah --> <!-- [!code error] -->
217217
</p>
218218
<div>
219-
<a></a> <!-- matched --> <!-- [!code highlight] -->
220-
<p></p> <!-- matched --> <!-- [!code highlight] -->
219+
<a></a> <!-- matched --> <!-- [!code highlight] -->
220+
<p></p> <!-- matched --> <!-- [!code highlight] -->
221221
</div>
222222
</body>
223223
```
@@ -288,8 +288,8 @@ So the part of the content can be styled just like an element but not actually a
288288
</style>
289289
</head>
290290
<body>
291-
<p>foo</p> <!-- `f` should be bold --> <!-- [!code highlight] -->
292-
<p id="foo">foo</p> <!-- should be `^foo\n$` and `f` should be bold --> <!-- [!code highlight] -->
291+
<p>foo</p> <!-- `f` should be bold --> <!-- [!code highlight] -->
292+
<p id="foo">foo</p> <!-- should be `^foo\n$` and `f` should be bold --> <!-- [!code highlight] -->
293293
</body>
294294
```
295295

@@ -328,10 +328,10 @@ So, the priority of a css style depends on
328328

329329
<body>
330330
<div>
331-
<p id="foo" class="foo"> <!-- [!code highlight] -->
332-
It's pink because id is more specific <!-- [!code highlight] -->
333-
It's also italic. <!-- [!code highlight] -->
334-
</p> <!-- [!code highlight] -->
331+
<p id="foo" class="foo"> <!-- [!code highlight] -->
332+
It's pink because id is more specific <!-- [!code highlight] -->
333+
It's also italic. <!-- [!code highlight] -->
334+
</p> <!-- [!code highlight] -->
335335
</div>
336336
</body>
337337
</html>
@@ -357,9 +357,9 @@ So, the priority of a css style depends on
357357

358358
<body>
359359
<div>
360-
<p id="foo" class="foo"> <!-- [!code highlight] -->
360+
<p id="foo" class="foo"> <!-- [!code highlight] -->
361361
Now it's yellow. <!-- [!code ++] -->
362-
</p> <!-- [!code highlight] -->
362+
</p> <!-- [!code highlight] -->
363363
</div>
364364
</body>
365365
</html>
@@ -382,7 +382,7 @@ Some styles of an element are inherited from its parent by default, some are not
382382
</head>
383383
<body>
384384
<div>
385-
<p>foo is pink; <em>bar</em> is also pink</p> <!-- bar has no border since it doesn't make sense --> <!-- [!code highlight] -->
385+
<p>foo is pink; <em>bar</em> is also pink</p> <!-- bar has no border since it doesn't make sense --> <!-- [!code highlight] -->
386386
</div>
387387
</body>
388388
</html>

docs/document/HTML & CSS/docs/1. Web Development Fundamentals/HTML/Common Elements.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ List and Table are groups of related elements commonly used together.
4949
```html
5050
<body>
5151
<ul>
52-
<li>foo</li> <!-- [!code highlight] -->
53-
<li>bar</li> <!-- [!code highlight] -->
52+
<li>foo</li> <!-- [!code highlight] -->
53+
<li>bar</li> <!-- [!code highlight] -->
5454
<li>
5555
<ol>
56-
<li>1</li> <!-- [!code highlight] -->
57-
<li>2</li> <!-- [!code highlight] -->
58-
<li>3</li> <!-- [!code highlight] -->
56+
<li>1</li> <!-- [!code highlight] -->
57+
<li>2</li> <!-- [!code highlight] -->
58+
<li>3</li> <!-- [!code highlight] -->
5959
</ol>
6060
</li>
6161
</ul>

docs/document/HTML & CSS/docs/1. Web Development Fundamentals/HTML/HTML Basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ A common structure of html:
7474
<html lang="en">
7575
<head>
7676
<meta charset="UTF-8">
77-
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- [!code highlight] -->
77+
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- [!code highlight] -->
7878
<title>I am foo</title>
7979
</head>
8080
</html>

0 commit comments

Comments
 (0)