mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
make footer colors work
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,33 +1,25 @@
|
|||||||
|
$footer-images: 3col-magenta-orange, 3col-green-blue, 3col-orange, 3col-purple, 3-col-green-purple, 3col-magenta, 3col-light-green, 3col-orange-yellow, 3-col-dark-blue;
|
||||||
|
|
||||||
/* Tutorials ---------------------------------------------------------------- */
|
/* Tutorials ---------------------------------------------------------------- */
|
||||||
@mixin card-footer-color ($offset){
|
@mixin card-footer-color($offset){
|
||||||
.card:nth-child(9n + #{$offset}) .card-footer {
|
$index: 0;
|
||||||
background-image: url(../img/cards/3col-magenta-orange.svg);
|
@for $i from $offset + 1 through length($footer-images) {
|
||||||
|
$index: $index + 1;
|
||||||
|
|
||||||
|
.card:nth-child(9n + #{$index}) .card-footer {
|
||||||
|
background-image: url("../img/cards/#{nth($footer-images, $i)}.svg");
|
||||||
}
|
}
|
||||||
.card:nth-child(9n + #{$offset} + 1) .card-footer {
|
|
||||||
background-image: url(../img/cards/3col-green-blue.svg);
|
|
||||||
}
|
}
|
||||||
.card:nth-child(9n + #{$offset} + 2) .card-footer {
|
|
||||||
background-image: url(../img/cards/3-col-pink.svg);
|
@for $i from 1 through $offset + 1 {
|
||||||
|
$index: $index + 1;
|
||||||
|
|
||||||
|
.card:nth-child(9n + #{$index}) .card-footer {
|
||||||
|
background-image: url("../img/cards/#{nth($footer-images, $i)}.svg");
|
||||||
}
|
}
|
||||||
.card:nth-child(9n + #{$offset} + 3) .card-footer {
|
|
||||||
background-image: url(../img/cards/3-col-light-blue.svg);
|
|
||||||
}
|
|
||||||
.card:nth-child(9n + #{$offset} + 4) .card-footer {
|
|
||||||
background-image: url(../img/cards/3-col-pink.svg);
|
|
||||||
}
|
|
||||||
.card:nth-child(9n + #{$offset} + 5) .card-footer {
|
|
||||||
background-image: url(../img/cards/3col-magenta-orange.svg);
|
|
||||||
}
|
|
||||||
.card:nth-child(9n + #{$offset} + 6) .card-footer {
|
|
||||||
background-image: url(../img/cards/3-col-purple-blue.svg);
|
|
||||||
}
|
|
||||||
.card:nth-child(9n + #{$offset} + 7) .card-footer {
|
|
||||||
background-image: url(../img/cards/3col-light-green.svg);
|
|
||||||
}
|
|
||||||
.card:nth-child(9n + #{$offset} + 8) .card-footer {
|
|
||||||
background-image: url(../img/cards/3-col-dark-blue.svg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tutorial-content {
|
.tutorial-content {
|
||||||
#beginner-cards {
|
#beginner-cards {
|
||||||
@include card-footer-color(0);
|
@include card-footer-color(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user