Skip to content

Commit 0ec181b

Browse files
stats button (#95)
1 parent 27b09b5 commit 0ec181b

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

www/assets/css/keebs.css

+9-8
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
.keyboard nav button {
1111
display: inline-block;
1212
box-sizing: border-box;
13-
margin: 0.5em;
14-
padding: 0 10px;
13+
margin: 1px;
14+
padding: 0 6px;
1515
font-size: 1em;
16-
height: 2.5em;
17-
line-height: 2.5em;
18-
text-decoration: none;
16+
height: 2.3em;
17+
line-height: 2.3em;
1918
font-family: sans-serif;
2019

21-
color: #333;
2220
background-color: #e4e4e4;
2321
border: 1px solid #6668;
2422
border-radius: 5px;
@@ -27,6 +25,7 @@
2725
.keyboard nav button {
2826
font-weight: bold;
2927
cursor: pointer;
28+
color: #333;
3029
}
3130

3231
.keyboard [disabled] {
@@ -71,9 +70,11 @@
7170
border: 5px solid #0004;
7271
}
7372
.keyboard nav a,
73+
.keyboard nav button {
74+
background-color: #333;
75+
/* border: 1px solid #7778; */
76+
}
7477
.keyboard nav button {
7578
color: #ccc;
76-
background-color: #444;
77-
border: 1px solid #7778;
7879
}
7980
}

www/layouts/shortcodes/x-keyboard.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
</dialog>
2121
{{ end }}
2222
<nav>
23-
{{ with .Get "layout" }}
24-
<a href="/dactylo#{{ . }}">⌨ Apprendre</a>
25-
{{ end }}
26-
<button disabled>⇪ Tester !</button>
2723
{{ with .Get "href" }}
28-
<a href="{{ . }}">⇣ Installer</a>
24+
<a href="{{ . }}"><span></span> Installer</a>
25+
{{ end }}
26+
{{ with .Get "layout" }}
27+
<button disabled>⇪ Tester</button>
28+
<a href="/stats/#/{{ . }}//en+fr"><span>𝚺</span> Stats</a>
29+
<a href="/dactylo/#{{ . }}"><span></span> Apprendre</a>
2930
{{ end }}
3031
</nav>
3132
{{ end }}

0 commit comments

Comments
 (0)