Skip to content

Commit 3417b46

Browse files
committed
🎨 Adds option to use Adventure theme with own img (#655)
1 parent 9b33a6e commit 3417b46

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/styles/color-themes.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ html[data-theme="dashy-docs"] {
13571357
}
13581358
}
13591359

1360-
html[data-theme="adventure"] {
1360+
html[data-theme="adventure"], html[data-theme="adventure-basic"] {
13611361
// Main colors
13621362
--primary: #ffffffe6;
13631363
--background: #0b1021;
@@ -1376,11 +1376,6 @@ html[data-theme="adventure"] {
13761376
--item-group-shadow: none;
13771377
--item-group-background: none;
13781378
--item-group-outer-background: none;
1379-
// Background Image
1380-
body {
1381-
background: url('https://i.ibb.co/wdqSsGh/adventure-bg.jpg');
1382-
background-size: cover;
1383-
}
13841379
// Remove background from certain components
13851380
div.home, div.options-outer, div.options-container, section.filter-container,
13861381
section.settings-outer, div.show-hide-container.hide-btn, div.show-hide-container.show-btn {
@@ -1401,6 +1396,14 @@ html[data-theme="adventure"] {
14011396
}
14021397
}
14031398

1399+
html[data-theme="adventure"] {
1400+
// Background Image
1401+
body {
1402+
background: url('https://i.ibb.co/wdqSsGh/adventure-bg.jpg');
1403+
background-size: cover;
1404+
}
1405+
}
1406+
14041407
html[data-theme="color-block"] {
14051408
// Main colors
14061409
--primary: #E94560;

src/utils/defaults.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ module.exports = {
8282
'material-dark-original',
8383
'high-contrast-dark',
8484
'high-contrast-light',
85+
'adventure-basic',
8586
'basic',
8687
],
8788
/* Default color options for the theme configurator swatches */

0 commit comments

Comments
 (0)