diff --git a/en/base.yml b/en/base.yml index 25ec7abb4f..5a32fffa8c 100644 --- a/en/base.yml +++ b/en/base.yml @@ -93,6 +93,7 @@ markdown_extensions: extra_css: - assets/libs/fontawesome-free-6.4.2-web/css/all.min.css - assets/css/theme.css + - assets/css/admonition.css - https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/build.css extra_javascript: diff --git a/en/theme/material/assets/css/admonition.css b/en/theme/material/assets/css/admonition.css new file mode 100644 index 0000000000..8a5e72f9ef --- /dev/null +++ b/en/theme/material/assets/css/admonition.css @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com). + * + * WSO2 LLC. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +.md-typeset .admonition, +.md-typeset .admonition.note, +.md-typeset .admonition.abstract, +.md-typeset .admonition.info, +.md-typeset .admonition.tip, +.md-typeset .admonition.success, +.md-typeset .admonition.question, +.md-typeset .admonition.warning, +.md-typeset .admonition.failure, +.md-typeset .admonition.danger, +.md-typeset .admonition.bug, +.md-typeset .admonition.example, +.md-typeset .admonition.quote, +.md-typeset .admonition.important { + font-size: 16px; +} + +[data-md-color-scheme="slate"] .md-typeset .admonition, +[data-md-color-scheme="slate"] .md-typeset .admonition.note, +[data-md-color-scheme="slate"] .md-typeset .admonition.abstract, +[data-md-color-scheme="slate"] .md-typeset .admonition.info, +[data-md-color-scheme="slate"] .md-typeset .admonition.tip, +[data-md-color-scheme="slate"] .md-typeset .admonition.success, +[data-md-color-scheme="slate"] .md-typeset .admonition.question, +[data-md-color-scheme="slate"] .md-typeset .admonition.warning, +[data-md-color-scheme="slate"] .md-typeset .admonition.failure, +[data-md-color-scheme="slate"] .md-typeset .admonition.danger, +[data-md-color-scheme="slate"] .md-typeset .admonition.bug, +[data-md-color-scheme="slate"] .md-typeset .admonition.example, +[data-md-color-scheme="slate"] .md-typeset .admonition.quote, +[data-md-color-scheme="slate"] .md-typeset .admonition.important { + background-color: #0000002b; + color: #ffffffa6; +} \ No newline at end of file