Skip to content

Commit

Permalink
Improve navigation in demo sample
Browse files Browse the repository at this point in the history
  • Loading branch information
mikke89 committed Oct 18, 2023
1 parent c7ec5fd commit f87e9d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions Samples/assets/invader.rcss
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ body
font-style: normal;
font-size: 15dp;
color: white;
nav: auto;
}

body.window
Expand Down Expand Up @@ -353,12 +354,13 @@ table input.text
background-color: white;

font-size: 15dp;

}
table input.text, table input.text:focus-visible
{
decorator: none;
}



select
{
width: 175dp;
Expand Down
12 changes: 8 additions & 4 deletions Samples/basic/demo/data/demo.rml
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ progress {
height: 12dp;
}
form input, form textarea, form select
{
nav: auto none;
}
form .nav-auto, form input.checkbox, form input.radio
{
nav: auto;
}
Expand Down Expand Up @@ -840,21 +844,21 @@ form input, form textarea, form select
</div>
<h2>Email and password</h2>
<div>
<input type="text" name="email"/>
<input type="password" name="password"/>
<input type="text" name="email" class="nav-auto"/>
<input type="password" name="password" class="nav-auto"/>
</div>
<h2>Favorite animal</h2>
<div>
<label><input type="radio" name="animal" value="dog" checked/> Dog </label>
<label><input type="radio" name="animal" value="cat"/> Cat </label>
<label><input type="radio" name="animal" value="narwhal"/> Narwhal </label>
<label><input type="radio" name="animal" value="no"/> I don't like animals </label>
<label><input type="radio" name="animal" value="no" style="nav-down: #lasagne"/> I don't like animals </label>
</div>
<h2>Favorite meals</h2>
<div>
<label><input type="checkbox" name="meals" value="pizza" checked/> Pizza </label>
<label><input type="checkbox" name="meals" value="pasta" checked/> Pasta </label>
<label><input type="checkbox" name="meals" value="lasagne" checked/> Lasagne </label>
<label><input type="checkbox" name="meals" value="lasagne" id="lasagne" checked/> Lasagne </label>
</div>
<h2>Rating</h2>
<div>
Expand Down

0 comments on commit f87e9d6

Please sign in to comment.