Skip to content

Commit a8c1716

Browse files
committed
added "Black And White" theme
1 parent 27b036a commit a8c1716

File tree

6 files changed

+29
-2
lines changed

6 files changed

+29
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.theme_ideas

assets/scripts/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ function themeBtn() {
134134
}
135135
}
136136

137-
138137
}
139138

140139
function closePopup(id) {

assets/styles/index.css

+10
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ body {
5454
box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 1);
5555
}
5656

57+
.themeDiv:hover {
58+
background-color: var(--container-highlight-color);
59+
cursor: pointer;
60+
}
61+
62+
.themeDiv:active {
63+
background-color: var(--container-color);
64+
box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 1);
65+
}
66+
5767

5868
.nav ul li {
5969
display: inline-block;

assets/styles/themes.css

+12
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,16 @@
2323
--container-color: rgb(28, 28, 28, 0.6);
2424
--container-inner-color: rgb(50, 50, 50, 0.2);
2525
--container-highlight-color: rgb(55, 55, 55, 0.6);
26+
}
27+
28+
.theme-blackAndWhite {
29+
--primary-color: #dbdada;
30+
--text-color: #c4c4c4;
31+
--higlight-color: #ffffff;
32+
--shadow-color: #9e9e9e;
33+
34+
--background-color: rgb(22, 22, 22);
35+
--container-color: rgb(28, 28, 28);
36+
--container-inner-color: rgb(50, 50, 50);
37+
--container-highlight-color: rgb(55, 55, 55);
2638
}

assets/themes/BlackAndWhite.png

231 KB
Loading

index.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<meta name="wot-verification" content="f29f0d03c5085b4d00aa" />
1616
</head>
1717

18-
<body class="theme-default">
18+
<body class="theme-christmas">
1919
<div id="header">
2020
<!-- <div class="logo">
2121
<img src="./assets/logo.png" alt="logo">
@@ -153,6 +153,11 @@ <h1 class="heading">Default</h1>
153153
<img src="./assets/themes/Funty.png" alt="Funty" class="themeImg">
154154
<h1 class="heading">Funty</h1>
155155
</div>
156+
157+
<div class="themeDiv container" data-theme-name="theme-blackAndWhite">
158+
<img src="./assets/themes/BlackAndWhite.png" alt="Dark" class="themeImg">
159+
<h1 class="heading">Black And White</h1>
160+
</div>
156161

157162
</div>
158163

0 commit comments

Comments
 (0)