Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1275,49 +1275,49 @@
|
||||
}
|
||||
|
||||
&:nth-child(1),
|
||||
&:nth-child(9) {
|
||||
&:nth-child(8) {
|
||||
&::after {
|
||||
@include gradient-by-child(1); // First child uses the first color
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(2),
|
||||
&:nth-child(10) {
|
||||
&:nth-child(9) {
|
||||
&::after {
|
||||
@include gradient-by-child(2); // Second child uses the second color
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(3),
|
||||
&:nth-child(11) {
|
||||
&:nth-child(10) {
|
||||
&::after {
|
||||
@include gradient-by-child(3); // Third child uses the third color
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(4),
|
||||
&:nth-child(12) {
|
||||
&:nth-child(11) {
|
||||
&::after {
|
||||
@include gradient-by-child(4); // Fourth child uses the fourth color
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(5),
|
||||
&:nth-child(13) {
|
||||
&:nth-child(12) {
|
||||
&::after {
|
||||
@include gradient-by-child(5); // Fifth child uses the fifth color
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(6),
|
||||
&:nth-child(14) {
|
||||
&:nth-child(13) {
|
||||
&::after {
|
||||
@include gradient-by-child(6); // Fifth child uses the fifth color
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(7),
|
||||
&:nth-child(15) {
|
||||
&:nth-child(14) {
|
||||
&::after {
|
||||
@include gradient-by-child(7); // Fifth child uses the fifth color
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user