Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/components/admonition.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/core-styles.docs.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/lib/_imports/components/admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
@mixin message--has-icon---message--type-info;
@mixin message--type-info---message--scope-section;
}
.admonition:is(.caution, .important) {
.admonition:is(.warning, .important) {
@mixin message--has-icon---message--type-warning;
@mixin message--type-warning---message--scope-section;
}
.admonition:is(.warning, .error, .danger) {
.admonition:is(.caution, .error, .danger) {
@mixin message--has-icon---message--type-error;
@mixin message--type-error---message--scope-section;
}
/* To change certain icons */
.admonition:is(.tip)::before { content: "☀"; }
.admonition:is(.warning)::before { content: "𝖷"; }
.admonition:is(.caution)::before { content: "𝖷"; }
.admonition:is(.error, .danger)::before { content: "ⓧ"; }

/* To adjust spacing for certain elements */
Expand Down
4 changes: 2 additions & 2 deletions src/lib/_imports/components/admonition/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ context:
types:
- name: caution
title: Caution
content: Use a caution box when following the instructions could result in the loss of data that can be easily restored or replicated. This is good for items such as informing users about the <code>/scratch</code> purge policy. It can also be used to indicate behaviors which could result in account suspension.
content: Use a caution box when following the instructions could result in immediate data loss. Cautions can also be used for extremely important notifications such as the retirement of a machine or a notice of data loss on the machine. These boxes should be used the least.
- name: warning
title: Warning
content: Use a warning box when following the instructions could result in immediate data loss. Warnings can also be used for extremely important notifications such as the retirement of a machine or a notice of data loss on the machine. These boxes should be used the least.
content: Use a warning box when following the instructions could result in the loss of data that can be easily restored or replicated. This is good for items such as informing users about the <code>/scratch</code> purge policy. It can also be used to indicate behaviors which could result in account suspension.
- name: tip
title: Tip
content: Use a tip box when giving a hint or command that will make things easier for the user or make things more productive. This is good for tips such as how to display the <code>taccinfo</code> box at will in the terminal.
Expand Down