Skip to content

Commit beefd71

Browse files
committed
feat: point-list fix bullet position italia#1324
1 parent 3a86361 commit beefd71

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

src/scss/components/_point-list.scss

+28-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
position: relative;
99
display: flex;
1010
flex-direction: column;
11-
justify-content: center;
11+
justify-content: flex-start;
1212
align-items: center;
1313
padding: 0.5rem 1rem;
1414
color: $primary;
@@ -22,22 +22,31 @@
2222
width: 9px;
2323
height: 9px;
2424

25-
top: 50%;
25+
top: 2rem;
2626
right: -5px;
2727
transform: translateY(-5px);
2828
border-radius: 50%;
2929
background-color: $primary;
3030
}
31+
&:has(.point-year):not(:has(.point-month)),
32+
&:has(.point-month):not(:has(.point-year)) {
33+
&:after {
34+
top: 2.4rem;
35+
}
36+
}
37+
&:has(.point-year):has(.point-month) {
38+
&:after {
39+
top: 3.872rem;
40+
}
41+
}
3142

3243
.point-date {
33-
flex: 1;
3444
font-size: 2.75rem;
3545
line-height: 1.1;
3646
}
3747

3848
.point-month,
3949
.point-year {
40-
flex: 1;
4150
font-size: 1rem;
4251
text-transform: uppercase;
4352
}
@@ -69,6 +78,21 @@
6978
min-width: 54px;
7079
padding: 0.3rem 1rem 0.3rem 0;
7180

81+
&:after {
82+
top: 1.3rem;
83+
}
84+
&:has(.point-year):not(:has(.point-month)),
85+
&:has(.point-month):not(:has(.point-year)) {
86+
&:after {
87+
top: 2rem;
88+
}
89+
}
90+
&:has(.point-year):has(.point-month) {
91+
&:after {
92+
top: 2.867rem;
93+
}
94+
}
95+
7296
.point-date {
7397
flex: 0;
7498
font-size: 1.5rem;

0 commit comments

Comments
 (0)