Skip to content

Commit 5ebf1d6

Browse files
Merge pull request #5621 from ashviniwe/admonitions-text
Fix text size inside admonition boxes
2 parents a3ebeeb + b5265ba commit 5ebf1d6

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

en/base.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ markdown_extensions:
9393
extra_css:
9494
- assets/libs/fontawesome-free-6.4.2-web/css/all.min.css
9595
- assets/css/theme.css
96+
- assets/css/admonition.css
9697
- https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/build.css
9798

9899
extra_javascript:
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/**
2+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3+
*
4+
* WSO2 LLC. licenses this file to you under the Apache License,
5+
* Version 2.0 (the "License"); you may not use this file except
6+
* in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing,
12+
* software distributed under the License is distributed on an
13+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
* KIND, either express or implied. See the License for the
15+
* specific language governing permissions and limitations
16+
* under the License.
17+
*/
18+
19+
.md-typeset .admonition,
20+
.md-typeset .admonition.note,
21+
.md-typeset .admonition.abstract,
22+
.md-typeset .admonition.info,
23+
.md-typeset .admonition.tip,
24+
.md-typeset .admonition.success,
25+
.md-typeset .admonition.question,
26+
.md-typeset .admonition.warning,
27+
.md-typeset .admonition.failure,
28+
.md-typeset .admonition.danger,
29+
.md-typeset .admonition.bug,
30+
.md-typeset .admonition.example,
31+
.md-typeset .admonition.quote,
32+
.md-typeset .admonition.important {
33+
font-size: 14px;
34+
}
35+
36+
[data-md-color-scheme="slate"] .md-typeset .admonition,
37+
[data-md-color-scheme="slate"] .md-typeset .admonition.note,
38+
[data-md-color-scheme="slate"] .md-typeset .admonition.abstract,
39+
[data-md-color-scheme="slate"] .md-typeset .admonition.info,
40+
[data-md-color-scheme="slate"] .md-typeset .admonition.tip,
41+
[data-md-color-scheme="slate"] .md-typeset .admonition.success,
42+
[data-md-color-scheme="slate"] .md-typeset .admonition.question,
43+
[data-md-color-scheme="slate"] .md-typeset .admonition.warning,
44+
[data-md-color-scheme="slate"] .md-typeset .admonition.failure,
45+
[data-md-color-scheme="slate"] .md-typeset .admonition.danger,
46+
[data-md-color-scheme="slate"] .md-typeset .admonition.bug,
47+
[data-md-color-scheme="slate"] .md-typeset .admonition.example,
48+
[data-md-color-scheme="slate"] .md-typeset .admonition.quote,
49+
[data-md-color-scheme="slate"] .md-typeset .admonition.important {
50+
background-color: #0000002b;
51+
color: #ffffffa6;
52+
}

0 commit comments

Comments
 (0)