Commit 6201aaa0 authored by sajolida's avatar sajolida
Browse files

Add CSS counter for steps

The total of steps is hardcoded in the CSS for the scenario. CSS
counters can't calculate the total before reaching the end of the page.
parent f2d5fe94
......@@ -9,3 +9,7 @@ div.debian-usb, img.debian-usb, p.debian-usb {
li.debian-usb {
display: list-item;
}
h1:before {
content: counter(step)'/6.';
}
......@@ -9,3 +9,11 @@ div.expert-usb, img.expert-usb, p.expert-usb {
li.expert-usb {
display: list-item;
}
#content {
padding-left: 50px;
}
h1:before {
content: counter(step)'/7.';
}
......@@ -8,3 +8,7 @@ div.install-clone, img.install-clone, p.install-clone {
li.install-clone {
display: list-item;
}
h1:before {
content: counter(step)'/6.';
}
......@@ -9,3 +9,7 @@ div.linux-usb, img.linux-usb, p.linux-usb {
li.linux-usb {
display: list-item;
}
h1:before {
content: counter(step)'/7.';
}
......@@ -9,3 +9,7 @@ div.mac-clone, img.mac-clone, p.mac-clone {
li.mac-clone {
display: list-item;
}
h1:before {
content: counter(step)'/7.';
}
......@@ -9,3 +9,7 @@ div.mac-dvd, img.mac-dvd, p.mac-dvd {
li.mac-dvd {
display: list-item;
}
h1:before {
content: counter(step)'/7.';
}
......@@ -9,3 +9,7 @@ div.mac-usb, img.mac-usb, p.mac-usb {
li.mac-usb {
display: list-item;
}
h1:before {
content: counter(step)'/7.';
}
......@@ -25,3 +25,15 @@ span.title {
.state-image {
text-align: center;
}
body {
counter-reset: step;
}
h1:before {
position: relative;
left: -2.5em;
font-size: 0.75em;
counter-increment: step;
margin-right: -2em;
}
......@@ -9,3 +9,7 @@ div.upgrade-clone, img.upgrade-clone, p.upgrade-clone {
li.upgrade-clone {
display: list-item;
}
h1:before {
content: counter(step)'/4.';
}
......@@ -8,3 +8,7 @@ div.upgrade-tails, img.upgrade-tails, p.upgrade-tails {
li.upgrade-tails {
display: list-item;
}
h1:before {
content: counter(step)'/6.';
}
......@@ -9,3 +9,7 @@ div.windows-usb, img.windows-usb, p.windows-usb {
li.windows-usb {
display: list-item;
}
h1:before {
content: counter(step)'/7.';
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment