Skip to content

Commit af75ca3

Browse files
committed
feat(tpl): add focus style for link
1 parent c0ce2f1 commit af75ca3

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

src/tpl/assert/main.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ a {
1919
padding: 0.4em 0.5em;
2020
color: #000;
2121
text-decoration: none;
22+
outline: 0;
23+
}
24+
25+
a:focus {
26+
background: #fffaee;
2227
}
2328

2429
a:hover {
25-
color: #000;
2630
background: #f5f5f5;
2731
}
2832

src/tpl/assert/main.css.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ display: block;
1919
padding: 0.4em 0.5em;
2020
color: #000;
2121
text-decoration: none;
22+
outline: 0;
23+
}
24+
a:focus {
25+
background: #fffaee;
2226
}
2327
a:hover {
24-
color: #000;
2528
background: #f5f5f5;
2629
}
2730
input, button {

src/tpl/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{$subItemPrefix := .SubItemPrefix}}
22
<!DOCTYPE html>
3-
<html>
3+
<html lang="">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
66
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

src/tpl/page.html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
const pageTplStr = `
1111
{{$subItemPrefix := .SubItemPrefix}}
1212
<!DOCTYPE html>
13-
<html>
13+
<html lang="">
1414
<head>
1515
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
1616
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

0 commit comments

Comments
 (0)