Skip to content

Commit 15b00d2

Browse files
committed
Namespace the box classes a bit
Avoid conflicting with other generic names
1 parent b094467 commit 15b00d2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

custom/style.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,28 +81,28 @@ code {
8181
text-transform: uppercase;
8282
}
8383

84-
.box.tip {
84+
.tip-box {
8585
border-color: #42b983;
8686
background-color: var(--quote-bg);
8787
}
8888

89-
.box.warning {
89+
.warning-box {
9090
border-left-color: var(--c-warning);
9191
background-color: rgba(255, 229, 100, 0.2);
9292
color: var(--c-warning-text);
9393
}
9494

95-
.box.warning > .box-title {
95+
.warning-box > .box-title {
9696
color: var(--c-warning-title);
9797
}
9898

99-
.box.danger {
99+
.danger-box {
100100
border-left-color: var(--c-danger);
101101
background-color: rgba(255, 0, 0, .15);
102102
color: var(--c-danger-text);
103103
}
104104

105-
.box.danger > .box-title {
105+
.danger-box > .box-title {
106106
color: var(--c-danger-title);
107107
}
108108

preproc/src/admonitions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ impl<'a, Iter: Iterator<Item = Event<'a>>> Iterator for AdmonitionsGenerator<'a,
8080

8181
evt = Event::Html(
8282
if title.is_empty() {
83-
format!("<div class=\"box {kind}\">")
83+
format!("<div class=\"box {kind}-box\">")
8484
} else {
85-
format!("<div class=\"box {kind}\"><p class=\"box-title\">{title}</p>")
85+
format!("<div class=\"box {kind}-box\"><p class=\"box-title\">{title}</p>")
8686
}
8787
.into(),
8888
);

0 commit comments

Comments
 (0)