Skip to content

Commit b060ece

Browse files
authored
Merge pull request #29 from azadshaikh/main
fixed lint error.
2 parents 811e114 + 12143dc commit b060ece

File tree

2 files changed

+37
-20
lines changed

2 files changed

+37
-20
lines changed

src/scss/components/_breadcrumbs.scss

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
align-items: center;
44
padding: 0.5rem 0;
55
margin: 0;
6-
list-style: none;
76
color: var(--breadcrumb-color);
7+
list-style: none;
88

99
.breadcrumb-item {
1010
display: inline-flex;
1111
align-items: center;
12+
padding: 0;
1213
color: var(--breadcrumb-color);
1314
white-space: nowrap;
14-
padding: 0;
1515

1616
// Remove any existing content between items
1717
&::before,
@@ -25,59 +25,59 @@
2525
padding-right: 1.5rem;
2626

2727
&::after {
28-
content: '/';
2928
position: absolute;
30-
right: 0.5rem;
3129
top: 50%;
32-
transform: translateY(-50%);
33-
color: var(--breadcrumb-color);
34-
line-height: 1;
30+
right: 0.5rem;
3531
display: block !important;
32+
line-height: 1;
33+
color: var(--breadcrumb-color);
34+
content: '/';
35+
transform: translateY(-50%);
3636
}
3737
}
3838

3939
a {
40+
display: inline-flex;
41+
gap: 0.375rem;
42+
align-items: center;
4043
color: var(--breadcrumb-color);
4144
text-decoration: none;
4245
transition: all 0.2s ease;
43-
display: inline-flex;
44-
align-items: center;
45-
gap: 0.375rem;
4646

4747
&:hover {
4848
color: var(--breadcrumb-hover-color);
4949
}
5050

5151
i {
52+
margin-top: -0.125rem;
5253
font-size: 1rem;
5354
line-height: 1;
54-
margin-top: -0.125rem;
5555
}
5656
}
5757

5858
&.active {
59-
color: var(--breadcrumb-active-color);
6059
font-weight: 500;
60+
color: var(--breadcrumb-active-color);
6161
}
6262
}
6363

6464
// Custom separator variants
6565
&.separator-chevron {
6666
.breadcrumb-item:not(:last-child)::after {
67-
content: '';
68-
font-size: 1.125rem;
69-
line-height: 1;
7067
right: 0.5rem;
7168
margin-top: -1px;
69+
font-size: 1.125rem;
70+
line-height: 1;
71+
content: '';
7272
}
7373
}
7474

7575
&.separator-dot {
7676
.breadcrumb-item:not(:last-child)::after {
77-
content: '';
77+
right: 0.5rem;
7878
font-size: 0.875rem;
7979
line-height: 1;
80-
right: 0.5rem;
80+
content: '';
8181
}
8282
}
8383

src/scss/variables/_theme.scss

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,28 @@
1010

1111
/* Typography */
1212
--font-family-sans-serif:
13-
'Source Sans 3', system-ui, -apple-system, 'Segoe UI', roboto, 'Helvetica Neue', 'Noto Sans',
14-
'Liberation Sans', arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
13+
'Source Sans 3',
14+
system-ui,
15+
-apple-system,
16+
'Segoe UI',
17+
roboto,
18+
'Helvetica Neue',
19+
'Noto Sans',
20+
'Liberation Sans',
21+
arial,
22+
sans-serif,
23+
'Apple Color Emoji',
24+
'Segoe UI Emoji',
25+
'Segoe UI Symbol',
1526
'Noto Color Emoji';
1627
--font-family-monospace:
17-
sfmono-regular, menlo, monaco, consolas, 'Liberation Mono', 'Courier New', monospace;
28+
sfmono-regular,
29+
menlo,
30+
monaco,
31+
consolas,
32+
'Liberation Mono',
33+
'Courier New',
34+
monospace;
1835
}
1936

2037
// Light Theme Variables

0 commit comments

Comments
 (0)