mirror of
https://github.com/papercss/papercss
synced 2024-06-01 21:42:22 +02:00
Added loop for dynamic selection of tabs id
This commit is contained in:
parent
046d100617
commit
dd9c203c23
|
@ -27,11 +27,12 @@
|
|||
border-bottom: solid 3px @secondary;
|
||||
}
|
||||
|
||||
#tab1:checked~#content1,
|
||||
#tab2:checked~#content2,
|
||||
#tab3:checked~#content3,
|
||||
#tab4:checked~#content4 {
|
||||
display: block;
|
||||
.loop(@num) when (@num > 0) {
|
||||
.loop((@num - 1));
|
||||
input[id^= ~"tab@{num}"]:checked~div[id^= ~"content@{num}"]{
|
||||
display:block;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.loop(5);
|
||||
}
|
Loading…
Reference in a new issue