Skip to content

Commit 3898291

Browse files
author
rakeshAlgo
committed
Fix Eslint errors for all css and js file
1 parent 1022334 commit 3898291

File tree

11 files changed

+89
-99
lines changed

11 files changed

+89
-99
lines changed

src/css/base.css

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ a:hover {
3434
text-decoration: underline;
3535
color: var(--color-link-hover);
3636
}
37+
3738
a:active {
3839
color: var(--color-link-active);
3940
}
@@ -60,7 +61,6 @@ kbd,
6061
pre {
6162
/* font-family: "Roboto Mono", monospace; */
6263
font-family: "Source Sans Pro", sans-serif;
63-
6464
}
6565

6666
code {
@@ -94,42 +94,41 @@ small {
9494
margin: 0 auto;
9595
} */
9696

97-
9897
/* checkbox css */
9998

10099
/* Base for label styling */
101100

102-
[type="checkbox"]:not(:checked),
103-
[type="checkbox"]:checked {
101+
[type="checkbox"]:not(:checked),
102+
[type="checkbox"]:checked {
104103
position: absolute;
105104
left: -9999px;
106105
}
107106

108-
[type="checkbox"]:not(:checked) + label,
109-
[type="checkbox"]:checked + label {
107+
[type="checkbox"]:not(:checked) + label,
108+
[type="checkbox"]:checked + label {
110109
position: relative;
111110
padding-left: 2rem;
112111
cursor: pointer;
113112
display: inline-block;
114113
}
115114

116115
/* checkbox aspect */
117-
[type="checkbox"]:not(:checked) + label::before,
118-
[type="checkbox"]:checked + label::before {
116+
[type="checkbox"]:not(:checked) + label::before,
117+
[type="checkbox"]:checked + label::before {
119118
content: "";
120119
position: absolute;
121120
left: 0;
122121
top: 0;
123122
width: 25px;
124123
height: 25px;
125124
border: 1px solid var(--checkbox-border-color);
126-
background: #F9F9F9;
125+
background: #f9f9f9;
127126
border-radius: 3px;
128127
display: inline-block;
129128
}
130129
/* checked mark aspect */
131-
[type="checkbox"]:not(:checked) + label::after,
132-
[type="checkbox"]:checked + label::after {
130+
[type="checkbox"]:not(:checked) + label::after,
131+
[type="checkbox"]:checked + label::after {
133132
content: "\2713\0020";
134133
position: absolute;
135134
top: 0;
@@ -147,47 +146,46 @@ small {
147146
border-radius: 3px;
148147
}
149148
/* checked mark aspect changes */
150-
[type="checkbox"]:not(:checked) + label::after {
149+
[type="checkbox"]:not(:checked) + label::after {
151150
opacity: 0;
152151
transform: scale(0);
153152
}
154153

155-
[type="checkbox"]:checked + label::after,
156-
.active[type="checkbox"] + label::after {
154+
[type="checkbox"]:checked + label::after,
155+
.active[type="checkbox"] + label::after {
157156
opacity: 1;
158157
transform: scale(1);
159158
}
160159
/* disabled checkbox */
161-
[type="checkbox"]:disabled:not(:checked) + label::before,
162-
[type="checkbox"]:disabled:checked + label::before {
160+
[type="checkbox"]:disabled:not(:checked) + label::before,
161+
[type="checkbox"]:disabled:checked + label::before {
163162
box-shadow: none;
164163
border-color: #bbb;
165164
background-color: #ddd;
166165
}
167166

168-
[type="checkbox"]:disabled:checked + label::after {
167+
[type="checkbox"]:disabled:checked + label::after {
169168
color: #999;
170169
}
171170

172-
[type="checkbox"]:disabled + label {
171+
[type="checkbox"]:disabled + label {
173172
color: #aaa;
174173
}
175174

176-
label:hover::before {
175+
label:hover::before {
177176
border: 2px solid var(--color-brand-blue);
178177
outline: none;
179178
}
180179

181-
label,
182-
label:focus,
183-
label:active,
184-
label::before,
185-
label::after {
180+
label,
181+
label:focus,
182+
label:active,
183+
label::before,
184+
label::after {
186185
outline: none;
187186
outline-width: 0;
188187
}
189188

190-
191189
/* Responsive css */
192190
@media screen and (min-width: 1024px) {
193191
.container-fluid {

src/css/clipboard.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
z-index: 1;
1313
}
1414

15-
a.copy-code-button:focus, a.copy-code-button:hover{
15+
a.copy-code-button:focus,
16+
a.copy-code-button:hover {
1617
color: var(--color-brand-gray4);
1718
}
1819

@@ -34,7 +35,7 @@ a.copy-code-button:focus, a.copy-code-button:hover{
3435
margin: auto;
3536
padding: 5px;
3637
text-align: center;
37-
box-shadow: 0px 3px 6px #0000001A;
38+
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
3839
background: var(--color-brand-white);
3940
border: 1px solid var(--color-brand-gray7);
4041
box-sizing: border-box;

src/css/doc.css

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@
8181
.doc h4 a.anchor::before,
8282
.doc h5 a.anchor::before,
8383
.doc h6 a.anchor::before {
84-
content: "\f0c1";
85-
font-family: "Font Awesome 5 Free"; font-weight: 900;
84+
content: '\f0c1';
85+
font-family: 'Font Awesome 5 Free', sans-serif;
86+
font-weight: 900;
8687
}
8788

8889
.doc h1:hover a.anchor,
@@ -224,7 +225,7 @@
224225
display: flex;
225226
border: 1px solid var(--color-brand-gray8);
226227
border-radius: 3px;
227-
box-shadow: 0px 3px 10px rgba(0,0,0,0.06);
228+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
228229
}
229230

230231
.doc .admonitionblock td.icon {
@@ -265,10 +266,6 @@
265266
display: table;
266267
}
267268

268-
.doc .admonitionblock td.content::before {
269-
font-weight: var(--weight-bold);
270-
}
271-
272269
.doc .admonitionblock.caution > table {
273270
background-color: transparent;
274271
}
@@ -279,7 +276,6 @@
279276

280277
.doc .admonitionblock.caution td.content::before {
281278
content: "Caution: ";
282-
283279
}
284280

285281
.doc .admonitionblock.caution tr {
@@ -312,7 +308,6 @@
312308

313309
.doc .admonitionblock.note td.content::before {
314310
content: "Note: ";
315-
316311
}
317312

318313
.doc .admonitionblock.note tr {
@@ -326,14 +321,15 @@
326321
.doc .admonitionblock.tip td.icon i::before {
327322
background-image: url(../img/tip.svg);
328323
}
329-
.doc .admonitionblock td.content::before{
324+
325+
.doc .admonitionblock td.content::before {
330326
color: var(--color-brand-black);
331327
font-size: var(--font-base);
328+
font-weight: var(--weight-bold);
332329
}
333330

334331
.doc .admonitionblock.tip td.content::before {
335332
content: "Tip: ";
336-
337333
}
338334

339335
.doc .admonitionblock.tip tr {
@@ -350,7 +346,6 @@
350346

351347
.doc .admonitionblock.warning td.content::before {
352348
content: "Warning: ";
353-
354349
}
355350

356351
.doc .admonitionblock.warning tr {
@@ -364,10 +359,10 @@
364359
.doc .imageblock {
365360
display: flex;
366361
flex-direction: column;
367-
border:1px solid var(--color-brand-gray8);
362+
border: 1px solid var(--color-brand-gray8);
368363
padding: var(--base-space);
369364
/* padding-left: var(--base-space); */
370-
box-shadow: 0px 3px 10px rgba(0,0,0,0.06);
365+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
371366
border-radius: 5px;
372367
}
373368

@@ -493,15 +488,14 @@
493488
padding-right: var(--base-small-space);
494489
padding-top: var(--base-large-space);
495490
padding-bottom: var(--base-large-space);
496-
497491
white-space: pre-wrap;
498492
/* NOTE enable these styles if side-to-side scrolling is preferred */
499493
/*
500494
overflow-wrap: normal;
501495
word-wrap: normal;
502496
overflow-x: auto;
503497
*/
504-
background: #0074E00E;
498+
background: #0074e00e;
505499
border: 1px solid var(--color-brand-gray8);
506500
border-radius: 3px;
507501
position: relative;
@@ -525,13 +519,15 @@
525519
position: relative;
526520
}
527521

528-
.doc pre.highlight .hljs-attr{
529-
color: var(--hljs-attr);
522+
.doc pre.highlight .hljs-attr {
523+
color: var(--hljs-attr);
530524
}
531-
.doc pre.highlight .hljs-string{
525+
526+
.doc pre.highlight .hljs-string {
532527
color: var(--hljs-string);
533528
}
534-
.doc pre.highlight .hljs-number{
529+
530+
.doc pre.highlight .hljs-number {
535531
color: var(--hljs-number);
536532
}
537533

@@ -580,17 +576,26 @@
580576
}
581577

582578
.doc .listingblock pre .fade-shadow {
583-
content: '';
579+
content: "";
584580
display: inline-block;
585-
background: transparent linear-gradient(180deg, #F1F7FE0D 0%, #F1F7FE40 18%, #F1F7FE 68%, #F1F7FE 100%) 0% 0% no-repeat padding-box;
581+
background:
582+
transparent
583+
linear-gradient(
584+
180deg,
585+
#f1f7fe0d 0%,
586+
#f1f7fe40 18%,
587+
#f1f7fe 68%,
588+
#f1f7fe 100%
589+
)
590+
0% 0% no-repeat padding-box;
586591
width: 65px;
587592
height: 80%;
588593
position: absolute;
589594
right: 0;
590595
top: 0;
591596
}
592597

593-
code.language-console.hljs.shell{
598+
code.language-console.hljs.shell {
594599
white-space: nowrap;
595600
overflow-x: auto;
596601
}
@@ -771,7 +776,7 @@ code.language-console.hljs.shell{
771776
}
772777

773778
.doc .tabset {
774-
box-shadow: 0px 3px 10px #0000000F;
779+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
775780
padding: var(--base-space);
776781
border-radius: 8px;
777782
border: 1px solid var(--color-brand-gray8);
@@ -800,7 +805,6 @@ code.language-console.hljs.shell{
800805
font-weight: var(--weight-semibold);
801806
height: 2.5rem;
802807
line-height: 1;
803-
/* margin-right: 0.25rem; */
804808
padding: 0;
805809
position: relative;
806810
margin-right: var(--base-space);
@@ -809,7 +813,8 @@ code.language-console.hljs.shell{
809813
.doc .tabs li + li {
810814
margin-top: 0;
811815
}
812-
.doc .tabs li:last-child{
816+
817+
.doc .tabs li:last-child {
813818
margin-right: 0;
814819
}
815820

src/css/labels.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
line-height: var(--labels-line-height);
2525
font-family: "Source Sans Pro", sans-serif;
2626
}
27+
2728
.doc .labels li:first-child::before {
2829
content: "";
2930
display: block;
@@ -74,21 +75,21 @@
7475

7576
.doc span.edition {
7677
color: var(--color-brand-blue-secondary);
77-
border:1px solid var(--color-brand-blue-secondary);
78+
border: 1px solid var(--color-brand-blue-secondary);
7879
border-radius: 3px;
7980
opacity: 0.6;
8081
}
8182

8283
.doc span.status {
8384
color: var(--color-brand-caution);
84-
border:1px solid var(--color-brand-caution);
85+
border: 1px solid var(--color-brand-caution);
8586
border-radius: 3px;
8687
opacity: 0.6;
8788
}
8889

8990
.doc span.community {
90-
color: #999999;
91-
border:1px solid #999999;
91+
color: #999;
92+
border: 1px solid #999;
9293
border-radius: 3px;
9394
opacity: 0.6;
9495
}
@@ -102,7 +103,7 @@
102103
}
103104

104105
.doc span.community a {
105-
color: #999999;
106+
color: #999;
106107
}
107108

108109
.doc span.edition:hover,
@@ -115,13 +116,11 @@
115116
opacity: 1;
116117
}
117118

118-
119119
/* .doc .labels span.edition::before{
120120
color: var(--color-brand-blue-secondary);
121121
border:1px solid var(--color-brand-blue-secondary);
122122
} */
123123

124-
125124
/* .doc .labels li.edition::before {
126125
border-bottom-color: var(--color-brand-light-blue);
127126
} */

src/css/landing-page.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@
304304
list-style: none;
305305
}
306306

307-
308-
309307
/* Responsive CSS */
310308

311309
@media screen and (max-width: 1169px) {

0 commit comments

Comments
 (0)