mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Button to format SQL, closes #136
SQL code will be formatted on page load, and can additionally be formatted by clicking the "Format SQL" button. Thanks, @rixx!
This commit is contained in:
parent
fffd69ec03
commit
af2e6a5cf1
6 changed files with 50 additions and 9 deletions
|
|
@ -166,22 +166,32 @@ form input[type=search] {
|
|||
width: 95%;
|
||||
}
|
||||
}
|
||||
form input[type=submit] {
|
||||
color: #fff;
|
||||
background-color: #007bff;
|
||||
border-color: #007bff;
|
||||
form input[type=submit], form button[type=button] {
|
||||
font-weight: 400;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
border: 1px solid blue;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
padding: .5em 0.8em;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1;
|
||||
border-radius: .25rem;
|
||||
}
|
||||
|
||||
form input[type=submit] {
|
||||
color: #fff;
|
||||
background-color: #007bff;
|
||||
border-color: #007bff;
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
form button[type=button] {
|
||||
color: #007bff;
|
||||
background-color: #fff;
|
||||
border-color: #007bff;
|
||||
}
|
||||
|
||||
.filter-row {
|
||||
margin-bottom: 0.6em;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue