Skip to content

Commit

Permalink
x-keyboard: Improve buttons (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
wismill authored Mar 17, 2024
1 parent 5cf9724 commit 51eebb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
19 changes: 6 additions & 13 deletions www/assets/css/keebs.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,23 @@

.keyboard form {
display: flex;
justify-content: right;
margin: 2px;
flex-wrap: wrap;
justify-content: space-around;
gap: 0 5em;
}

.keyboard fieldset {
border: none;
padding: 0 1px;
margin: 0;
text-wrap: balance;
}

.keyboard fieldset:first-child {
display: none;
}

.keyboard fieldset:last-child {
text-align: right;
text-align: center;
}

.keyboard form input {
box-sizing: border-box;
width: auto;
height: 1.8em;
height: auto;
line-height: 1.8em;
font-size: 0.8em;
appearance: none;
Expand Down Expand Up @@ -102,8 +96,7 @@
text-align: center;
}

@media only screen and (min-width: 480px) {
.keyboard fieldset:first-child { display: inline-block; }
@media only screen and (min-width: 600px) {
.keyboard form { justify-content: space-between; }
}

Expand Down
6 changes: 3 additions & 3 deletions www/layouts/shortcodes/x-keyboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

<form>
<fieldset class="layers" hidden>
<input type="radio" name="layers" label="typo" value="odk" checked
<input type="radio" name="layers" label="Typo" value="odk" checked
title="caractères obtenus par la touche « Typo » (vue simplifiée)">
<input type="radio" name="layers" label="mix" value="mixed"
<input type="radio" name="layers" label="Typo+Symboles" value="mixed"
title="caractères obtenus par les touches « Typo » et « Symboles »">
<input type="radio" name="layers" label="altgr" value="altgr"
<input type="radio" name="layers" label="Symboles" value="altgr"
title="caractères obtenus par la touche « Symboles »">
</fieldset>
<fieldset class="geometry">
Expand Down

0 comments on commit 51eebb1

Please sign in to comment.