Skip to content

Commit 8aab4d7

Browse files
committed
Fix URL references in CSS
Relative URL references need to be quoted to work in Safari. Closes gh-11
1 parent fe03372 commit 8aab4d7

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

package-lock.json

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

src/main/css/asciidoctor.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,23 +408,23 @@ i.fa {
408408
}
409409

410410
i.fa.icon-caution {
411-
background-image: url(../img/octicons-16.svg#view-flame);
411+
background-image: url("../img/octicons-16.svg#view-flame");
412412
}
413413

414414
i.fa.icon-important {
415-
background-image: url(../img/octicons-16.svg#view-stop);
415+
background-image: url("../img/octicons-16.svg#view-stop");
416416
}
417417

418418
i.fa.icon-note {
419-
background-image: url(../img/octicons-16.svg#view-info);
419+
background-image: url("../img/octicons-16.svg#view-info");
420420
}
421421

422422
i.fa.icon-tip {
423-
background-image: url(../img/octicons-16.svg#view-light-bulb);
423+
background-image: url("../img/octicons-16.svg#view-light-bulb");
424424
}
425425

426426
i.fa.icon-warning {
427-
background-image: url(../img/octicons-16.svg#view-alert);
427+
background-image: url("../img/octicons-16.svg#view-alert");
428428
}
429429

430430
.doc .admonitionblock.caution td.icon {

src/main/css/settings-dark.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ html.dark-theme {
2323
--layout-switchtheme-background-color: var(--selected-background-color);
2424

2525
/* Asciidoctor */
26-
--asciidoctor-doc-embellishment-background: url(../img/doc-background-dark.svg)
26+
--asciidoctor-doc-embellishment-background: url("../img/doc-background-dark.svg")
2727
no-repeat top right / 305px 147px;
2828
--asciidoctor-code-background: rgba(177, 209, 241, 0.15);
2929
--asciidoctor-code-data-lang-color: #6e6e6e;
@@ -67,7 +67,7 @@ html.dark-theme {
6767

6868
@media screen and (max-width: 1024px) {
6969
html.dark-theme {
70-
--asciidoctor-doc-embellishment-background: url(../img/doc-background-dark.svg)
70+
--asciidoctor-doc-embellishment-background: url("../img/doc-background-dark.svg")
7171
no-repeat top right / 203px 95px;
7272
}
7373
}

src/main/css/settings.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
--selected-background-color: #191e1e;
4242

4343
/* Layout */
44-
--layout-banner-logo: url(../img/banner-logo.svg);
44+
--layout-banner-logo: url("../img/banner-logo.svg");
4545
--layout-max-width: 1400px;
4646
--layout-banner-height: 80px;
4747
--layout-border-color: var(--color-accent-1);
@@ -51,7 +51,7 @@
5151
--layout-switchtheme-button-hover-color: var(--color-accent-1);
5252

5353
/* Asciidoctor */
54-
--asciidoctor-doc-embellishment-background: url(../img/doc-background.svg)
54+
--asciidoctor-doc-embellishment-background: url("../img/doc-background.svg")
5555
no-repeat top right / 305px 147px;
5656
--asciidoctor-doc-embellishment-margin-width: 250px;
5757
--asciidoctor-doc-background-embellishment-height: 147px;
@@ -156,7 +156,7 @@
156156
@media screen and (max-width: 1024px) {
157157
:root {
158158
--toc-width: 16rem;
159-
--asciidoctor-doc-embellishment-background: url(../img/doc-background.svg)
159+
--asciidoctor-doc-embellishment-background: url("../img/doc-background.svg")
160160
no-repeat top right / 203px 95px;
161161
--asciidoctor-doc-embellishment-margin-width: 140px;
162162
}

0 commit comments

Comments
 (0)