Skip to content

Commit 46705a7

Browse files
committed
Scrollbar in list pages
1 parent 316af86 commit 46705a7

File tree

7 files changed

+87
-176
lines changed

7 files changed

+87
-176
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "emulsion",
3-
"version": "0.8.2",
3+
"version": "0.8.3",
44
"description": "Better gaming throught chemistry",
55
"homepage": "https://yphil.gitlab.io/emulsion",
66
"license": "GPLv3",

src/css/dialog.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
.dialog .text {
4545
color: var(--color-text-1);
4646
font-family: var(--font-second);
47+
font-size: clamp(20px, 1vw, 50px);
4748
}
4849

4950
.dialog .dialog-buttons {
@@ -294,11 +295,6 @@
294295
align-content: center;
295296
}
296297

297-
.help-dialog #quickstart li {
298-
margin-bottom: 0.5em;
299-
/* font-size: clamp(20px, 1vw, 50px); */
300-
}
301-
302298
.launch-game-dialog {
303299
width:40vw;
304300
}

src/css/gallery.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
width: 100%;
7171
}
7272

73-
.page-content.list::-webkit-scrollbar {
74-
display: none; /* Webkit */
75-
}
76-
7773
.page-content.list .game-container {
7874
display: flex;
7975
flex-direction: row;
@@ -295,7 +291,7 @@ i.disabled { pointer-events: none; opacity: 0.5; }
295291
height: 100%;
296292
padding: 0;
297293
list-style: none;
298-
scrollbar-width: none;
294+
/* scrollbar-width: none; */
299295
-ms-overflow-style: none;
300296
}
301297

@@ -325,7 +321,7 @@ i.disabled { pointer-events: none; opacity: 0.5; }
325321
width: 100%;
326322
aspect-ratio: 2 / 3;
327323
overflow: hidden;
328-
padding: 0.5em;
324+
padding: 0.5em 0.5em 0.5em 0;
329325
border-bottom: 1px solid var(--color-border-off);
330326
}
331327

src/css/init.css

Lines changed: 75 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,57 @@
99
@font-face {
1010
font-family: 'MeromSans';
1111
src: url('../font/MeromSans-Regular.ttf') format('opentype');
12-
font-weight: normal; /* For variable fonts */
12+
font-weight: normal;
1313
font-style: normal;
1414
}
1515

1616
@font-face {
1717
font-family: 'TaylorSans';
1818
src: url('../font/TaylorSans-Regular.ttf') format('truetype');
19-
font-weight: normal; /* For variable fonts */
19+
font-weight: normal;
2020
font-style: normal;
21+
font-display: block;
22+
}
23+
24+
@font-face {
25+
font-family: 'Saira';
26+
src: url('../font/Saira-Regular.ttf') format('truetype');
27+
font-weight: normal;
28+
font-style: normal;
29+
font-display: block;
2130
}
2231

2332
:root {
2433
--font-main: 'Orbitron', sans-serif;
25-
--font-second: 'TaylorSans', sans-serif;
34+
--font-second: 'Saira', sans-serif;
2635
--font-third: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
2736
--font-fourth: "MeromSans", sans-serif;
28-
--color-succes: #00ff18;
29-
--color-icon: #007bff;
37+
--color-succes: rgb(0, 255, 24);
38+
--color-icon: rgb(0, 123, 255);
3039

31-
--color-bg1: #0B192C;
32-
--color-bg2: #1E3E62;
40+
--color-bg1: rgb(11, 25, 44);
41+
--color-bg2: rgb(30, 62, 98);
3342

34-
--color-text-1: #93FFD8;
35-
--color-text-2: #FFFFFF;
36-
--color-text-3: rgb(234,0,0); /* big platform names */
43+
--color-text-1: rgb(147, 255, 216);
44+
--color-text-2: rgb(255, 255, 255);
45+
--color-text-3: rgb(234, 0, 0); /* big platform names */
3746

38-
--color-bg-header: #050c16;
39-
--color-border-header: #1E3E62;
40-
--color-text-header: whitesmoke;
47+
--color-bg-header: rgb(5, 12, 22);
48+
--color-border-header: rgb(30, 62, 98);
49+
--color-text-header: rgb(245, 245, 245);
4150

42-
--color-outline-header: #050c16;
51+
--color-outline-header: rgb(5, 12, 22);
4352

44-
--color-outline-control-button: #888;
45-
--color-bg-control-button: #222;
53+
--color-outline-control-button: rgb(136, 136, 136);
54+
--color-bg-control-button: rgb(34, 34, 34);
4655

47-
--color-outline-game-label: #050c16;
56+
--color-outline-game-label: rgb(5, 12, 22);
4857

49-
--color-button-off: #FF4742;
50-
--color-button-on: #050c16;
58+
--color-button-off: rgb(255, 71, 66);
59+
--color-button-on: rgb(5, 12, 22);
5160

52-
--color-border-on: #FF4742;
53-
--color-border-off: #1E3E62;
61+
--color-border-on: rgb(255, 71, 66);
62+
--color-border-off: rgb(30, 62, 98);
5463

5564
--slide-rotation-angle: 90deg;
5665
--slide-rotation-radius: 100px;
@@ -59,86 +68,84 @@
5968
}
6069

6170
.theme-day {
62-
--color-text-1: #222;
71+
--color-text-1: rgb(41, 48, 53);
6372
--color-text-2: rgba(0, 20, 10, 0.9);
6473

65-
--glow-color-rgb: 255, 107, 0;
66-
67-
--color-platform-text-header: #0a3f4a;
68-
--color-platform-outline-header: #a3ffff;
74+
--color-platform-text-header: rgb(10, 63, 74);
75+
--color-platform-outline-header: rgb(163, 255, 255);
6976

70-
--color-bg-header: #99c1ef;
71-
--color-bg: #bdd9ff;
72-
--color-border-header: #3974b8;
73-
--color-text-header: #ffffff;
77+
--color-bg-header: rgb(153, 193, 239);
78+
--color-bg: rgb(189, 217, 255);
79+
--color-border-header: rgb(57, 116, 184);
80+
--color-text-header: rgb(255, 255, 255);
7481

75-
--color-text-game-label: #29f1ea;
82+
--color-text-game-label: rgb(41, 241, 234);
7683

77-
--color-selected: #ff6b00;
78-
--color-bg-selected: #c7e0ff;
84+
--color-selected: rgb(255, 107, 0);
85+
--color-bg-selected: rgb(199, 224, 255);
7986

80-
--color-hr: #9a9aad;
87+
--color-hr: rgb(120, 160, 210); /* lighter blue, contrasts with bg (189,217,255) */
8188

8289
/* BADGE COLORS */
8390
--color-text-badge: rgba(0, 20, 10, 0.9); /* Very dark green text */
8491
--color-bg-badge: rgba(100, 200, 150, 0.5); /* Light cool green background */
8592

8693
/* BUTTON COLORS - Day Theme */
87-
--color-button-on: #ff6b00; /* Vibrant orange */
88-
--color-button-off: #3974b8; /* Light blue */
89-
--color-border-on: #ff6b00;
90-
--color-border-off: #3974b8;
94+
--color-button-on: rgb(255, 107, 0);
95+
--color-button-off: rgb(100, 170, 251);
96+
--color-border-on: rgb(255, 107, 0);
97+
--color-border-off: rgb(57, 116, 184);
9198
}
9299

93100
.theme-night {
94-
--color-text-1: #e8f5e8;
95-
--color-text-2: #ffbc00;
101+
--color-text-1: rgb(232, 245, 232);
102+
--color-text-2: rgb(255, 188, 0);
96103

97104
--glow-color-rgb: 255, 0, 247;
98105

99-
--color-platform-text-header: #29f1ea;
100-
--color-platform-outline-header: #0a0a0f;
106+
--color-platform-text-header: rgb(41, 241, 234);
107+
--color-platform-outline-header: rgb(10, 10, 15);
101108

102-
--color-bg-header: #050c16;
103-
--color-bg: #0a1425; /* Slightly lighter than header but still dark */
104-
--color-selected: #29f1ea;
105-
--color-bg-selected: #0f2b4d;
109+
--color-bg-header: rgb(5, 12, 22);
110+
--color-bg: rgb(10, 20, 37);
111+
--color-selected: rgb(41, 241, 234);
112+
--color-bg-selected: rgb(15, 43, 77);
106113

107-
--color-hr: #0f2b4d;
114+
--color-hr: rgb(40, 70, 80); /* darker blue, contrasts with bg (10,20,37) */
108115

109116
/* BADGE COLORS */
110117
--color-text-badge: 255, 230, 0; /* BRIGHT electric yellow */
111118
--color-bg-badge: 0, 30, 80; /* Richer deep space blue */
112119
/* BUTTON COLORS - Night Theme */
113-
--color-button-on: #29f1ea; /* Cyber teal */
114-
--color-button-off: #ff6b00; /* Deep space blue */
115-
--color-border-on: #29f1ea;
116-
--color-border-off: #0f2b4d;
120+
--color-button-on: rgb(41, 241, 234); /* Cyber teal */
121+
--color-button-off: rgb(255, 107, 0); /* Deep space blue */
122+
--color-border-on: rgb(41, 241, 234);
123+
--color-border-off: rgb(15, 43, 77);
117124
}
118125

119126
.theme-default {
120-
--color-text-1: whitesmoke;
121-
--color-text-2: #fff3d8;
127+
--color-text-1: rgb(245, 245, 245);
128+
--color-text-2: rgb(255, 243, 216);
122129

123130
--glow-color-rgb: 255, 243, 216;
124131

125-
--color-platform-text-header: #1a1e2a;
126-
--color-platform-outline-header: #29f1ea;
127-
--color-bg-header: #050c16;
128-
--color-bg: #0f1729; /* Dark blue-gray - lighter than header */
129-
--color-selected: #00ffcc; /* Cyberpunk teal that matches the text-1 accent */
130-
--color-bg-selected: #050c16;
132+
--color-platform-text-header: rgb(26, 30, 42);
133+
--color-platform-outline-header: rgb(41, 241, 234);
134+
--color-bg-header: rgb(5, 12, 22);
135+
--color-bg: rgb(15, 23, 41); /* Dark blue-gray - lighter than header */
136+
--color-selected: rgb(0, 255, 204); /* Cyberpunk teal that matches the text-1 accent */
137+
--color-bg-selected: rgb(5, 12, 22);
131138

132-
--color-hr: #334;
139+
--color-hr: rgb(50, 60, 80); /* mid-dark blue-gray, contrasts with bg (15,23,41) */
133140

134141
/* BADGE COLORS */
135142
--color-text-badge: 0, 0, 0; /* Black text for cyberpunk feel */
136143
--color-bg-badge: 41, 241, 234; /* Cyberpunk teal to match the primary accent */
137144
/* BUTTON COLORS - Default Theme */
138-
--color-button-on: #29f1ea;
139-
--color-button-off: #334;
140-
--color-border-on: #00ffcc;
141-
--color-border-off: #334;
145+
--color-button-on: rgb(41, 241, 234);
146+
--color-button-off: rgb(51, 51, 68);
147+
--color-border-on: rgb(0, 255, 204);
148+
--color-border-off: rgb(51, 51, 68);
142149
}
143150

144151
/* Font loading optimizations for better icon availability */
@@ -225,15 +232,15 @@ p {
225232
}
226233

227234
*::-webkit-scrollbar-track {
228-
background: var(--color-bg1);
235+
background: var(--color-bg-selected);
229236
}
230237

231238
*::-webkit-scrollbar-thumb {
232-
background-color: var(--color-border-on);
239+
background-color: var(--color-hr);
233240
border-radius: 6px;
234-
border: 2px solid var(--color-bg1); /* gives padding effect */
241+
border: 2px solid var(--color-bg-selected); /* gives padding effect */
235242
}
236243

237244
*::-webkit-scrollbar-thumb:hover {
238-
background-color: var(--color-border-off);
245+
background-color: var(--color-selected);
239246
}

src/html/about.html

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)