Skip to content

Commit ef31905

Browse files
authored
Merge pull request #10253 from LawnGnome/tweak-delete-design
crate/delete: tinker with the requirements styling
2 parents c50c66b + 6250112 commit ef31905

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

app/styles/crate/delete.module.css

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,31 @@
4747
}
4848
}
4949

50+
@counter-style sub {
51+
system: extends lower-alpha;
52+
prefix: '(';
53+
suffix: ') ';
54+
}
55+
5056
.requirements {
51-
ul {
52-
list-style: none;
53-
padding-left: 0;
57+
.or {
58+
padding-left: 3.5em;
59+
padding-bottom: 0.3em;
60+
font-weight: bold;
61+
font-variant: small-caps;
62+
}
63+
64+
.first {
65+
margin-bottom: 0.5em;
66+
}
67+
68+
.second {
69+
margin-top: 0.5em;
70+
}
71+
72+
ol ol {
73+
list-style-type: sub;
74+
padding-left: 1.5em;
5475
}
5576
}
5677

app/templates/crate/delete.hbs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@
2020

2121
<div local-class="requirements">
2222
<h3>Requirements:</h3>
23-
<p>A crate can only be deleted if:</p>
24-
<ol>
25-
<li>the crate has been published for less than 72 hours, or</li>
23+
<p>A crate can only be deleted if either:</p>
24+
<ol local-class='first'>
25+
<li>the crate has been published for less than 72 hours</li>
26+
</ol>
27+
<div local-class='or'>or</div>
28+
<ol start="2" local-class='second'>
2629
<li>
27-
<ul>
28-
<li>the crate only has a single owner, and</li>
29-
<li>the crate has been downloaded less than 500 times for each month it has been published, and</li>
30+
<ol>
31+
<li>the crate only has a single owner, <em>and</em></li>
32+
<li>the crate has been downloaded less than 500 times for each month it has been published, <em>and</em></li>
3033
<li>the crate is not depended upon by any other crate on crates.io.</li>
31-
</ul>
34+
</ol>
3235
</li>
3336
</ol>
3437
</div>

0 commit comments

Comments
 (0)