Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Commit 4a34a03

Browse files
authored
Merge pull request #28 from Zexlo/main
UI refresh and fixups
2 parents 89787c0 + 8c62830 commit 4a34a03

19 files changed

+294
-102
lines changed

assets/images/BG.png

39.9 KB
Loading

assets/images/BGdark.png

892 Bytes
Loading

assets/images/button.png

511 Bytes
Loading

assets/images/buttonlight.png

513 Bytes
Loading

assets/images/header.png

550 Bytes
Loading

assets/images/headerdark.png

484 Bytes
Loading

assets/images/mc3dsmoddingwiki.png

145 Bytes
Loading

css/assets/images/BG.png

-43 KB
Binary file not shown.

css/assets/images/BGdark.png

-31.7 KB
Binary file not shown.

css/styles.css

Lines changed: 70 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,67 @@ body {
55
padding: 0;
66
color: #fff;
77
text-align: center;
8+
background-color: #ffffff;
89
transition: background-color 0.3s, color 0.3s;
9-
}
10+
background: url("../assets/images/BGdark.png");
11+
zoom: 115%;
12+
13+
.card {
14+
background: url("../assets/images/button.png");
15+
width: 249px;
16+
height: 78px;
17+
padding: 1rem;
18+
text-decoration: none;
19+
color: inherit;
20+
overflow:hidden;
21+
}
22+
23+
header {
24+
padding-bottom: 0.2rem;
25+
padding-bottom: 0.1rem;
26+
background: url("../assets/images/headerdark.png");
27+
border-bottom: 3px solid #000;
28+
transition: background-color 0.3s ease; /* Transition for smooth color change */
29+
}
1030

11-
body.dark-mode {
12-
background: url("assets/images/BGdark.png");
13-
/*background-color: #000000; /* Darker background for dark mode */
14-
color: #fff; /* Ensure text color is visible in dark mode */
1531
}
1632

1733
body.light-mode {
18-
background: url("assets/images/BG.png");
19-
/* background-color: #ffffff; */
34+
background: url("../assets/images/BG.png");
35+
zoom: 115%;
2036
color: #000; /* Dark text for light mode */
21-
}
2237

23-
header.dark-mode {
24-
display: flex;
25-
align-items: center;
26-
background-color: #1e1e1e; /* Default dark color */
27-
padding: 1rem;
28-
border-bottom: 2px solid #444;
29-
transition: background-color 0.3s ease; /* Transition for smooth color change */
30-
}
38+
.card{
39+
background: url("../assets/images/buttonlight.png");
40+
width: 249px;
41+
height: 78px;
42+
padding: 1rem;
43+
text-decoration: none;
44+
color: inherit;
45+
overflow:hidden;
46+
}
3147

32-
header.light-mode {
33-
display: flex;
34-
align-items: center;
35-
background-color: #fff; /* Default dark color */
36-
padding: 1rem;
37-
border-bottom: 2px solid #444;
38-
transition: background-color 0.3s ease; /* Transition for smooth color change */
48+
header {
49+
background: url("../assets/images/header.png");
50+
border-bottom: 3px solid #000;
51+
transition: background-color 0.3s ease; /* Transition for smooth color change */
52+
}
53+
3954
}
4055

4156
.wiki-logo {
42-
max-width: 300px;
57+
text-decoration: none;
58+
max-width: 400px;
59+
padding-left: 4rem;
4360
height: auto;
44-
margin-left: 600px
4561
}
4662

4763
.settings-icon {
48-
width: 40px;
49-
height: 40px;
64+
padding-top: 2rem;
65+
padding-right: 1rem;
66+
width: 50;
67+
height: 50px;
5068
cursor: pointer;
51-
margin-left: 550px; /* Push to the right side */
5269
image-rendering: auto;
5370
image-rendering: crisp-edges;
5471
image-rendering: pixelated;
@@ -96,28 +113,23 @@ header.light-mode {
96113
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
97114
gap: 1rem;
98115
padding: 2rem;
116+
padding-top: 0.4rem;
117+
padding-left: 3rem;
99118
margin: auto;
119+
overflow:hidden;
100120
}
101121

102122
/* Card Styles */
103-
.card {
104-
background-color: #444;
105-
border: 1px solid #444;
106-
border-radius: 8px;
107-
padding: 1rem;
108-
text-decoration: none;
109-
color: inherit;
110-
}
111123

112124
.card h2 {
113-
margin: 0 0 0.5rem;
114-
font-size: 1.5rem;
125+
margin: 0 0 0.2rem;
126+
font-size: 1.1rem;
115127
}
116128

117129
.card p {
118130
margin: 0;
119131
font-size: 0.9rem;
120-
color: #bbb;
132+
color: inherit;
121133
}
122134

123135
summary {
@@ -126,27 +138,37 @@ summary {
126138

127139
/* Style the button that is used to open and close the collapsible content */
128140
.collapsible {
129-
background-color: #777;
130-
color: white;
141+
display: grid;
142+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
143+
background-color: #48494a;
144+
color: rgb(98, 98, 98);
131145
cursor: pointer;
132-
padding: 18px;
133-
width: 100%;
146+
padding: 12px;
147+
width: 40%;
148+
max-height: 100px;
134149
border: none;
135-
text-align: left;
150+
text-align: center;
136151
outline: none;
137-
font-size: 15px;
152+
font-size: 20px;
153+
transition: max-height 0.2s ease-out;
138154
}
139155

140156
/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
141157
.active, .collapsible:hover {
142-
background-color: #ccc;
158+
background-color: #4c4e4f;
143159
}
144160

145161
/* Style the collapsible content. Note: hidden by default */
146162
.content {
147-
padding: 0 18px;
148-
background-color: white;
163+
padding: 0px;
164+
color: rgb(98, 98, 98);
165+
background-color: #313233;
149166
max-height: 0;
167+
max-width: 531px;
150168
overflow: hidden;
169+
text-align: left;
170+
border: none;
171+
outline: none;
151172
transition: max-height 0.2s ease-out;
173+
margin-bottom: 10px;
152174
}

0 commit comments

Comments
 (0)