Skip to content

Commit 2f0db7c

Browse files
committed
Extract background image URLs properties
Extract image properties to their own element in an attempt to fix Safari issues. See gh-38
1 parent 0641e35 commit 2f0db7c

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

src/main/css/asciidoctor.css

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
/* Doc background embellishment */
3737

3838
#doc {
39-
background: url("../img/doc-background.svg") no-repeat top right / 305px 147px;
39+
background: no-repeat top right / 305px 147px;
40+
background-image: url("../img/doc-background.svg");
4041
}
4142

4243
.doc #header {
@@ -91,7 +92,7 @@
9192
}
9293

9394
.doc h2 {
94-
font-size: 2.0em;
95+
font-size: 2em;
9596
}
9697

9798
.doc h3 {
@@ -925,18 +926,18 @@ i.fa.icon-warning {
925926
/* Responsive and Dark Theme Overrides */
926927

927928
html.dark-theme #doc {
928-
background: url("../img/doc-background-dark.svg") no-repeat top right / 305px
929-
147px;
929+
background: no-repeat top right / 305px 147px;
930+
background-image: url("../img/doc-background-dark.svg");
930931
}
931932

932933
@media screen and (max-width: 1024px) {
933934
#doc {
934-
background: url("../img/doc-background.svg") no-repeat top right / 203px
935-
95px;
935+
background: no-repeat top right / 203px 95px;
936+
background-image: url("../img/doc-background.svg");
936937
}
937938
html.dark-theme #doc {
938-
background: url("../img/doc-background-dark.svg") no-repeat top right /
939-
203px 95px;
939+
background: no-repeat top right / 203px 95px;
940+
background-image: url("../img/doc-background-dark.svg");
940941
}
941942
}
942943

src/main/css/layout.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
#banner {
2424
height: 100%;
25-
background: url("../img/banner-logo.svg") no-repeat top
26-
var(--layout-banner-logo-offset) left var(--layout-banner-logo-offset) /
27-
auto var(--layout-banner-logo-height);
25+
background: no-repeat top var(--layout-banner-logo-offset) left
26+
var(--layout-banner-logo-offset) / auto var(--layout-banner-logo-height);
27+
background-image: url("../img/banner-logo.svg");
2828
}
2929

3030
#doc {

src/main/css/toc.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ body.fixed-toc #toc {
101101
#back-to-index a::before {
102102
content: "";
103103
filter: var(--toc-back-to-index-filter);
104-
background: url("../img/octicons-16.svg#view-chevron-left") no-repeat center /
105-
16px 16px;
104+
background: no-repeat center / 16px 16px;
105+
background-image: url("../img/octicons-16.svg#view-chevron-left");
106106
display: block;
107107
position: absolute;
108108
min-width: 16px;

0 commit comments

Comments
 (0)