Skip to content

Commit 00a04a5

Browse files
add custom counter, start styling the form
1 parent 4d3bb80 commit 00a04a5

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

src/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ <h2>Recommended Choice</h2>
331331

332332
<article class="tool">
333333

334+
<p>Please complete the form, to get a choice!</p>
335+
334336
<!-- <header>
335337
<h3>CC-BY 4.0</h3>
336338
<span class="license-icons">
@@ -407,7 +409,7 @@ <h3>Mark Your Work</h3>
407409

408410
</details>
409411

410-
<details class="medium" open>
412+
<details class="medium">
411413
<summary>Print Work or Media</summary>
412414

413415
<p>Copy the text below and paste it on the title and/or copyright page of your print work or presentation, or in the credits of your media.</p>

src/style.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,43 @@ ol li:has(.disable) {
133133
color: lightgray;
134134
}
135135

136+
form#chooser > ol {
137+
position: relative;
138+
139+
list-style: none;
140+
counter-reset: chooser-counter;
141+
}
142+
143+
form#chooser > ol li {
144+
counter-increment: chooser-counter;
145+
}
146+
form#chooser > ol li::before {
147+
position: absolute;
148+
--size: 32px;
149+
left: calc(-1 * var(--size) - 25px);
150+
min-height: 2em;
151+
min-width: 2em;
152+
padding-top: .4em;
153+
box-sizing: border-box;
154+
155+
content: counter(chooser-counter);
156+
font-weight: bold;
157+
border-radius: 200px;
158+
background: var(--vocabulary-neutral-color-lighter-gray);
159+
color: black;
160+
text-align: center;
161+
vertical-align: middle;
162+
163+
}
164+
165+
form#chooser legend {
166+
font-weight: bold;
167+
}
168+
169+
form#chooser fieldset {
170+
margin-bottom: 1em;
171+
}
172+
136173
#tool-recommendation {
137174
margin-bottom: 4em;
138175

@@ -149,6 +186,10 @@ ol li:has(.disable) {
149186
--underline-background-color: var(--vocabulary-brand-color-soft-turquoise);
150187
}
151188

189+
#tool-recommendation h2 {
190+
/* font-size: 1.8em; */
191+
}
192+
152193
#tool-recommendation h3 {
153194
margin: 0;
154195

0 commit comments

Comments
 (0)