Skip to content

Commit fd467e2

Browse files
committed
feat: start settings css
1 parent 775773e commit fd467e2

20 files changed

Lines changed: 351 additions & 37 deletions

File tree

i18n/english.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const ui = {
172172
title: "General",
173173
save: "save",
174174
defaultPannel: "Default Package Menu",
175-
themePannel: "Theme Panel",
175+
themePannel: "Interface theme",
176176
warnings: "SAST Warnings to ignore",
177177
flags: "Flags (emojis) to ignore",
178178
network: "Network",

i18n/french.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const ui = {
172172
title: "Général",
173173
save: "sauvegarder",
174174
defaultPannel: "Panneau par défaut",
175-
themePannel: "Theme Panel",
175+
themePannel: "Thème de l'interface",
176176
warnings: "Avertissements à ignorer",
177177
flags: "Drapeau (emojis) à ignorer",
178178
network: "Réseau",

public/components/gauge/gauge.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,19 @@
1010
padding: 0 10px;
1111
border-radius: 4px;
1212
}
13+
body.dark .gauge>.line {
14+
color: white;
15+
}
1316

1417
.gauge>.line.clickable:hover {
1518
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
1619
cursor: pointer;
1720
}
1821

22+
body.dark .gauge>.line.clickable:hover {
23+
background: var(--dark-theme-primary-color);
24+
}
25+
1926
.gauge>.line+.line {
2027
margin-top: 5px;
2128
}

public/components/navigation/navigation.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ nav#aside {
99
z-index: 40;
1010
}
1111

12+
body.dark nav#aside {
13+
background: var(--dark-theme-primary-color);
14+
}
15+
1216
nav#aside>.nsecure-logo {
1317
margin-top: 20px;
1418
}

public/components/package/package.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ section#package-info {
1919
-webkit-transform: translateX(-100%);
2020
}
2121

22+
body.dark section#package-info {
23+
background: var(--dark-theme-primary-lighter);
24+
}
25+
2226
section#package-info .package-container {
2327
margin-bottom: 40px;
2428
padding: 10px;

public/components/popup/popup.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ section#popup--background>.popup {
3232
border-left: 2px solid #ffffff;
3333
border-top: 2px solid #FFF;
3434
}
35+
36+
body.dark section#popup--background>.popup {
37+
background: #303263;
38+
box-shadow: 5px 5px 15px var(--dark-theme-primary-color);
39+
border-left: 2px solid var(--dark-theme-secondary-darker);
40+
border-top: 2px solid var(--dark-theme-secondary-darker);
41+
}

public/components/searchbar/searchbar.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ div.search-result-pannel .package+.package {
213213
box-shadow: 2px 1px 10px #26107f7a;
214214
}
215215

216+
body.dark #search-nav {
217+
background: var(--dark-theme-primary-color);
218+
}
219+
216220
#search-nav:has(#searchbar[style*="display: none;"]) {
217221
display: none;
218222
}
@@ -246,6 +250,10 @@ div.search-result-pannel .package+.package {
246250
color: #def7ff;
247251
}
248252

253+
body.dark #search-nav .packages>.package {
254+
background: linear-gradient(to right, rgba(11,3,31,1) 0%, rgba(11,3,31, 0.8) 50%, rgba(11, 3, 31, 0.6) 100%);
255+
}
256+
249257
#search-nav .packages>.package>* {
250258
transform: skewX(20deg);
251259
}
@@ -260,6 +268,10 @@ div.search-result-pannel .package+.package {
260268
cursor: pointer;
261269
}
262270

271+
body.dark #search-nav .packages>.package:not(.active):hover {
272+
background: linear-gradient(to right, rgba(11, 3, 31, 0.7) 1%, rgba(11, 3, 31, 0.5) 100%);
273+
}
274+
263275
#search-nav .packages>.package.active {
264276
background: linear-gradient(to right, rgba(55,34,175,1) 0%,rgba(87,74,173,1) 50%,rgb(59, 110, 205) 100%);
265277
}

public/components/views/home/home.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
border-bottom: 2px solid #cecec9;
102102
}
103103

104+
body.dark .home--header--title .top {
105+
border-bottom: 2px solid var(--dark-theme-secondary-color);
106+
}
107+
104108
.home--header--title .top #project-name {
105109
color: var(--primary-lighter);
106110
}
@@ -112,6 +116,15 @@
112116
margin-top: 5px;
113117
}
114118

119+
body.dark .home--header--title .top #project-name {
120+
color: var(--secondary);
121+
}
122+
123+
body.dark .home--header--title .top #project-version {
124+
color: var(--secondary);
125+
opacity: 0.9;
126+
}
127+
115128
.home--header--title .bottom {
116129
display: flex;
117130
height: 26px;
@@ -125,6 +138,11 @@
125138
font-family: system-ui;
126139
}
127140

141+
body.dark .home--header--title .bottom #project-description {
142+
color: var(--secondary);
143+
opacity: 0.9;
144+
}
145+
128146
.home--header--title .bottom>ul {
129147
margin-left: auto;
130148
height: inherit;
@@ -139,6 +157,10 @@
139157
letter-spacing: 0.5px;
140158
}
141159

160+
body.dark .home--header--title .bottom>ul li {
161+
color: white;
162+
}
163+
142164
.home--header--title .bottom>ul li:hover {
143165
text-decoration: underline;
144166
cursor: pointer;
@@ -242,6 +264,10 @@
242264
padding: 10px;
243265
}
244266

267+
body.dark #home--view .home--body .module>.content>p {
268+
color: #74ace3;
269+
}
270+
245271
/**
246272
* WARNINGS BEGIN
247273
*/
@@ -260,6 +286,11 @@
260286
border-radius: 4px;
261287
}
262288

289+
body.dark .home--warnings>p {
290+
background: linear-gradient(to right, rgb(11, 3, 31) 0%, rgba(46, 10, 10, 0.7) 100%);
291+
color: rgb(253, 210, 210);
292+
}
293+
263294
.home--warnings>p+p {
264295
margin-top: 5px;
265296
}
@@ -293,6 +324,10 @@
293324
color: #546884;
294325
}
295326

327+
body.dark .home--overview>div {
328+
color: white;
329+
}
330+
296331
.home--overview>div>.title {
297332
display: flex;
298333
font-size: 20px;
@@ -312,6 +347,10 @@
312347
margin-top: 10px;
313348
}
314349

350+
body.dark .home--overview>div>span {
351+
color: var(--dark-theme-secondary-color);
352+
}
353+
315354
.home--packages--overview {
316355
display: flex;
317356
flex-direction: column;
@@ -337,17 +376,31 @@
337376
transition: 0.5s linear all;
338377
}
339378

379+
body.dark .home--packages--overview>div {
380+
background: linear-gradient(to right, rgb(11, 3, 31) 0%, rgba(46, 10, 10, 0.8) 100%);
381+
color: rgb(253, 210, 210);
382+
}
383+
340384
.home--packages--overview>div:hover {
341385
border-color: #da4e44;
342386
cursor: pointer;
343387
background: linear-gradient(to right, rgb(231, 206, 195) 0%, rgba(255, 255, 255, 0) 100%);
344388
}
345389

390+
body.dark .home--packages--overview>div:hover {
391+
border-color: #da4e44;
392+
background: linear-gradient(to right, rgb(11, 3, 31) 0%, rgba(46, 10, 10, 0.8) 100%);
393+
}
394+
346395
.home--packages--overview>div span {
347396
color: #6d5703;
348397
margin-left: 10px;
349398
}
350399

400+
body.dark .home--packages--overview>div span {
401+
color: #ac8a05;
402+
}
403+
351404
.home--packages--overview>div>div.chips {
352405
margin-left: auto;
353406
display: flex;
@@ -365,6 +418,12 @@
365418
color: #611717;
366419
}
367420

421+
body.dark .home--packages--overview>div>div.chips>p {
422+
background: linear-gradient(to bottom, rgb(75 22 22) 0%, rgb(26 5 5) 100%);
423+
color: #f5c6c6;
424+
box-shadow: 2px 2px 6px 0px #0e01019e;
425+
}
426+
368427
.home--packages--overview>div>div.chips>p+p {
369428
margin-left: 10px;
370429
}

public/components/views/home/maintainers/maintainers.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
flex-grow: 1;
2222
}
2323

24+
body.dark .home--maintainers>.person {
25+
color: white;
26+
background: var(--dark-theme-primary-color);
27+
}
28+
2429
.home--maintainers>.person:hover {
2530
border-color: var(--secondary-darker);
2631
cursor: pointer;
@@ -119,12 +124,21 @@
119124
color: #546884;
120125
}
121126

127+
body.dark .maintainers--popup>.header>.informations>p.name {
128+
color: white;
129+
}
130+
122131
.maintainers--popup>.header>.informations>p.email {
123132
color: var(--secondary-darker);
124133
margin-top: 10px;
125134
font-family: monospace;
126135
}
127136

137+
body.dark .maintainers--popup>.header>.informations>p.email {
138+
color: var(--dark-theme-secondary-color);
139+
opacity: 0.9;
140+
}
141+
128142
.maintainers--popup>.header>.icons {
129143
display: flex;
130144
align-items: center;
@@ -162,6 +176,10 @@
162176
flex-shrink: 0;
163177
}
164178

179+
body.dark .maintainers--popup>.separator {
180+
background: var(--dark-theme-secondary-color);
181+
}
182+
165183
.maintainers--popup>.separator>p {
166184
background: #f5f4f4;
167185
padding: 0 10px;
@@ -171,6 +189,11 @@
171189
color: #255471;
172190
}
173191

192+
.maintainers--popup>.separator>p {
193+
background: #303263;
194+
color: #3cbde5;
195+
}
196+
174197
.maintainers--popup>ul {
175198
display: flex;
176199
flex-direction: column;
@@ -196,15 +219,29 @@
196219
font-size: 15px;
197220
}
198221

222+
body.dark .maintainers--popup>ul li {
223+
background: linear-gradient(to right, var(--dark-theme-primary-color) 0%, rgba(28, 29, 58, 0.185) 100%);
224+
border: none;
225+
color: white;
226+
}
227+
199228
.maintainers--popup>ul li>p{
200229
color: #234c99;
201230
}
202231

232+
body.dark .maintainers--popup>ul li>p{
233+
color: #9ca6b7;
234+
}
235+
203236
.maintainers--popup>ul li>span{
204237
color: #2470b3;
205238
margin-left: 10px;
206239
}
207240

241+
body.dark .maintainers--popup>ul li>span{
242+
color: var(--dark-theme-secondary-color);
243+
}
244+
208245
.maintainers--popup>ul li>i{
209246
margin-left: auto;
210247
margin-right: 13px;

public/components/views/home/report/report.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
flex-shrink: 0;
1616
}
1717

18+
body.dark .report--popup>.title {
19+
background: var(--dark-theme-secondary-color);
20+
}
21+
1822
.report--popup>.title>p {
1923
background: #f5f4f4;
2024
padding: 0 10px;
@@ -25,6 +29,11 @@
2529
font-size: 20px;
2630
}
2731

32+
body.dark .report--popup>.title>p {
33+
background: #303263;
34+
color: #3cbde5;
35+
}
36+
2837
.report--popup>form {
2938
display: flex;
3039
flex-direction: column;
@@ -39,6 +48,10 @@
3948
font-size: 18px;
4049
}
4150

51+
body.dark .report--popup>form label {
52+
color: white;
53+
}
54+
4255
.report--popup>form input {
4356
padding: 11px 6px;
4457
border: none;

0 commit comments

Comments
 (0)