Skip to content

Commit d3f1019

Browse files
committed
Layout/style improvements/fixes
1 parent a228de3 commit d3f1019

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

partials/layout.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
border: none;
5656
}
5757

58+
.either fieldset + fieldset {
59+
margin: 0;
60+
}
61+
5862
.either fieldset:first-child {
5963
border-bottom: 0.5rem solid var(--bg-accent);
6064
}
@@ -80,11 +84,12 @@
8084
}
8185

8286
footer {
83-
text-align: center;
87+
display: flex;
88+
justify-content: space-between;
8489
margin: 1em;
85-
margin-top: 5em;
86-
border-top: 0.2rem solid;
87-
padding: 0.5em;
90+
margin-top: 3em;
91+
border-top: 2px solid;
92+
padding: 0.5em 0;
8893
}
8994
</style>
9095
{% block head %}{% endblock %}
@@ -96,7 +101,8 @@ <h1>{{ title }}</h1>
96101
{% block %}{% endblock %}
97102
</form>
98103
<footer>
99-
<p><a href="https://github.com/w3c/spec-generator">GitHub</a></p>
104+
{% block footer %}<div></div>{% endblock %}
105+
<a href="https://github.com/w3c/spec-generator">GitHub</a>
100106
</footer>
101107
</body>
102108
</html>

views/bikeshed.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212

1313
fieldset div label:first-child {
1414
display: inline-block;
15-
width: 12em;
15+
width: 10em;
1616
}
1717
</style>
1818
{% endblock %}
1919
{% block %}
20-
<p><a href="../">Switch to Respec</a></p>
2120
<fieldset>
2221
<legend>Document type</legend>
2322
{% for item in bikeshedTypes %}
@@ -40,8 +39,10 @@
4039
</select>
4140
</div>
4241
<div class="spec-only">
43-
<label for="date">Date (defaults to <code>now</code>)</label>
44-
<input name="md-date" id="date">
42+
<div>
43+
<label for="date">Date <i>(YYYY-MM-DD)</i></label>
44+
<input name="md-date" id="date">
45+
</div>
4546
</div>
4647
<div class="spec-only">
4748
<input type="checkbox" name="md-prepare-for-tr" value="yes" id="tr">
@@ -56,7 +57,7 @@
5657
URL
5758
</label>
5859
<input type="url" name="url" id="url"
59-
placeholder="https://raw.githubusercontent.com/w3c/wcag-act/refs/heads/main/act-rules-format/act-rules-format.bs" />
60+
placeholder="https://raw.githubusercontent.com/w3c/process/refs/heads/main/index.bs" />
6061
<button formmethod="GET">Generate</button>
6162
</fieldset>
6263
<fieldset>
@@ -71,3 +72,6 @@
7172
</fieldset>
7273
</div>
7374
{% endblock %}
75+
{% block footer %}
76+
<a href="../">Switch to Respec</a>
77+
{% endblock %}

views/respec.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{% layout layout.html, title: "Convert ReSpec document to HTML" %}
22
{% block %}
3-
<p><a href="bikeshed/">Switch to Bikeshed</a></p>
43
<div class="either">
54
<fieldset>
65
<label for="url">Spec URL (with optional query parameters)</label>
@@ -17,3 +16,6 @@
1716
</fieldset>
1817
</div>
1918
{% endblock %}
19+
{% block footer %}
20+
<a href="bikeshed/">Switch to Bikeshed</a>
21+
{% endblock %}

0 commit comments

Comments
 (0)