Skip to content

Commit cf4a334

Browse files
committed
linting
1 parent 18e8680 commit cf4a334

File tree

11 files changed

+61
-59
lines changed

11 files changed

+61
-59
lines changed

public/assets/json/family.json

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,7 @@
432432
"hi": "",
433433
"en": ""
434434
},
435-
"Surnames": [
436-
{}
437-
]
435+
"Surnames": [{}]
438436
},
439437
{
440438
"id": 9,
@@ -454,9 +452,7 @@
454452
"hi": "",
455453
"en": ""
456454
},
457-
"Surnames": [
458-
{}
459-
]
455+
"Surnames": [{}]
460456
},
461457
{
462458
"id": 10,
@@ -476,9 +472,7 @@
476472
"hi": "",
477473
"en": ""
478474
},
479-
"Surnames": [
480-
{}
481-
]
475+
"Surnames": [{}]
482476
},
483477
{
484478
"id": 11,
@@ -1030,9 +1024,7 @@
10301024
"hi": "",
10311025
"en": ""
10321026
},
1033-
"Surnames": [
1034-
{}
1035-
]
1027+
"Surnames": [{}]
10361028
},
10371029
{
10381030
"id": 29,
@@ -1077,9 +1069,7 @@
10771069
"hi": "",
10781070
"en": ""
10791071
},
1080-
"Surnames": [
1081-
{}
1082-
]
1072+
"Surnames": [{}]
10831073
},
10841074
{
10851075
"id": 31,
@@ -4175,4 +4165,4 @@
41754165
}
41764166
]
41774167
}
4178-
]
4168+
]

src/assets/styles/card.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
}
123123

124124
& .back {
125-
background: #F0A93B url("/icons/arrow.svg") center/60% no-repeat;
125+
background: #f0a93b url("/icons/arrow.svg") center/60% no-repeat;
126126
filter: invert(1);
127127
transform: rotate(-135deg);
128128
width: 2.2rem;
@@ -307,7 +307,9 @@
307307
color: var(--highlight-text);
308308
padding: 0.25em 0.75em;
309309
border-radius: 0.5em;
310-
transition: background 0.3s ease, color 0.3s ease;
310+
transition:
311+
background 0.3s ease,
312+
color 0.3s ease;
311313
}
312314
}
313315

@@ -377,7 +379,7 @@
377379
margin: 1em;
378380
}
379381

380-
& .surname-card>p {
382+
& .surname-card > p {
381383
text-align: left;
382384
}
383385

@@ -408,4 +410,4 @@
408410
font-size: 0.9em;
409411
}
410412
}
411-
}
413+
}

src/assets/styles/dialog.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ dialog[closing]::backdrop {
118118
to {
119119
background: rgba(0, 0, 0, 0);
120120
}
121-
}
121+
}

src/assets/styles/english.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
padding: 0;
1818
color: var(--letter__txt--2);
1919
transition: color 0.5s ease-in;
20-
}
20+
}

src/assets/styles/menu.css

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,27 @@
88
--header-height: 80px;
99
--sidebar-width: 16ch;
1010
--timing: 0.42s;
11-
--ease: linear(0 0%,
12-
0.0036 9.62%,
13-
0.0185 16.66%,
14-
0.0489 23.03%,
15-
0.0962 28.86%,
16-
0.1705 34.93%,
17-
0.269 40.66%,
18-
0.3867 45.89%,
19-
0.5833 52.95%,
20-
0.683 57.05%,
21-
0.7829 62.14%,
22-
0.8621 67.46%,
23-
0.8991 70.68%,
24-
0.9299 74.03%,
25-
0.9545 77.52%,
26-
0.9735 81.21%,
27-
0.9865 85%,
28-
0.9949 89.15%,
29-
1 100%);
11+
--ease: linear(
12+
0 0%,
13+
0.0036 9.62%,
14+
0.0185 16.66%,
15+
0.0489 23.03%,
16+
0.0962 28.86%,
17+
0.1705 34.93%,
18+
0.269 40.66%,
19+
0.3867 45.89%,
20+
0.5833 52.95%,
21+
0.683 57.05%,
22+
0.7829 62.14%,
23+
0.8621 67.46%,
24+
0.8991 70.68%,
25+
0.9299 74.03%,
26+
0.9545 77.52%,
27+
0.9735 81.21%,
28+
0.9865 85%,
29+
0.9949 89.15%,
30+
1 100%
31+
);
3032
--sidebar-collapsed: 4rem;
3133
--sidebar-expanded: 16ch;
3234
--icon-size: 1.5rem;
@@ -512,4 +514,4 @@
512514
[data-theme="system"] [popover] .nav--list__item:hover a {
513515
color: var(--primary);
514516
}
515-
}
517+
}

src/assets/styles/panel.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
color: white;
6262
}
6363

64-
& input[type="radio"]:focus-visible+.icon {
64+
& input[type="radio"]:focus-visible + .icon {
6565
outline: 2px solid var(--primary);
6666
outline-offset: 2px;
6767
position: absolute;
@@ -79,7 +79,7 @@
7979
display: none;
8080
}
8181

82-
& input[type="radio"]:checked+.icon {
82+
& input[type="radio"]:checked + .icon {
8383
background: var(--primary);
8484
color: white;
8585
}
@@ -126,7 +126,7 @@
126126
perspective: 1000px;
127127
margin: auto;
128128

129-
&>letter-panel {
129+
& > letter-panel {
130130
display: block;
131131
width: 100%;
132132
height: 100%;
@@ -156,7 +156,10 @@
156156
background: var(--surface);
157157
border-radius: 0.5rem;
158158
box-shadow: 0 2px 8px var(--shadow);
159-
transition: transform 0.6s, font-size 0.6s, background-color 0.6s;
159+
transition:
160+
transform 0.6s,
161+
font-size 0.6s,
162+
background-color 0.6s;
160163
opacity: 0.7;
161164
}
162165

@@ -203,7 +206,10 @@
203206
& .panel__cell.front {
204207
font-size: 10rem;
205208
background-color: black;
206-
transition: transform 0.6s, font-size 0.6s, background-color 0.6s;
209+
transition:
210+
transform 0.6s,
211+
font-size 0.6s,
212+
background-color 0.6s;
207213
}
208214

209215
& .panel__cell:nth-child(1) {
@@ -245,4 +251,4 @@
245251
& .panel__cell:nth-child(10) {
246252
--ry: 360deg;
247253
}
248-
}
254+
}

src/assets/styles/reader.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
cursor: pointer;
7070
}
7171

72-
.speaker>span {
72+
.speaker > span {
7373
padding: 0.5rem;
7474
border: 1px solid var(--primary);
7575
border-radius: 5px;
@@ -94,4 +94,4 @@
9494
.mute-button {
9595
font-size: min(2.5rem, 8vw);
9696
}
97-
}
97+
}

src/assets/styles/societree.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
text-align: center;
99
color: white;
1010
padding: 2rem 3rem;
11-
gap:1rem;
11+
gap: 1rem;
1212
}
1313

1414
& .theme-glass {

src/assets/styles/varnmala.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
}
3232

3333
.container__varnmala {
34-
3534
#english,
3635
& #hindi {
3736
scroll-margin-top: calc(var(--header-height) + 80px);
3837
}
39-
}
38+
}

src/components/Dialog.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
document.querySelector('dialog').addEventListener('close', (e) => {
1+
document.querySelector("dialog").addEventListener("close", (e) => {
22
const dialog = e.target;
3-
dialog.setAttribute('closing', '');
4-
dialog.addEventListener('animationend', () => {
5-
dialog.removeAttribute('closing');
6-
}, { once: true });
3+
dialog.setAttribute("closing", "");
4+
dialog.addEventListener(
5+
"animationend",
6+
() => {
7+
dialog.removeAttribute("closing");
8+
},
9+
{ once: true }
10+
);
711
});

0 commit comments

Comments
 (0)