Skip to content

Commit 60264a7

Browse files
Merge pull request #57 from posecode-dev/codex/refine-mobile-toolbar-hierarchy
Refine mobile toolbar hierarchy
2 parents 2b21d10 + fa5f4a8 commit 60264a7

2 files changed

Lines changed: 19 additions & 9 deletions

File tree

playground/play.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@
8484
</button>
8585
<a
8686
id="feedback"
87-
href="mailto:hello@posecode.org?subject=Posecode%20Feedback"
87+
href="https://github.com/posecode-dev/posecode/issues/new"
8888
class="btn ghost"
89-
aria-label="Feedback"
90-
title="Send feedback or report an issue"
89+
target="_blank"
90+
rel="noreferrer"
91+
aria-label="Report an issue on GitHub"
92+
title="Report an issue on GitHub"
9193
>
92-
<span class="ico-feedback" aria-hidden="true"></span><span class="lbl">Feedback</span>
94+
<span class="ico-github" aria-hidden="true"></span><span class="lbl">GitHub</span>
9395
</a>
9496
<button
9597
id="share"

playground/src/style.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ body {
156156
.btn .ico-link,
157157
.btn .ico-help,
158158
.btn .ico-plus,
159-
.btn .ico-feedback {
159+
.btn .ico-github {
160160
width: 14px;
161161
height: 14px;
162162
background: currentColor;
@@ -167,7 +167,7 @@ body {
167167
.btn:hover .ico-link,
168168
.btn:hover .ico-help,
169169
.btn:hover .ico-plus,
170-
.btn:hover .ico-feedback {
170+
.btn:hover .ico-github {
171171
opacity: 1;
172172
}
173173
.btn .ico-plus {
@@ -179,8 +179,8 @@ body {
179179
.btn .ico-help {
180180
--btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
181181
}
182-
.btn .ico-feedback {
183-
--btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
182+
.btn .ico-github {
183+
--btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.57.1.78-.25.78-.55v-2.13c-3.2.7-3.88-1.36-3.88-1.36-.52-1.34-1.28-1.7-1.28-1.7-1.05-.72.08-.71.08-.71 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.55-.29-5.23-1.28-5.23-5.69 0-1.26.45-2.29 1.19-3.09-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.18 1.18a11.1 11.1 0 0 1 5.8 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.8 1.19 1.83 1.19 3.09 0 4.42-2.69 5.39-5.25 5.68.42.36.78 1.06.78 2.15v3.18c0 .3.21.65.79.54A11.51 11.51 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5Z'/%3E%3C/svg%3E");
184184
}
185185

186186
.btn.primary {
@@ -1288,15 +1288,18 @@ select:hover {
12881288
}
12891289
/* Compact "How to use" + "Share" to icon-only so the controls fit one row. */
12901290
#how-to,
1291+
#feedback,
12911292
#share {
12921293
flex: 0 0 auto;
12931294
padding: 9px 13px;
12941295
}
12951296
#how-to .lbl,
1297+
#feedback .lbl,
12961298
#share .lbl {
12971299
display: none;
12981300
}
12991301
#how-to .ico-help,
1302+
#feedback .ico-github,
13001303
#share .ico-link {
13011304
width: 17px;
13021305
height: 17px;
@@ -1435,7 +1438,12 @@ select:hover {
14351438
justify-content: center;
14361439
}
14371440
#share {
1438-
grid-column: 2 / -1;
1441+
grid-column: 1 / 3;
1442+
grid-row: 2;
1443+
}
1444+
#feedback {
1445+
grid-column: 3;
1446+
grid-row: 2;
14391447
}
14401448
#share .lbl {
14411449
display: inline;

0 commit comments

Comments
 (0)