Skip to content

Commit 1fab87c

Browse files
cgzonesmatze
authored andcommitted
Drop <button> under <a>
Reported by https://validator.w3.org/nu/: The element button must not appear as a descendant of the a element.
1 parent 5b64bbe commit 1fab87c

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

src/themes/style.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ main {
6363

6464
#nav-title {
6565
margin-right: auto;
66+
margin-top: 16px;
67+
margin-bottom: 16px;
6668
}
6769

6870
header ul {
@@ -75,16 +77,19 @@ header li {
7577
display: inline-block;
7678
}
7779

78-
header button {
80+
header .navigation {
7981
color: #39bae6;
8082
border: none;
8183
padding: 1rem;
8284
background: none;
85+
font-family: "JetBrains Mono", monospace;
86+
font-size: 1.125rem;
8387
}
8488

85-
header button:hover {
89+
header .navigation:hover {
8690
background-color: #39bae6;
8791
color: #0f1419;
92+
cursor: pointer;
8893
}
8994

9095
button {

templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<body>
1515
<div id="main-container">
1616
<header>
17-
<span id="nav-title"><a href="{{ base_path.path() }}"><button>home</button></a></span>
17+
<span id="nav-title"><a href="{{ base_path.path() }}" class="navigation">home</a></span>
1818
<nav>
1919
<ul>
2020
{% block nav %}{% endblock %}

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
{% endblock %}
6464

6565
{% block nav %}
66-
<li><button onclick="openFile()">open</button></li>
66+
<li><button onclick="openFile()" class="navigation">open</button></li>
6767
{% endblock %}
6868

6969
{%- block content -%}

templates/paste.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747

4848
{% block nav %}
4949
{% if can_delete %}
50-
<li><a href="{{ base_path.join("delete/") }}{{ id }}"><button>delete</button></a></li>
50+
<li><a href="{{ base_path.join("delete/") }}{{ id }}" class="navigation">delete</a></li>
5151
{% endif %}
52-
<li><a href="{{ base_path.join(id) }}?dl={{ ext }}"><button>download</button></a></li>
53-
<li><a href="{{ base_path.join(id) }}?fmt=raw"><button>raw</button></a></li>
54-
<li><a href="{{ base_path.join(id) }}?fmt=qr"><button>qr</button></a></li>
52+
<li><a href="{{ base_path.join(id) }}?dl={{ ext }}" class="navigation">download</a></li>
53+
<li><a href="{{ base_path.join(id) }}?fmt=raw" class="navigation">raw</a></li>
54+
<li><a href="{{ base_path.join(id) }}?fmt=qr" class="navigation">qr</a></li>
5555
{% endblock %}

0 commit comments

Comments
 (0)