keymapInput as image
This commit is contained in:
parent
c6d215f05a
commit
268cc209b6
BIN
img/keyboard.png
Normal file
BIN
img/keyboard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 626 B |
13
index.html
13
index.html
@ -37,13 +37,12 @@
|
||||
<section class="nes-container with-title is-dark">
|
||||
<h3 class="title">Contrôles</h3>
|
||||
<div class="nes-field">
|
||||
<label for="keyMapInput">
|
||||
Clavier d'ordinateur
|
||||
<label for="keyMapInput" style="padding: 0 2em 0 1em; margin: 0 6px;">C C♯ D D♯ E F F♯ G G♯ A A♯ B C C♯ D D♯ E F F♯ G G♯ A A♯ B C</label>
|
||||
<textarea id="keyMapInput" class="nes-textarea is-dark" minlength="25" maxlength="25" cols="25" required
|
||||
style="text-transform: uppercase; letter-spacing: 1.6em;"
|
||||
placeholder="wsxdcvgbhnj,e'r(tyèu_içop" autocomplete="off" autocorrect="off" spellcheck="false">wsxdcvgbhnj,e'r(tyèu_içop</textarea>
|
||||
</label>
|
||||
<label for="keyMapInput">Clavier d'ordinateur</label>
|
||||
<div style="overflow-x: scroll;padding: 2px;">
|
||||
<input type="text" id="keyMapInput" class="nes-input is-dark"
|
||||
minlength="25" maxlength="25" size="25" required
|
||||
placeholder="wsxdcvgbhnj,e'r(tyèu_içop" value="wsxdcvgbhnj,e'r(tyèu_içop"/>
|
||||
</div>
|
||||
</div>
|
||||
<label for="midiSelect" style="color:#fff">Clavier MIDI</label>
|
||||
<div class="nes-select is-dark">
|
||||
|
15
style.css
15
style.css
@ -39,14 +39,25 @@ h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
textarea {
|
||||
#keyMapInput {
|
||||
background-image: url(img/keyboard.png);
|
||||
background-repeat: repeat-x;
|
||||
background-size: 240px 50px;
|
||||
margin: auto;
|
||||
color: white;
|
||||
text-shadow: #444 2px 2px, #444 -2px -2px, #444 2px -2px, #444 -2px 2px;
|
||||
text-transform: uppercase;
|
||||
padding-left: 3px;
|
||||
padding-right: 0;
|
||||
letter-spacing: 4px;
|
||||
width: calc(25em + 108px);
|
||||
height: 54px;
|
||||
}
|
||||
|
||||
.sliders {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 20px;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
.sliders label {
|
||||
|
Loading…
x
Reference in New Issue
Block a user