Skip to content

Commit 6a288ae

Browse files
authored
docs: Merge pull request #22211 from unoplatform/dev/juno/content-block-color-update
chore: content block color update
2 parents 4ec15cb + ad66d57 commit 6a288ae

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

doc/articles/controls/WebView.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
uid: Uno.Controls.WebView2
33
---
44

5-
# `WebView2` (`WebView`)
5+
# WebView2 (WebView)
66

77
> Uno Platform supports two `WebView` controls - the `WebView2` control and the legacy `WebView`. For new development, we strongly recommend `WebView2` as it will get further improvements in the future.
88

doc/templates/uno/component/alerts.scss

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use 'sass:color';
12
@use '../variables' as *;
23

34
.alert {
@@ -18,3 +19,35 @@
1819
}
1920
}
2021
}
22+
23+
// DocFX alert blocks styling
24+
@mixin alert-block($bg-color, $border-color, $text-color) {
25+
background-color: $bg-color;
26+
border-left: 4px solid $border-color;
27+
padding: 16px 20px;
28+
margin: 16px 0;
29+
border-radius: 4px;
30+
31+
h5 {
32+
color: $text-color;
33+
margin-top: 0;
34+
margin-bottom: 8px;
35+
font-weight: 600;
36+
}
37+
38+
p:last-child {
39+
margin-bottom: 0;
40+
}
41+
}
42+
43+
.NOTE, .TIP {
44+
@include alert-block(lighten($blue, 40%), $blue, $blue);
45+
}
46+
47+
.IMPORTANT, .WARNING {
48+
@include alert-block(lighten($orange, 40%), $orange, $orange);
49+
}
50+
51+
.CAUTION {
52+
@include alert-block(lighten($red, 40%), $red, $red);
53+
}

doc/templates/uno/styles/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/templates/uno/styles/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)